diff options
| author | Eric Dumazet <[email protected]> | 2015-10-14 12:58:38 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-10-15 02:06:31 +0000 |
| commit | c2f34a65a61cd1ace3b53c93e8b38d2f79f4ff0d (patch) | |
| tree | 1c6ceda4dc9a0e2c0287ceae9d3e96159894cc16 /net/switchdev/switchdev.c | |
| parent | net: phy: aquantia/teranetics: Convert to use module_phy_driver macro (diff) | |
| download | kernel-c2f34a65a61cd1ace3b53c93e8b38d2f79f4ff0d.tar.gz kernel-c2f34a65a61cd1ace3b53c93e8b38d2f79f4ff0d.zip | |
tcp/dccp: fix potential NULL deref in __inet_inherit_port()
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 child earlier.
Fixes: e994b2f0fb92 ("tcp: do not lock listener to process SYN packets")
Fixes: 079096f103fa ("tcp/dccp: install syn_recv requests into ehash table")
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
