[Devel] [PATCH hci-8.1 1/2] ms/mptcp: reset msk state on early connect failure
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Nov 17 10:51:04 MSK 2026
> From: Quanye Yang <quanyeyang at proton.me>
>
> [ Upstream commit 29afe67082b2d33ab2e90c56c337235d725f023f ]
>
> 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(). This was reported by Clashiko [1].
>
> 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.
> [ ... ]
>
> https://virtuozzo.atlassian.net/browse/VSTOR-155419
> Feature: fix ms/net
>
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261117074627.820727-1-eva.kurchatova@virtuozzo.com?part=1
More information about the Devel
mailing list