From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796507141; b=nqaLhouInJshdlLE3RaOq6E+lQg5I/Og0dkrOKZocojL3gbS6FX3XRrYJwhxorjhUC1R iQt2VPsRQQs4pNcX36IyPC9zTSRzJm8pMBRjzo0cK3B2XtLdF/aaqpkyPgN7BtmEtwkLB 1LI3NtX1AJrpswC0DeoJg9cn+fhI2cZ/kHO6btHsjkcT3QqFkdcdlHhcljXRMVuksGvz2 G5yh7ixNSHBmgV7OnE2HMqh4sl9YNst8wBXjsEA8RI6Khg6DpuB6N0EEN8SSuQD7kLLhY 3hCgz5ctx2bvc1YQmkX1brqoDRH+iHZMPFXd4Yt7jHo5WXpFrPg2jXaRJSdudU026XQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796507141; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=OLMdE2uwATDEJscrgOlR6D/pPx1yBxOWQp3PblY4OQc=; b=Jtewqb+kc5qay0OqV0+svBBc3KQP0hmGpjHUkkKAp+u3QioXffHA4O5SyIqZBPK0e5eG IpcXiRg1C0IkrOhU6E/dgqaXH+H7Zlb4SPLfLFm+jK+F9Qo6M9fEhdVBsYaSWib5XGmyZ niRR4T+/lu1475KxO5S1k7Fb8VShBVFWtrk9hzZDPSr4PNZkCZNxXGgMqEvdE46Iz672E 0UfinDLn/uwUL+y3RzlWkB+WgAXOObnVLzUek1LoputwWZ/xLb8bgMpaUxA7RtyGBrZ1y I8aJ7bt8nNtrnj1Sn+K64Z9NdBOmW2KfAYLe2S82D/YbiMzTpsJFCI47HZaDQkeFr/w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NtgjEvR5; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8620606A31F for ; Sat, 5 Dec 2026 21:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NtgjEvR5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 567A21F0092B; Sat, 5 Dec 2026 21:45:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796507141; bh=OLMdE2uwATDEJscrgOlR6D/pPx1yBxOWQp3PblY4OQc=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=NtgjEvR5zC5l/zuRxX9R9ncgJUx4cMFLHzXka4C7ap/jgF1yatxTQDYyctU9J4hpz dgv9Yek2Ame+4CWRmaUgNqOlJcfXMfnQlK4rIMShACuAocCKWKATW6ynErwGwvWCxy xxJXNwQAQ8z9d5CWZICq3sLu8lufSUgKiHdnoVdc/mfi6Zng8GN99U16HS4fcb73Ei 5KjpTPPXm7vtZG9aLh9fjTCB2/uqTESfbBxAm7bTJXM3Lf1HfzmRW6Y1ZulOW7VTpR 0S1uniVNFoZRO/ZATJKces5wDzZD2mD0cKKJ5Z64h+isITQ31HYrl73rH5HSYJcc2w /m9sQLqTY/6uw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next 03/10] mptcp: pm: don't drop an RM_ADDR because of an ADD_ADDR Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?TWF0dGhpZXUgQmFlcnRzIChOR0kwKQ==?= Cc: mptcp@lists.linux.dev In-Reply-To: <20261204-net-next-mptcp-misc-feat-7-5-v1-3-1449de51adae@kernel.org> References: <20261204-net-next-mptcp-misc-feat-7-5-v1-0-1449de51adae@kernel.org> <20261204-net-next-mptcp-misc-feat-7-5-v1-3-1449de51adae@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 21:45:40 +0000 X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] mptcp: pm: mptcp_pm_remove_addr() leaves RM_ADDR unsent behind ADD_ADDR -- commit ae45d6f32d8cb1d980533b6114831ae762e410fd Author: Josef Bacik mptcp: pm: don't drop an RM_ADDR because of an ADD_ADDR This commit changes mptcp_pm_remove_addr() to check only MPTCP_RM_ADDR_SIGNAL via mptcp_pm_should_rm_signal() instead of any bit in msk->pm.addr_signal, so that an RM_ADDR is not dropped when an ADD_ADDR or echo is pending. > diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c > index dacd3cf358f5a..f12a8bfbb2a9a 100644 > --- a/net/mptcp/pm.c > +++ b/net/mptcp/pm.c > @@ -529,7 +529,7 @@ int mptcp_pm_remove_addr(struct mptcp_sock *msk, cons= t struct mptcp_rm_list *rm_ > =20 > pr_debug("msk=3D%p, rm_list_nr=3D%d\n", msk, rm_list->nr); > =20 > - if (rm_addr) { > + if (mptcp_pm_should_rm_signal(msk)) { > MPTCP_ADD_STATS(sock_net((struct sock *)msk), > MPTCP_MIB_RMADDRTXDROP, rm_list->nr); > return -EINVAL; [Severity: Medium] Does returning from mptcp_pm_remove_addr() with MPTCP_RM_ADDR_SIGNAL still pending defeat subflow avoidance and drop or strand RM_ADDR notifications? mptcp_pm_remove_addr() calls mptcp_pm_addr_send_ack_avoid_list() once, but mptcp_established_options() evaluates ADD_ADDR/echo ahead of else if (mptcp_established_options_rm_addr()). That single pure ACK consumes the ADD_ADDR or echo and leaves MPTCP_RM_ADDR_SIGNAL set. In mptcp_nl_remove_subflow_and_signal_addr(), the caller still holds lock_sock(sk) and immediately calls mptcp_pm_rm_subflow(). Its mptcp_subflow_shutdown() -> tcp_send_ack() then sends the leftover RM_ADDR over the removed subflow instead of a healthy one. This defeats commit fb8d0bccb221 ("mptcp: pm: avoid sending RM_ADDR over same subflow") and loses the RM_ADDR when the removed interface is already down. In mptcp_pm_flush_addrs_and_subflows(), flushing more than MPTCP_RM_IDS_MAX announced-only endpoints loops immediately under the same lock_sock(sk), sees MPTCP_RM_ADDR_SIGNAL still set, and drops the next batch with MPTCP_MIB_RMADDRTXDROP. On an idle connection with no subflow shutdown (for example, removing a signal-only endpoint while both ADD_ADDR and echo are pending), MPTCP_RM_ADDR_SIGNAL can stay stranded until unrelated traffic occurs. Calling mptcp_pm_addr_send_ack_avoid_list() in a bounded loop while mptcp_pm_should_rm_signal(msk) stays set and msk->pm.addr_signal clears a bit would flush the pending signals over the healthy subflow before returning. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-net-next-m= ptcp-misc-feat-7-5-v1-0-1449de51adae@kernel.org?part=3D3