Skip to contentSkip to conversation

FAILED: patch "[PATCH] selftests: mptcp: add test for extra_subflows underflow on" failed to apply to 6.1-stable tree

PATCH [email protected] 1 participant 1 message Jun 15

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

To reproduce the conflict and resubmit, you may use the following commands:

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y
git checkout FETCH_HEAD
git cherry-pick -x 06fd2bec7aebf393288e4b78924482fe170caabc
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026061508-freeway-cruelly-dade@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^..

Possible dependencies:

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 06fd2bec7aebf393288e4b78924482fe170caabc Mon Sep 17 00:00:00 2001
From: Tao Cui <[email protected]>
Date: Tue, 2 Jun 2026 22:14:13 +1000
Subject: [PATCH] selftests: mptcp: add test for extra_subflows underflow on
userspace PM

Add a test to verify that when userspace PM fails to create a subflow (e.g. using an unreachable address), the extra_subflows counter is not decremented below zero.

tools/testing/selftests/net/mptcp/mptcp_join.sh +4 -0
index 5acd12021e6e..4b3f71e66609 100755
@@ -4100,6 +4100,10 @@ userspace_tests()
 		chk_rm_nr 0 1
 		chk_mptcp_info subflows 0 subflows 0
 		chk_subflows_total 1 1
+		# check counters are not affected by errors at creation time
+		userspace_pm_add_sf $ns2 10.0.12.2 10 2>/dev/null
+		chk_mptcp_info subflows 0 subflows 0
+		chk_subflows_total 1 1
 		kill_events_pids
 		mptcp_lib_kill_group_wait $tests_pid
 	fi