Thread (4 messages) flat view 4 messages, 2 authors, 2026-08-08

Re: [PATCH net] tcp: reset late connection after listening socket close

From: Asbjørn Sloth Tønnesen <hidden>
Date: 2026-08-08 08:18:19
Also in: lkml, stable

On 8/7/26 9:05 PM, Kuniyuki Iwashima wrote:
On Fri, Aug 7, 2026 at 12:47 PM Asbjørn Sloth Tønnesen [off-list ref] wrote:
quoted
[..]
+       if (sk->sk_state == TCP_CLOSE) {
+               tcp_v4_send_reset(newsk, skb, SK_RST_REASON_TCP_STATE);
+               goto put_and_exit;
+       }
What happens if the state changes here ?

quoted
+
         if (__inet_inherit_port(sk, newsk) < 0)
                 goto put_and_exit;
-ENOENT should be checked to jump to a new label and
call req->rsk_ops->send_reset() there.
I will do that in v2, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help