From: Paolo Abeni <pabeni@redhat.com>
To: mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-net 2/2] Squash-to: "mptcp: do not reschedule the RTX timer for fallback sockets"
Date: Wed, 26 Aug 2026 16:35:41 +0200 [thread overview]
Message-ID: <973f5156-e829-471c-a099-1fe3935e15a0@redhat.com> (raw)
In-Reply-To: <20260826103038.1CE861F000E9@smtp.kernel.org>
On 8/26/26 12:30 PM, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [High] Non-blocking MPTCP Fastopen bypasses `mptcp_connect`, leaving the socket permanently in `TCP_CLOSE` and failing to enable the RTX timer.
> --
>
> commit 4679eada053d3ad7385facbcb9d12c98ccd146f2
> Author: Paolo Abeni <pabeni@redhat.com>
> Subject: Squash-to: "mptcp: do not reschedule the RTX timer for fallback sockets"
>
> This commit replaces the MPTCP_RTX_DISABLED flag with MPTCP_RTX_ENABLED to
> explicitly control the retransmit timer status across the socket lifecycle.
> It sets the enabled flag during active connect and passive initialization.
>
>> diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
>> index 2f17c5daa704e..a28a0506d28da 100644
>> --- a/net/mptcp/protocol.c
>> +++ b/net/mptcp/protocol.c
>
> [ ... ]
>
>> @@ -4154,6 +4155,7 @@ static int mptcp_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
>> return PTR_ERR(ssk);
>>
>> mptcp_set_state(sk, TCP_SYN_SENT);
>> + set_bit(MPTCP_RTX_ENABLED, &msk->flags);
>
> [Severity: High]
> Does this change leave the RTX timer disabled during non-blocking Fastopen
> connections?
Funny, opus-4.8 locally had the same concern and discarded it as
hallucination. Unfortunately I don't have the log handy.
>
> When a non-blocking TCP Fast Open connection is initiated on an MPTCP socket
> (using MSG_FASTOPEN and MSG_DONTWAIT), mptcp_sendmsg_fastopen() skips the call
> to __inet_stream_connect(), which bypasses mptcp_connect() entirely:
It looks real, I'll send a v2.
/P
next prev parent reply other threads:[~2026-08-26 14:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 10:13 [PATCH mptcp-net 1/2] mptcp: prevent race between disconnect() and rtx Paolo Abeni
2026-08-26 10:13 ` [PATCH mptcp-net 2/2] Squash-to: "mptcp: do not reschedule the RTX timer for fallback sockets" Paolo Abeni
2026-08-26 10:30 ` sashiko-bot
2026-08-26 14:35 ` Paolo Abeni [this message]
2026-08-26 11:40 ` MPTCP CI
2026-08-26 12:38 ` Matthieu Baerts
2026-08-26 14:38 ` Paolo Abeni
2026-08-26 17:47 ` Matthieu Baerts
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=973f5156-e829-471c-a099-1fe3935e15a0@redhat.com \
--to=pabeni@redhat.com \
--cc=mptcp@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.