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=1796447496; b=NYM2asUwK5+GrUUhyNqwcUvso7IbQZLO1scBzWVEj2sWy34KQd2T5DUolkgxkMrgTv3w gdLwEVIC1QBsPSk+S/2mKByVAqMzJKj1u6KnwN21Dy0kiLH+TtZjaw/pNH7mGQEWdbARg 0LSzLPmLoZBPtSwIsFVn1FLlZP3JbnJVOcFnvkvDi93tSySO6aHE6I2C3OpbitTlzIzII w6uRnFZLDqllPDTs5BGDfXG5AWq2ed23z/P8+Z2B4hxmBCi6uqUxjezESWPre5m3iAqN1 TnVrPx2VMRMiXbfsL50DtOLqBIucMwmdk5n9p8TbPXmjX0bfn4wrVWGi6cBFy5Pdwjg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796447496; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Wxrwjeqwd+xuPT6JqOnXylP7dr86+5U4Xz+/CKwJhkU=; b=bxeqLNfVYX5bwiVSd1qG/qHmfkoWEv6q9BbHP/LPlF5vX37CCFGr4nFcGUMDeRTkt4kf lJNihY7zaYNZC8HtDex6/AfA40VWlcMTViTzitncuKmcDiqWL4C9yaL+PPS8gvuY9NpnA ulzn63twt6wbJ9vdCJdSaz+goRs8hw1cLsGu4gLkMqmV+qWZlmFityofhPvKTI9mfp+UK VAR/14Lyvydr/F040b+vfmhHrbhfkxq5mDS/UsN56C0+LrsiHNn3Y5WPu7buOumEiyih5 7baYYh5/DVcC3BjLlJNWDlNANKbIYkk1KWMRoduugnZwdZzNIFJyGszrWpfD8FUxkEQ== 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=l6oVN1a8; 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 2D1E7606A322 for ; Sat, 5 Dec 2026 05:11:35 +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=l6oVN1a8 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB0751F00936; Sat, 5 Dec 2026 05:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796447495; bh=Wxrwjeqwd+xuPT6JqOnXylP7dr86+5U4Xz+/CKwJhkU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=l6oVN1a8IQEjVFxrZKaSH9Krkf1OeuC4jrZteW0OnAMsOZU+jGq3uLssN4rNPBFPS jX1xJtYBDifqBfkjx4p4C0SlJeestq3hHCgvq3yKYN/RIUQ2Y8N4i2e93gNfGQWSS2 fpP8/oFqITUoQ9DFLCWJKQ9Mqyz8u/+iarYKgu27zqouFG3yp+jOemyjPWABolZAx4 s8TT20O7KzvzN2ibj+eD3SQDe6gFQtpWmeGKZPv5KN8KO03Nw+kpgnVXBqyTs7dGdx lMVFjecKBJtJDRBONs+FwbkQ4sWiUz0PnQLblOpHEfTQ4EUIwBXyCQBRo9Tnw3Snlc aqK+TaiwsWB3g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net] mptcp: pm: preserve the port when removing ID 0 Reply-To: sashiko-reviews@lists.linux.dev To: "Kyuwon Cho" Cc: mptcp@lists.linux.dev In-Reply-To: <179633974213.577499.3953204420789445318@skku.edu> References: <179633974213.577499.3953204420789445318@skku.edu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 05:11:35 +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: port mismatch in mptcp_nl_remove_id_zero_address() anno_list lookup -- commit ad23222f28ecec43f6d6673d450540a7b1eb5a74 Author: Kyuwon Cho mptcp: pm: preserve the port when removing ID 0 This commit changes mptcp_nl_remove_id_zero_address() to copy addr->port instead of clearing anno_addr.port before calling mptcp_pm_announced_remove(). > diff --git a/net/mptcp/pm_kernel.c b/net/mptcp/pm_kernel.c > index 47c6ccb0a29e4..ec49e9f2a730d 100644 > --- a/net/mptcp/pm_kernel.c > +++ b/net/mptcp/pm_kernel.c > @@ -1163,7 +1163,7 @@ static int mptcp_nl_remove_id_zero_address(struct n= et *net, > lock_sock(sk); > /* Drop a possibly pending ADD_ADDR for this address. */ > anno_addr =3D msk_local; > - anno_addr.port =3D 0; > + anno_addr.port =3D addr->port; > announced =3D mptcp_pm_announced_remove(msk, &anno_addr); > spin_lock_bh(&msk->pm.lock); > if (announced) [Severity: Medium] Can copying addr->port here still miss pending ID 0 entries in msk->pm.anno_list when the removal request's port differs from the announced endpoint's port? mptcp_pm_announced_lookup() always compares ports strictly, while mptcp_nl_remove_id_zero_address() matches msk for both addr->port =3D=3D 0 and addr->port =3D=3D msk_local.port. If a portless signal endpoint was announced with port 0 and userspace deletes ID 0 with msk_local.port, this introduces a regression where mptcp_pm_announced_remove() misses the port-0 entry that it previously removed. Conversely, a portless deletion (addr->port =3D=3D 0) still misses an ID 0 entry announced with msk_local.port. Both portless and port-specific signal endpoints for the same IP can also coexist as ID 0 entries in anno_list, so a single lookup can remove at most one of them. When an entry is missed, msk->pm.add_addr_signaled is leaked, the stale timer keeps retransmitting, and __mark_subflow_endp_available(msk, 0) re-enables the endpoint so re-announcing it hits WARN_ON_ONCE(mptcp_pm_is_kernel(msk)) in mptcp_pm_announced_alloc(). Removing pending anno_list entries by ID 0 (or checking both port 0 and msk_local.port) would handle all three cases. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179633974213.577499= .3953204420789445318@skku.edu?part=3D1