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=1796385473; b=J9J6rkrUiPdRrxBLgV3C1Q+3DxeMxcZpgoJb/z9GVUwk02rDjb3fso8+CDu9W1dBv5S2 KE08h8GolsVDtUSTT5nw6AzETZctRRTOOwVg0JFBb1+iy1NS5AMpGXNrONs7jYM3ofKai 6DD4p+2+hsS29cB9Rsb3FBMAYp/FgEpewMMx9ZQcqYhrZeCeRvsxSrwd58viWsCTfINr4 mMJ5q8cQ0Y1dOfKSsZHuKlnTbhcWw3LukLCE9nHfwHMM6M1Juzhg7kbN5pryPunqx4TT7 aMBKOhSz1/s0Kgds/U1iWaLn6TLrYAApMnI86BMV8FeV5BRVya8fm8gSxGGAx/+hKOg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385473; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=JtezM681PCtXNVyk55lKPeh1jbaQKea6uSKmVH95lqE=; b=YOovuSMe+kHAo7OfEHqqPP8BHvvbORqtfPPj42w5w+X0Igb4BuJ3NxNDVYgoB5KFIJdA YSjTR6qERNsNaKnQkScLnJa8BjraFPnj1Zbu3haarTU9+k3sBlpvIQiDxU3/UJLhviasO W7ZabZUsmx0nvqQ8S/E0Da1xlnD3XQb+KAWwLdvJsxN+3ozZoZNHkPsMRAj9Kb+AbGESp 35OAsuS4a0i6G1sRxhS9Fi0vCRvD6GLNshu6VXrEIRrpCrosVplF6l1ExLovWA0cCy6nM xNOeeAOnWTikJ3gu9u/2RRtux7P2dRJn7TeV6XiNRsOZZy8PIL4ieJVhzdDkiBPurAQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tDKISR5E; 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 A6CE0606A322; Fri, 4 Dec 2026 11:57:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tDKISR5E Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5A9F1F00A10; Fri, 4 Dec 2026 11:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385473; bh=JtezM681PCtXNVyk55lKPeh1jbaQKea6uSKmVH95lqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tDKISR5E1hMqO7puMNYjnnWJIPsLvSkj251Mq8sJBqBDVqnXw7kvmDidqkvgLeNDz WbHFY9um+gEB2Rda6hmb8+3L3djBSSr2JU2KgYXSvaz12QnzwIa9Hz/3WXn6KeQxsD MFQ6W8dt+i8p/WDvUVpLOeXvQQciP4m930O8gC2U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sashiko , Tim Budding , Xin Long , Jakub Kicinski Subject: [PATCH 6.6 0569/1167] sctp: report the partially delivered MID in PARTIAL_DELIVERY_ABORTED Date: Fri, 4 Dec 2026 18:59:56 +0900 Message-ID: <20261204100716.869366856@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tim Budding commit 3097fba868019924e92b8786ebd473992565f015 upstream. When an I-FORWARD-TSN skips the message being partially delivered on a stream, sctp_intl_skip() passes the MID from the I-FORWARD-TSN to the PARTIAL_DELIVERY_ABORTED notification as pdapi_seq. That MID is the highest one skipped on the stream, so when more than one message is skipped, the notification names a later message instead of the one whose partial delivery was aborted. Report the MID being partially delivered, sin->mid_uo or sin->mid, instead. Reproduced on an unmodified kernel with the pdapi and pdapi_uo tests of the sctp_ifwdtsn.sh selftest added later in this series, which pass with this fix. Reproduction and fix done with AI assistance. Fixes: de60fe910543 ("sctp: implement handle_ftsn for sctp_stream_interleave") Reported-by: Sashiko Closes: https://lore.kernel.org/all/179293012867.3134.16497481637722705271@kernel.org/ Cc: stable@vger.kernel.org Signed-off-by: Tim Budding Acked-by: Xin Long Link: https://patch.msgid.link/20261105050225.49292-3-tim.budding@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/sctp/stream_interleave.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/sctp/stream_interleave.c +++ b/net/sctp/stream_interleave.c @@ -1245,7 +1245,7 @@ static void sctp_intl_skip(struct sctp_u if (flags & SCTP_FTSN_U_BIT) { if (sin->pd_mode_uo && !MID_lt(mid, sin->mid_uo)) { sin->pd_mode_uo = 0; - sctp_intl_stream_abort_pd(ulpq, sid, mid, 0x1, + sctp_intl_stream_abort_pd(ulpq, sid, sin->mid_uo, 0x1, GFP_ATOMIC); } sctp_intl_reasm_flush_mid(&ulpq->reasm_uo, sid, mid); @@ -1257,7 +1257,7 @@ static void sctp_intl_skip(struct sctp_u if (sin->pd_mode) { sin->pd_mode = 0; - sctp_intl_stream_abort_pd(ulpq, sid, mid, 0x0, GFP_ATOMIC); + sctp_intl_stream_abort_pd(ulpq, sid, sin->mid, 0x0, GFP_ATOMIC); } sctp_intl_reasm_flush_mid(&ulpq->reasm, sid, mid);