Eric Dumazet
5ce4645c23
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>
2024-05-29 17:21:35 -07:00
..
2024-02-09 14:12:01 -08:00
2024-05-23 12:04:36 -07:00
2023-10-28 11:29:28 +01:00
2024-05-07 16:19:14 -07:00
2024-05-09 10:01:01 -07:00
2024-05-13 18:19:09 -06:00
2024-05-18 10:32:39 -07:00
2024-05-22 20:14:47 -04:00
2024-05-18 10:32:39 -07:00
2024-04-25 12:42:43 -07:00
2024-05-23 14:14:23 -07:00
2024-04-02 18:20:00 -07:00
2024-02-20 15:32:45 +01:00
2024-03-06 12:43:01 +01:00
2024-05-28 19:49:47 -07:00
2023-08-01 21:07:46 -07:00
2024-05-07 16:15:08 -07:00
2024-04-22 13:05:19 -07:00
2024-01-11 10:07:29 -08:00
2024-05-22 20:14:47 -04:00
2024-04-25 08:20:54 -07:00
2024-05-13 18:35:02 -07:00
2024-04-16 17:14:55 -07:00
2024-05-09 10:01:01 -07:00
2024-05-28 07:27:29 -07:00
2023-12-15 10:50:18 +00:00
2024-05-29 17:21:35 -07:00
2024-05-28 19:49:47 -07:00
2024-05-21 12:09:36 -07:00
2024-03-11 09:53:22 +00:00
2024-02-09 14:12:01 -08:00
2024-05-17 12:15:22 -07:00
2024-05-13 18:19:09 -06:00
2024-05-22 20:14:47 -04:00
2024-03-06 21:01:26 +01:00
2024-02-29 14:24:56 -08:00
2024-05-03 13:29:41 +01:00
2024-05-18 10:32:39 -07:00
2023-11-18 15:00:51 +00:00
2024-05-28 19:49:47 -07:00
2024-05-13 14:58:12 -07:00
2024-04-23 10:09:49 -07:00
2024-05-18 10:32:39 -07:00
2024-05-23 12:49:37 -07:00
2024-04-26 12:20:01 +02:00
2024-05-23 12:49:37 -07:00
2024-05-23 14:14:36 -07:00
2024-05-13 18:19:09 -06:00
2024-04-01 10:49:28 +01:00
2024-05-16 09:47:45 +01:00
2024-05-13 18:19:09 -06:00
2024-03-25 15:40:22 +01:00
2024-05-13 18:19:09 -06:00
2024-05-09 10:01:01 -07:00
2024-05-23 14:14:23 -07:00
2024-05-13 18:19:09 -06:00
2024-05-22 20:14:47 -04:00
2024-05-19 09:21:03 -07:00
2024-05-08 12:19:12 +01:00
2024-05-22 20:14:47 -04:00
2024-05-23 12:03:26 +02:00
2024-05-23 12:49:37 -07:00
2024-05-23 12:04:36 -07:00
2024-05-22 20:14:47 -04:00
2024-05-13 18:19:09 -06:00
2024-05-08 08:51:20 +02:00
2024-05-09 10:01:01 -07:00
2023-12-12 14:24:14 +01:00
2024-05-08 10:35:09 +01:00
2024-01-31 16:41:16 -08:00
2024-05-13 18:19:19 -06:00
2024-04-24 09:43:54 +02:00