Netdev List
 help / color / mirror / Atom feed
From: "Asbjørn Sloth Tønnesen" <ast@fiberby.net>
To: Kuniyuki Iwashima <kuniyu@google.com>
Cc: Eric Dumazet <edumazet@google.com>,
	Neal Cardwell <ncardwell@google.com>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	Al Viro <viro@zeniv.linux.org.uk>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Kristian Nielsen <knielsen@knielsen-hq.org>,
	stable@vger.kernel.org
Subject: Re: [PATCH net] tcp: reset late connection after listening socket close
Date: Sat, 8 Aug 2026 08:17:50 +0000	[thread overview]
Message-ID: <ffccc183-5fe6-460a-9dc7-5f2a174d3068@fiberby.net> (raw)
In-Reply-To: <CAAVpQUD9RTxs742Ty-UQXJJwTbN2wrnFGQDffKN0eZL4udq3Ng@mail.gmail.com>

On 8/7/26 9:05 PM, Kuniyuki Iwashima wrote:
> On Fri, Aug 7, 2026 at 12:47 PM Asbjørn Sloth Tønnesen <ast@fiberby.net> wrote:
>> [..]
>> +       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 ?
> 
> 
>> +
>>          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.

      parent reply	other threads:[~2026-08-08  8:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07 19:45 [PATCH net] tcp: reset late connection after listening socket close Asbjørn Sloth Tønnesen
2026-08-07 21:05 ` Kuniyuki Iwashima
2026-08-07 23:27   ` Asbjørn Sloth Tønnesen
2026-08-08  8:17   ` Asbjørn Sloth Tønnesen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ffccc183-5fe6-460a-9dc7-5f2a174d3068@fiberby.net \
    --to=ast@fiberby.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=knielsen@knielsen-hq.org \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox