FAILED: patch "[PATCH] mptcp: fix address removal logic in mptcp_pm_nl_rm_addr" failed to apply to 6.17-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.17-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.17.y
git checkout FETCH_HEAD
git cherry-pick -x 92e239e36d600002559074994a545fcfac9afd2d
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2025112435-stray-aflutter-0f77@gregkh' --subject-prefix 'PATCH 6.17.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 92e239e36d600002559074994a545fcfac9afd2d Mon Sep 17 00:00:00 2001
From: Gang Yan <[email protected]>
Date: Tue, 18 Nov 2025 08:20:28 +0100
Subject: [PATCH] mptcp: fix address removal logic in mptcp_pm_nl_rm_addr
Fix inverted WARN_ON_ONCE condition that prevented normal address removal counter updates. The current code only executes decrement logic when the counter is already 0 (abnormal state), while normal removals (counter > 0) are ignored.
net/mptcp/pm_kernel.c +1 -1
@@ -672,7 +672,7 @@ static void mptcp_pm_nl_add_addr_received(struct mptcp_sock *msk)void mptcp_pm_nl_rm_addr (struct mptcp_sock *msk,u8 rm_id) { -if (rm_id &&WARN_ON_ONCE (msk->pm.add_addr_accepted ==0 )) { +if (rm_id && !WARN_ON_ONCE (msk->pm.add_addr_accepted ==0 )) {u8 limit_add_addr_accepted =mptcp_pm_get_limit_add_addr_accepted (msk);
Sasha Levin
maintainerPATCH 1/1 mptcp: fix address removal logic in mptcp_pm_nl_rm_addr
From: Gang Yan <[email protected]>
[ Upstream commit 92e239e36d600002559074994a545fcfac9afd2d ]
Fix inverted WARN_ON_ONCE condition that prevented normal address removal counter updates. The current code only executes decrement logic when the counter is already 0 (abnormal state), while normal removals (counter > 0) are ignored.
--- net/mptcp/pm_kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mptcp/pm_kernel.c +1 -1
@@ -548,7 +548,7 @@ static void mptcp_pm_nl_add_addr_received(struct mptcp_sock *msk)void mptcp_pm_nl_rm_addr (struct mptcp_sock *msk,u8 rm_id) { -if (rm_id &&WARN_ON_ONCE (msk->pm.add_addr_accepted ==0 )) { +if (rm_id && !WARN_ON_ONCE (msk->pm.add_addr_accepted ==0 )) {/* Note: if the subflow has been closed before, this * add_addr_accepted counter will not be decremented. */
Signature · 1 line
2.51.0