All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: quanyeyang@proton.me
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-net v2 1/2] mptcp: reset msk state on early connect failure
Date: Tue, 6 Oct 2026 19:37:22 +0200	[thread overview]
Message-ID: <a091954a-5989-42b8-a4ba-1f636ba33571@kernel.org> (raw)
In-Reply-To: <21b19217-8aff-4147-b240-dd04260b3450@kernel.org>

On 06/10/2026 19:36, Matthieu Baerts wrote:
> Hi Quanye,
> 
> On 11/09/2026 17:42, Quanye Yang via B4 Relay wrote:
>> From: Quanye Yang <quanyeyang@proton.me>
>>
>> mptcp_connect() can fall back before the subflow SYN is sent, for
>> example when the netns is in an MPTCP blackhole, token allocation
>> fails, or MD5SIG is in use. If the subsequent subflow connect()
>> fails immediately (EAFNOSUPPORT, ENETUNREACH, ...),
>> __inet_stream_connect() returns while the socket is still
>> SS_UNCONNECTED and never calls ->disconnect().
>>
>> The error path only dropped the token and moved the msk back to
>> TCP_CLOSE. MPTCP_FALLBACK_DONE, allow_subflows and
>> request_mptcp were left as after early fallback, so a later
>> connect() on the same fd stayed TCP-only.
> 
> Thank you for the new version, and for your patience! This patch looks
> good to me:
> 
> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>

Now in our tree:

New patches for t/upstream-net and t/upstream:
- 070796c3cfb9: mptcp: reset msk state on early connect failure
- Results: 55d917c22cff..a89bac927400 (export-net)
- Results: 3f56793da91f..3ec672648191 (export)

Tests are now in progress:

- export-net:
https://github.com/multipath-tcp/mptcp_net-next/commit/fe786c67a826c2b32c8a2882858ab9ab45b7cfe0/checks
- export:
https://github.com/multipath-tcp/mptcp_net-next/commit/bd2d51a45268c4bc02f5bdf66c5605ff6de59afd/checks

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


  reply	other threads:[~2026-10-06 17:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-11 15:42 [PATCH mptcp-net v2 0/2] mptcp: fix leftover fallback after failed connect Quanye Yang via B4 Relay
2026-09-11 15:42 ` Quanye Yang
2026-09-11 15:42 ` [PATCH mptcp-net v2 1/2] mptcp: reset msk state on early connect failure Quanye Yang via B4 Relay
2026-09-11 15:42   ` Quanye Yang
2026-10-06 17:36   ` Matthieu Baerts
2026-10-06 17:37     ` Matthieu Baerts [this message]
2026-09-11 15:42 ` [PATCH mptcp-net v2 2/2] selftests: mptcp: join: retry connect after early fallback Quanye Yang via B4 Relay
2026-09-11 15:42   ` Quanye Yang
2026-09-11 17:20   ` Matthieu Baerts
2026-09-12  8:42     ` quanyeyang
2026-09-12  9:15       ` Matthieu Baerts
2026-09-11 16:41 ` [PATCH mptcp-net v2 0/2] mptcp: fix leftover fallback after failed connect 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=a091954a-5989-42b8-a4ba-1f636ba33571@kernel.org \
    --to=matttbe@kernel.org \
    --cc=mptcp@lists.linux.dev \
    --cc=quanyeyang@proton.me \
    /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.