linux/include/net/inet_common.h
Eric Dumazet 299b6c906f net: avoid NULL deref in inet_ctl_sock_destroy()
commit 8fa677d270 upstream.

Under low memory conditions, tcp_sk_init() and icmp_sk_init()
can both iterate on all possible cpus and call inet_ctl_sock_destroy(),
with eventual NULL pointer.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ luis: backported to 3.16: adjusted context ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
2015-12-09 11:40:55 +00:00

47 lines
1.6 KiB