Re: [PATCH net] net: avoid NULL deref in inet_ctl_sock_destroy()

2015-11-03 Thread David Miller
From: Eric Dumazet Date: Mon, 02 Nov 2015 21:04:01 -0800 > On Mon, 2015-11-02 at 22:46 -0500, David Miller wrote: >> From: Eric Dumazet >> Date: Mon, 02 Nov 2015 07:50:07 -0800 >> >> > From: Eric Dumazet >> > >> > Under low memory conditions, tcp_sk_init() and icmp_sk_init() >> > can both ite

Re: [PATCH net] net: avoid NULL deref in inet_ctl_sock_destroy()

2015-11-02 Thread Eric Dumazet
On Mon, 2015-11-02 at 22:46 -0500, David Miller wrote: > From: Eric Dumazet > Date: Mon, 02 Nov 2015 07:50:07 -0800 > > > From: Eric Dumazet > > > > 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

Re: [PATCH net] net: avoid NULL deref in inet_ctl_sock_destroy()

2015-11-02 Thread David Miller
From: Eric Dumazet Date: Mon, 02 Nov 2015 07:50:07 -0800 > From: Eric Dumazet > > 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 > Reported-by

Re: [PATCH net] net: avoid NULL deref in inet_ctl_sock_destroy()

2015-11-02 Thread Dmitry Vyukov
On Mon, Nov 2, 2015 at 6:00 PM, Eric Dumazet wrote: > On Mon, 2015-11-02 at 17:53 +0100, Hannes Frederic Sowa wrote: >> On Mon, Nov 2, 2015, at 16:50, Eric Dumazet wrote: >> > From: Eric Dumazet >> > >> > Under low memory conditions, tcp_sk_init() and icmp_sk_init() >> > can both iterate on all p

Re: [PATCH net] net: avoid NULL deref in inet_ctl_sock_destroy()

2015-11-02 Thread Eric Dumazet
On Mon, 2015-11-02 at 17:53 +0100, Hannes Frederic Sowa wrote: > On Mon, Nov 2, 2015, at 16:50, Eric Dumazet wrote: > > From: Eric Dumazet > > > > 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 eve

Re: [PATCH net] net: avoid NULL deref in inet_ctl_sock_destroy()

2015-11-02 Thread Hannes Frederic Sowa
On Mon, Nov 2, 2015, at 16:50, Eric Dumazet wrote: > From: Eric Dumazet > > 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 > Reported-by: Dmitry

[PATCH net] net: avoid NULL deref in inet_ctl_sock_destroy()

2015-11-02 Thread Eric Dumazet
From: Eric Dumazet 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 Reported-by: Dmitry Vyukov --- include/net/inet_common.h |3 ++- 1 file changed,