summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-05-28 14:52:52 +0200
committerJakub Kicinski <kuba@kernel.org>2024-05-30 02:21:35 +0200
commit5ce4645c23cf5f048eb8e9ce49e514bababdee85 (patch)
tree4573211f929b4ce3172ece19c62953a2c585fb7b /net/ipv6
parenttcp: fix race in tcp_write_err() (diff)
downloadlinux-5ce4645c23cf5f048eb8e9ce49e514bababdee85.tar.xz
linux-5ce4645c23cf5f048eb8e9ce49e514bababdee85.zip
tcp: fix races in tcp_abort()
tcp_abort() has the same issue than the one fixed in the prior patch in tcp_write_err(). In order to get consistent results from tcp_poll(), we must call sk_error_report() after tcp_done(). We can use tcp_done_with_error() to centralize this logic. Fixes: c1e64e298b8c ("net: diag: Support destroying TCP sockets.") Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Neal Cardwell <ncardwell@google.com> Link: https://lore.kernel.org/r/20240528125253.1966136-4-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions