From: sashiko-bot@kernel.org
To: "Paolo Abeni" <pabeni@redhat.com>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-net v2 2/2] Squash-to: "mptcp: do not reschedule the RTX timer for fallback sockets"
Date: Wed, 26 Aug 2026 16:25:25 +0000 [thread overview]
Message-ID: <20260826162525.8D5F91F000E9@smtp.kernel.org> (raw)
In-Reply-To: <134b1453d11ffac177571c72b7832a6c62fa06df.1787760635.git.pabeni@redhat.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The MPTCP retransmission timer is not properly enabled for active connections or on subsequent connect() retries due to an early return in subflow_chk_local_id(), completely breaking MPTCP retransmissions.
--
commit d97031273df9e2f644d64a1baa6fef7afaac166d
Author: Paolo Abeni <pabeni@redhat.com>
Squash-to: "mptcp: do not reschedule the RTX timer for fallback sockets"
This patch changes the MPTCP RTX status tracking from a 'disabled' flag
to an 'enabled' flag across the msk lifecycle.
> diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
> index 01db7edce18a6..ac35ffdaf37f6 100644
> --- a/net/mptcp/subflow.c
> +++ b/net/mptcp/subflow.c
> @@ -634,6 +634,13 @@ static int subflow_chk_local_id(struct sock *sk)
> if (likely(subflow->local_id >= 0))
> return 0;
>
> + /* Slightly unrelated, leverage this code path being called once per
> + * connection before sending the first packet. Early fallback could
> + * take place at mptcp_connect() time.
> + */
> + if (!__mptcp_check_fallback(msk))
> + set_bit(MPTCP_RTX_ENABLED, &msk->flags);
> +
[Severity: High]
Will this flag setup ever be reached for the first subflow?
Looking at active connections, __mptcp_socket_create() explicitly
initializes the first subflow with local_id = 0:
net/mptcp/protocol.c:__mptcp_socket_create() {
...
/* This is the first subflow, always with id 0 */
WRITE_ONCE(subflow->local_id, 0);
...
}
When packet transmission calls subflow_chk_local_id(), the early return for
subflow->local_id >= 0 evaluates to true (0 >= 0), bypassing the call
to set_bit() for the MPTCP_RTX_ENABLED flag.
Because the patch flips the flag semantics from 'DISABLED' to 'ENABLED', this
leaves the timer permanently bypassed in mptcp_reset_rtx_timer() since the
flag is never set for active connections.
Additionally, when mptcp_set_state() clears this flag on the first connect()
failure during TCP_CLOSE, the flag fails to be set on retry because the
subflow is reused with local_id = 0, leaving the timer disabled during
retries as well. Can this be adjusted to ensure the flag is properly set
for active connections?
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1787760635.git.pabeni@redhat.com?part=2
next prev parent reply other threads:[~2026-08-26 16:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 16:10 [PATCH mptcp-net v2 0/2] mptcp: more cleanups Paolo Abeni
2026-08-26 16:10 ` [PATCH mptcp-net v2 1/2] mptcp: prevent race between disconnect() and rtx Paolo Abeni
2026-08-26 16:11 ` [PATCH mptcp-net v2 2/2] Squash-to: "mptcp: do not reschedule the RTX timer for fallback sockets" Paolo Abeni
2026-08-26 16:25 ` sashiko-bot [this message]
2026-08-27 7:52 ` Paolo Abeni
2026-08-26 17:29 ` [PATCH mptcp-net v2 0/2] mptcp: more cleanups 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=20260826162525.8D5F91F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=pabeni@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox