Files
linux/net/ipv4
Eric Dumazet 5f92385309 tcp: fix __tcp_close() to only send RST when required
If the receive queue contains payload that was already
received, __tcp_close() can send an unexpected RST.

Refine the code to take tp->copied_seq into account,
as we already do in tcp recvmsg().

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://patch.msgid.link/20250903084720.1168904-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-09-04 19:13:41 -07:00
..
2025-04-11 18:58:10 -07:00
2025-03-17 13:56:38 +00:00
2024-09-09 17:21:47 -07:00
2025-08-29 19:36:32 -07:00
2025-08-26 17:34:31 -07:00
2025-07-08 13:28:27 +02:00
2025-08-29 19:36:32 -07:00
2025-04-11 18:58:10 -07:00
2024-01-04 10:23:10 -08:00
2025-09-01 13:15:14 -07:00
2025-07-14 18:41:42 -07:00
2025-08-29 19:36:32 -07:00
2025-03-17 13:54:11 +00:00
2025-03-17 13:56:38 +00:00
2025-08-28 13:14:50 +02:00
2022-12-20 03:13:45 +01:00