[Devel] [PATCH hci-8.2 1/4] ms/mptcp: only reset subflow errors when propagated

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Thu Nov 19 09:38:42 MSK 2026


> From: "Matthieu Baerts (NGI0)" <matttbe at kernel.org>
> 
> commit dccf46179ddd6c04c14be8ed584dc54665f53f0e upstream.
> 
> Some subflow socket errors need to be reported to the MPTCP socket: the
> initial subflow connect (MP_CAPABLE), and the ones from the fallback
> sockets. The others are not propagated.
> 
> The issue is that sock_error() was used to retrieve the error, which was
> also resetting the sk_err field. Because of that, when notifying the
> userspace about subflow close events later on from the MPTCP worker, the
> ssk->sk_err field was always 0.
> 
> Now, the error (sk_err) is only reset when propagating it to the msk.
> 
> Fixes: 15cc10453398 ("mptcp: deliver ssk errors to msk")
> Cc: stable at vger.kernel.org
> Reviewed-by: Geliang Tang <geliang at kernel.org>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe at kernel.org>
> Link: https://patch.msgid.link/20260127-net-mptcp-dup-nl-events-v1-3-7f71e1bc4feb@kernel.org
> Signed-off-by: Jakub Kicinski <kuba at kernel.org>
> Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> (cherry picked from commit 64b243f5bc889f3eda7a0a3e2b36c4d616d323de)
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155530
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119063525.1233606-1-eva.kurchatova@virtuozzo.com?part=1




More information about the Devel mailing list