From: Kuniyuki Iwashima <kuniyu@amazon.com>
To: <kerneljasonxing@gmail.com>
Cc: <0x7f454c46@gmail.com>, <davem@davemloft.net>, <dima@arista.com>,
<dsahern@kernel.org>, <edumazet@google.com>,
<kernelxing@tencent.com>, <kuba@kernel.org>,
<ncardwell@google.com>, <netdev@vger.kernel.org>,
<pabeni@redhat.com>, <kuniyu@amazon.com>
Subject: Re: [PATCH net-next] tcp: do not allow to connect with the four-tuple symmetry socket
Date: Sun, 18 Aug 2024 11:48:49 -0700 [thread overview]
Message-ID: <20240818184849.56807-1-kuniyu@amazon.com> (raw)
In-Reply-To: <CAL+tcoDDXT4wBQK0akpg4FR+COfZ7dztz5GcWp6ah68nbvwzTg@mail.gmail.com>
From: Jason Xing <kerneljasonxing@gmail.com>
Date: Sun, 18 Aug 2024 21:50:51 +0800
> On Sun, Aug 18, 2024 at 1:16 PM Jason Xing <kerneljasonxing@gmail.com> wrote:
> >
> > On Sun, Aug 18, 2024 at 12:25 PM Jason Xing <kerneljasonxing@gmail.com> wrote:
> > >
> > > From: Jason Xing <kernelxing@tencent.com>
> > >
> > > Four-tuple symmetry here means the socket has the same remote/local
> > > port and ipaddr, like this, 127.0.0.1:8000 -> 127.0.0.1:8000.
> > > $ ss -nat | grep 8000
> > > ESTAB 0 0 127.0.0.1:8000 127.0.0.1:8000
>
> Thanks to the failed tests appearing in patchwork, now I'm aware of
> the technical term called "self-connection" in English to describe
> this case. I will update accordingly the title, body messages,
> function name by introducing "self-connection" words like this in the
> next submission.
>
> Following this clue, I saw many reports happening in these years, like
> [1][2]. Users are often astonished about this phenomenon and lost and
> have to find various ways to workaround it. Since, in my opinion, the
> self-connection doesn't have any advantage and usefulness,
It's useful if you want to test simultaneous connect (SYN_SENT -> SYN_RECV)
path as you see in TCP-AO tests. See RFC 9293 and the (!ack && syn) case
in tcp_rcv_synsent_state_process().
https://www.rfc-editor.org/rfc/rfc9293.html#section-3.5-7
So you can't remove self-connect functionality, the recent main user is
syzkaller though.
next prev parent reply other threads:[~2024-08-18 18:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-18 4:25 [PATCH net-next] tcp: do not allow to connect with the four-tuple symmetry socket Jason Xing
2024-08-18 5:16 ` Jason Xing
2024-08-18 13:50 ` Jason Xing
2024-08-18 18:48 ` Kuniyuki Iwashima [this message]
2024-08-18 23:48 ` Jason Xing
2024-08-19 0:26 ` Jason Xing
2024-08-19 7:30 ` Eric Dumazet
2024-08-19 9:01 ` Jason Xing
2024-08-19 9:18 ` Eric Dumazet
2024-08-19 9:31 ` Jason Xing
2024-08-19 9:38 ` Eric Dumazet
2024-08-19 9:41 ` Jason Xing
2024-08-19 17:56 ` Kuniyuki Iwashima
2024-08-20 0:29 ` Jason Xing
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=20240818184849.56807-1-kuniyu@amazon.com \
--to=kuniyu@amazon.com \
--cc=0x7f454c46@gmail.com \
--cc=davem@davemloft.net \
--cc=dima@arista.com \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=kerneljasonxing@gmail.com \
--cc=kernelxing@tencent.com \
--cc=kuba@kernel.org \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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