mptcp.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Matthieu Baerts <matttbe@kernel.org>, 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:38:09 +0200	[thread overview]
Message-ID: <b6687f58-df51-4785-9451-0900f055a24a@redhat.com> (raw)
In-Reply-To: <5c2cc035-02ae-4ed3-886c-d20dd799b0b4@kernel.org>

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.

/P


  reply	other threads:[~2026-08-26 14:38 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 [this message]
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=b6687f58-df51-4785-9451-0900f055a24a@redhat.com \
    --to=pabeni@redhat.com \
    --cc=matttbe@kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).