diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-10-16 22:31:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-16 22:38:41 +0300 |
commit | aadd4355918fe6e9044a9042fa5968e0a0901681 (patch) | |
tree | bde5becd6794d32ac8fb2c951570b705266cc162 /drivers/net/ethernet/intel/Kconfig | |
parent | 29ce85f349c2f77a3c035f70fafeaa8b22608328 (diff) | |
download | linux-aadd4355918fe6e9044a9042fa5968e0a0901681.tar.xz |
tcp, ulp: remove socket lock assertion on ULP cleanup
Eric reported that syzkaller triggered a splat in tcp_cleanup_ulp()
where assertion sock_owned_by_me() failed. This happened through
inet_csk_prepare_forced_close() first releasing the socket lock,
then calling into tcp_done(newsk) which is called after the
inet_csk_prepare_forced_close() and therefore without the socket
lock held. The sock_owned_by_me() assertion can generally be
removed as the only place where tcp_cleanup_ulp() is called from
now is out of inet_csk_destroy_sock() -> sk->sk_prot->destroy()
where socket is in dead state and unreachable. Therefore, add a
comment why the check is not needed instead.
Fixes: 8b9088f806e1 ("tcp, ulp: enforce sock_owned_by_me upon ulp init and cleanup")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/Kconfig')
0 files changed, 0 insertions, 0 deletions