[Devel] [PATCH hci-8.1 2/2] ms/mptcp: avoid dup SUB_CLOSED events after disconnect
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Nov 17 10:51:55 MSK 2026
> From: "Matthieu Baerts (NGI0)" <matttbe at kernel.org>
>
> [ Upstream commit 280d654324e33f8e6e3641f76764694c7b64c5db ]
>
> In case of subflow disconnect(), which can also happen with the first
> subflow in case of errors like timeout or reset, mptcp_subflow_ctx_reset
> will reset most fields from the mptcp_subflow_context structure,
> including close_event_done. Then, when another subflow is closed, yet
> another SUB_CLOSED event for the disconnected initial subflow is sent.
> Because of the previous reset, there are no source address and
> destination port.
>
> A solution is then to also check the subflow's local id: it shouldn't be
> negative anyway.
>
> [ ... ]
>
> 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=2
More information about the Devel
mailing list