From: Kuniyuki Iwashima <kuniyu@google.com>
To: Eric Dumazet <edumazet@kernel.org>,
Neal Cardwell <ncardwell@google.com>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Yuchung Cheng <ycheng@google.com>, Wei Wang <weiwan@google.com>,
Matthieu Baerts <matttbe@kernel.org>,
Mat Martineau <martineau@kernel.org>,
Geliang Tang <geliang@kernel.org>,
Simon Horman <horms@kernel.org>,
Kuniyuki Iwashima <kuniyu@google.com>,
Kuniyuki Iwashima <kuni1840@gmail.com>,
netdev@vger.kernel.org
Subject: [PATCH v1 net 0/3] tcp: Small fixes for DEFER_CONNECT.
Date: Sat, 7 Nov 2026 23:56:07 +0000 [thread overview]
Message-ID: <20261107235720.3129212-1-kuniyu@google.com> (raw)
Chris Mason reported a bug that TFO client socket can accept
segments even before it sends SYN.
He provided a patch too, but it needed some adjustments (Patch 2).
Patch 1 is a prereq fix for Patch 2, and Patch 3 is packetdrill
test for the reported bug.
Chris Mason (1):
tcp: Drop any segments if DEFER_CONNECT is set.
Kuniyuki Iwashima (2):
tcp: Clear DEFER_CONNECT before tcp_connect() and in tcp_abort().
selftest: packetdrill: Add test for DEFER_CONNECT.
include/net/inet_common.h | 2 +-
net/ipv4/af_inet.c | 10 +--
net/ipv4/tcp.c | 9 ++-
net/ipv4/tcp_input.c | 9 +++
net/ipv4/tcp_ipv4.c | 2 +-
net/ipv6/tcp_ipv6.c | 2 +-
net/mptcp/protocol.c | 5 +-
.../tcp_fastopen_client_defer-connect.pkt | 61 +++++++++++++++++++
8 files changed, 89 insertions(+), 11 deletions(-)
create mode 100644 tools/testing/selftests/net/packetdrill/tcp_fastopen_client_defer-connect.pkt
--
2.56.0.455.g6c5a503b38-goog
next reply other threads:[~2026-11-07 23:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-07 23:56 Kuniyuki Iwashima [this message]
2026-11-07 23:56 ` [PATCH v1 net 1/3] tcp: Clear DEFER_CONNECT before tcp_connect() and in tcp_abort() Kuniyuki Iwashima
2026-11-10 18:46 ` Matthieu Baerts
2026-11-10 19:12 ` Kuniyuki Iwashima
2026-11-10 19:14 ` Matthieu Baerts
2026-11-07 23:56 ` [PATCH v1 net 2/3] tcp: Drop any segments if DEFER_CONNECT is set Kuniyuki Iwashima
2026-11-07 23:56 ` [PATCH v1 net 3/3] selftest: packetdrill: Add test for DEFER_CONNECT Kuniyuki Iwashima
2026-11-11 22:12 ` [PATCH v1 net 0/3] tcp: Small fixes " patchwork-bot+netdevbpf
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=20261107235720.3129212-1-kuniyu@google.com \
--to=kuniyu@google.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=geliang@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuni1840@gmail.com \
--cc=martineau@kernel.org \
--cc=matttbe@kernel.org \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=weiwan@google.com \
--cc=ycheng@google.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