diff options
| author | Eric Dumazet <[email protected]> | 2024-05-28 12:52:52 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-05-30 00:21:35 +0000 |
| commit | 5ce4645c23cf5f048eb8e9ce49e514bababdee85 (patch) | |
| tree | 4573211f929b4ce3172ece19c62953a2c585fb7b /net/ipv6/tcp_ipv6.c | |
| parent | tcp: fix race in tcp_write_err() (diff) | |
| download | kernel-5ce4645c23cf5f048eb8e9ce49e514bababdee85.tar.gz kernel-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 <[email protected]>
Acked-by: Neal Cardwell <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
