From: Matthieu Baerts <matttbe@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>, 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 19:47:04 +0200 [thread overview]
Message-ID: <bda5cfa7-1c42-433c-981c-ae0f2afd3068@kernel.org> (raw)
In-Reply-To: <b6687f58-df51-4785-9451-0900f055a24a@redhat.com>
On 26/08/2026 16:38, Paolo Abeni wrote:
> On 8/26/26 2:38 PM, Matthieu Baerts wrote:
>> On 26/08/2026 12:13, Paolo Abeni wrote:
>>> Sashiko noted that the 'RTX disabled' status is carried over
>>> across connect() failures, potentially to subsequent successful connect()
>>> or listen().
>>>
>>> Explicitly control the RTX enabling status across the whole msk life-cycle.
>>> To make the code more straight forward switch the newly introduced flag
>>> semantic.
>>
>> Thank you for looking at this!
>>
>>> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
>>> ---
>>> net/mptcp/protocol.c | 8 +++++---
>>> net/mptcp/protocol.h | 2 +-
>>> 2 files changed, 6 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
>>> index 1e7e59d497c5..db745d9dde59 100644
>>> --- a/net/mptcp/protocol.c
>>> +++ b/net/mptcp/protocol.c
>>
>> (...)
>>
>>> @@ -3363,7 +3363,7 @@ void mptcp_set_state(struct sock *sk, int state)
>>> */
>>> break;
>>> case TCP_CLOSE:
>>> - set_bit(MPTCP_RTX_DISABLED, &mptcp_sk(sk)->flags);
>>> + clear_bit(MPTCP_RTX_ENABLED, &mptcp_sk(sk)->flags);
>>
>> Could this be moved to mptcp_disconnect()? Or we prefer not, to stop
>> ASAP for some cases? (but I guess most of these cases switch to close
>> before transitioning to ESTABLISHED, no?)
> Why do you want to move the above to mptcp_disconnect()? It's better to
> prevent the rtx timer from taking action after the msk moved to close
> for any reason. IIRC we had a few syzkaller splat in the past without
> such check.
I was wondering if it could go with the other variables that are reset
there, but I also understand we want this bit set ASAP/in all cases when
switching to CLOSE. So this flag is particular, and it makes sense to
keep it there. Nothing to modify for this.
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
prev parent reply other threads:[~2026-08-26 17:47 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
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 [this message]
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=bda5cfa7-1c42-433c-981c-ae0f2afd3068@kernel.org \
--to=matttbe@kernel.org \
--cc=mptcp@lists.linux.dev \
--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 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.