[Devel] [PATCH hci-8.1 2/2] ms/mptcp: fix subflow bitfield misuse
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Mon Nov 16 18:00:27 MSK 2026
> From: Paolo Abeni <pabeni at redhat.com>
>
> The subflow status bitfield is protected by the subflow socket lock,
> with one notable exception: the `close_event_done` bit is actually under
> the msk socket lock protection.
>
> As reported by Clashiko [1], flipping the latter bit may corrupt other
> entries in the same bitfield.
>
> Move the `close_event_done` outside the bitfield, in a 32bit hole.
>
> Link: https://lore.kernel.org/178959153492.22033.1944011998010756543@kernel.org
> Fixes: d82809b6c5f2 ("mptcp: avoid duplicated SUB_CLOSED events")
> Cc: stable at vger.kernel.org
> Signed-off-by: Paolo Abeni <pabeni at redhat.com>
> Reviewed-by: Matthieu Baerts (NGI0) <matttbe at kernel.org>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe at kernel.org>
> Link: https://patch.msgid.link/20261013-net-mptcp-misc-fixes-7-3-rc8-v1-2-932c9b182fc7@kernel.org
> Signed-off-by: Jakub Kicinski <kuba at kernel.org>
> (cherry picked from commit 7538fa33bb2f66b8b809ff39d58308be48e197a0)
>
> Rebase note: this tree has neither the "closing" nor the "resetting"
> subflow flag, nor lent_mem_frag, so __unused grows from 9 to 10 and
> close_event_done goes after fully_established.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-154927
> 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/20261116145652.625598-1-eva.kurchatova@virtuozzo.com?part=2
More information about the Devel
mailing list