From: sashiko-bot@kernel.org
To: "Geliang Tang" <geliang@kernel.org>, mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-next v23 2/8] selftests: mptcp: connect: check TFO SIOCINQ overflow
Date: Fri, 06 Nov 2026 13:15:00 +0000 [thread overview]
Message-ID: <sashiko-outbox-201449@kernel.org> (raw)
In-Reply-To: <9705c8c5686aca72e8bbaea893587f92bdd3306d.1793969127.git.tanggeliang@kylinos.cn>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] selftests: mptcp: unhandled EOPNOTSUPP in
wait_for_remote_key() for IPv4 TCP
--
commit 058a45159cca4e12fb9271f3ed25cdefa12d46b9
Author: Geliang Tang <geliang@kernel.org>
selftests: mptcp: connect: check TFO SIOCINQ overflow
This commit adds a SIOCINQ check in mptcp_connect's server mode when the
MPTFO socket option is enabled to detect TFO SIOCINQ overflow regressions.
> diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.c b/tools/testing/selftests/net/mptcp/mptcp_connect.c
> index 178d98d91fea2..3a72bae43b906 100644
> --- a/tools/testing/selftests/net/mptcp/mptcp_connect.c
> +++ b/tools/testing/selftests/net/mptcp/mptcp_connect.c
[ ... ]
> @@ -1176,6 +1180,28 @@ static void maybe_close(int fd)
> close(fd);
> }
>
> +static bool wait_for_remote_key(int fd)
> +{
> + struct mptcp_info info;
> + int retries = 10;
> + socklen_t olen;
> +
> + while (retries > 0) {
> + olen = sizeof(info);
> + if (getsockopt(fd, SOL_MPTCP, MPTCP_INFO, &info, &olen) < 0) {
> + /* Not an MPTCP socket (TCP or fallback), skip wait */
> + if (errno == ENOPROTOOPT)
> + return true;
> + return false;
> + }
[Severity: Medium]
Should wait_for_remote_key() also check for EOPNOTSUPP here?
For AF_INET TCP sockets (and MPTCP sockets that fell back to TCP),
tcp_getsockopt() delegates non-SOL_TCP levels to ip_getsockopt() ->
do_ip_getsockopt(), which returns -EOPNOTSUPP instead of -ENOPROTOOPT
when level != SOL_IP. As a result, IPv4 TCP and TCP-fallback test cases
with -o MPTFO return false from wait_for_remote_key() and fail in
main_loop_s() with "TFO: timeout waiting for third ACK".
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1793969127.git.tanggeliang@kylinos.cn?part=2
next prev parent reply other threads:[~2026-11-06 13:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 12:57 [PATCH mptcp-next v23 0/8] Reduce the differences between TCP and MPTCP for TLS usage Geliang Tang
2026-11-06 12:57 ` [PATCH mptcp-net v23 1/8] mptcp: fix TFO SIOCINQ overflow in mptcp_inq_hint Geliang Tang
2026-11-08 7:37 ` netdev-bot+sashiko
2026-11-06 12:57 ` [PATCH mptcp-next v23 2/8] selftests: mptcp: connect: check TFO SIOCINQ overflow Geliang Tang
2026-11-06 13:15 ` sashiko-bot [this message]
2026-11-08 7:37 ` netdev-bot+sashiko
2026-11-06 12:57 ` [PATCH mptcp-net v23 3/8] mptcp: fix fallback dummy mapping anchor Geliang Tang
2026-11-08 7:37 ` netdev-bot+sashiko
2026-11-06 12:57 ` [PATCH mptcp-next v23 4/8] mptcp: drop the mptcp_ooo_try_coalesce() helper Geliang Tang
2026-11-06 12:57 ` [PATCH mptcp-next v23 5/8] mptcp: drop the cant_coalesce CB field Geliang Tang
2026-11-06 12:57 ` [PATCH mptcp-next v23 6/8] mptcp: remove CB offset field Geliang Tang
2026-11-06 13:41 ` sashiko-bot
2026-11-08 7:37 ` netdev-bot+sashiko
2026-11-06 12:57 ` [PATCH mptcp-next v23 7/8] mptcp: sync mptcp skb cb layout with tcp one Geliang Tang
2026-11-08 7:37 ` netdev-bot+sashiko
2026-11-06 12:57 ` [PATCH mptcp-next v23 8/8] mptcp: defer read_sock cleanup to mptcp_worker Geliang Tang
2026-11-08 7:37 ` netdev-bot+sashiko
2026-11-06 15:01 ` [PATCH mptcp-next v23 0/8] Reduce the differences between TCP and MPTCP for TLS usage MPTCP CI
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=sashiko-outbox-201449@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=geliang@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.