Merge branch 'mptcp-fix-fallback-related-races'
authorJakub Kicinski <kuba@kernel.org>
Wed, 16 Jul 2025 00:31:30 +0000 (17:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 16 Jul 2025 00:31:30 +0000 (17:31 -0700)
commitdae7f9cbd1909de2b0bccc30afef95c23f93e477
tree2e2fbd0140a085a99fa42ab3724f3c299113595d
parent2b30a3d1ec2538a1fd363fde746b9fe1d38abc77
parentda9b2fc7b73d147d88abe1922de5ab72d72d7756
Merge branch 'mptcp-fix-fallback-related-races'

Matthieu Baerts says:

====================
mptcp: fix fallback-related races

This series contains 3 fixes somewhat related to various races we have
while handling fallback.

The root cause of the issues addressed here is that the check for
"we can fallback to tcp now" and the related action are not atomic. That
also applies to fallback due to MP_FAIL -- where the window race is even
wider.

Address the issue introducing an additional spinlock to bundle together
all the relevant events, as per patch 1 and 2. These fixes can be
backported up to v5.19 and v5.15.

Note that mptcp_disconnect() unconditionally clears the fallback status
(zeroing msk->flags) but don't touch the `allows_infinite_fallback`
flag. Such issue is addressed in patch 3, and can be backported up to
v5.17.
====================

Link: https://patch.msgid.link/20250714-net-mptcp-fallback-races-v1-0-391aff963322@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>