Dave Watson
d97af30f61
tcp: fix null ptr deref in getsockopt(..., TCP_ULP, ...)
...
If icsk_ulp_ops is unset, it dereferences a null ptr.
Add a null ptr check.
BUG: KASAN: null-ptr-deref in copy_to_user include/linux/uaccess.h:168 [inline]
BUG: KASAN: null-ptr-deref in do_tcp_getsockopt.isra.33+0x24f/0x1e30 net/ipv4/tcp.c:3057
Read of size 4 at addr 0000000000000020 by task syz-executor1/15452
Signed-off-by: Dave Watson <davejwatson@fb.com>
Reported-by: "Levin, Alexander (Sasha Levin)" <alexander.levin@verizon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-27 15:39:11 -04:00
..
2017-04-12 22:02:40 +02:00
2017-05-19 15:06:48 -07:00
2017-06-20 13:30:14 -04:00
2017-06-26 23:13:22 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:39 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:39 -04:00
2017-06-20 13:30:14 -04:00
2017-05-02 11:46:28 -04:00
2017-06-26 23:13:22 -04:00
2017-06-26 23:13:22 -04:00
2017-06-16 11:48:37 -04:00
2017-05-24 18:10:51 +02:00
2017-06-26 23:13:22 -04:00
2017-05-21 13:42:33 -04:00
2017-06-20 15:31:43 -04:00
2017-06-21 17:35:22 -04:00
2017-06-20 13:30:15 -04:00
2017-06-16 11:48:40 -04:00
2017-06-26 23:13:21 -04:00
2017-06-26 23:13:22 -04:00
2017-06-27 15:39:11 -04:00
2017-06-26 23:13:22 -04:00
2017-05-02 15:34:53 -04:00
2017-06-20 13:30:15 -04:00
2017-06-25 11:42:58 -04:00
2017-05-16 11:54:07 -04:00
2017-06-23 14:17:31 -04:00
2017-06-10 16:14:27 -04:00
2017-05-26 14:20:29 -04:00
2017-06-20 13:30:15 -04:00
2017-06-07 15:53:24 -04:00
2017-06-06 22:20:08 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:39 -04:00
2017-04-13 13:58:22 -04:00
2017-06-16 11:48:39 -04:00
2017-06-16 11:48:40 -04:00
2017-06-25 11:42:01 -04:00
2017-06-10 16:15:25 -04:00
2017-06-07 15:53:24 -04:00
2017-06-16 11:48:39 -04:00
2017-06-16 11:48:39 -04:00
2017-06-22 11:34:04 -04:00
2017-06-13 11:07:51 +02:00
2017-06-21 17:35:22 -04:00
2017-06-21 15:14:23 -04:00
2017-06-25 14:43:53 -04:00
2017-05-16 14:49:43 -04:00
2017-05-31 12:26:44 -04:00
2017-06-08 14:16:24 -04:00
2017-06-10 18:20:38 -04:00
2017-06-23 14:19:27 -04:00
2017-06-09 10:10:24 -04:00
2017-06-20 13:30:15 -04:00
2017-06-21 17:35:22 -04:00
2017-06-20 13:30:15 -04:00
2017-06-23 14:17:31 -04:00
2017-06-15 12:12:40 -04:00
2017-06-15 12:12:40 -04:00
2017-05-22 12:14:04 -04:00
2017-04-16 23:42:49 -05:00