Re: [PATCH net-next] tcp/dccp: fix potential NULL deref in __inet_inherit_port()

2015-10-14 Thread David Miller
From: Eric Dumazet Date: Wed, 14 Oct 2015 05:58:38 -0700 > From: Eric Dumazet > > As we no longer hold listener lock in fast path, it is possible that a > child is created right after listener freed its bound port, if a close() > is done while incoming packets are processed. > > __inet_inherit

[PATCH net-next] tcp/dccp: fix potential NULL deref in __inet_inherit_port()

2015-10-14 Thread Eric Dumazet
From: Eric Dumazet As we no longer hold listener lock in fast path, it is possible that a child is created right after listener freed its bound port, if a close() is done while incoming packets are processed. __inet_inherit_port() must detect this and return an error, so that caller can free the