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=1796385460; b=J47LRZCA0DBSYNw800l0DJhuC/3AzdDYR/NHekdKTueBnbCSwebuN9mKH4PiZFJhKJux CHT1ZtnR5AVYQnLzu7MG2poUmiJLhJJK9sEh2cBTmZlkaKuxtrGHXOORXvdvl4x+E4kw4 XLvCIthAtPsKqAkUrAYAp19gjwg+T6LFQ6Wp09SKf0fVQwU7woGmAUr9Mc3n7+qf3zq14 Iau6Kh9dxG5+xLKhl+KDSkVDTwFWbjCf9FjfWpdZ2DkTeQEOvDvib9FHCRyz8OIJFkuIl 27GGQ2g17i0POdqCNBKAieolZNP5v32giNqdjF7txyYcUv1TQry+lOAqOBHsxHie5zg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385460; 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=sQuE6vI5IsUpQtGZrI7/tCK7YEa4vWGBcUIY1duJLZA=; b=fcZ5QL0Ik0Df61pnn3j77suAYcEXmOT53azTn+nghQXLXpXLFuPVqGHJBtGM9yO43AN9 M62yjszPZqVyhDvuZax3yNMg7AKfZ/Kxd/2NrgcMcEy5ZcKeeLWLeGDYqBfpV4xy4IDN3 EdrGA1C8yPCdrkB0yBa5eaE6HREe2pfmLND87LxfoWA2kaap8LDQbHkMLU4CawXfOjAJJ UC7H61N3a7w8cgmxyM+IjmffQ17UWQR/w0EUmuzuQ4zjoKn5I26U3UHYyPSX6Xme0g2vO aiX0vUouu7LvjWcIjhUuMVoomRaG2zILBdgDhRwatESuAOY6Jag4YevmdVMWcL5haHg== 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=YZteYvBs; 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 E7299606A32F; Fri, 4 Dec 2026 11:57:39 +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=YZteYvBs Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6327F1F000CE; Fri, 4 Dec 2026 11:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385459; bh=sQuE6vI5IsUpQtGZrI7/tCK7YEa4vWGBcUIY1duJLZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YZteYvBsVGAzZmzovJDMInCSBZc5EbzrCMRTvIF/OMA73cygdbU66uI5yRB0yqxuR G8/pCIFqcmeu2J94pl9eFkeiVqSE4h5v2HwpyTJcnLKjyYY5M6TEOYq/KaWQ5tH/sA neHYCm/0J11c5pLKDXuknnxFs85r1fW+IB8etN94= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Tim Budding , Xin Long , Jakub Kicinski Subject: [PATCH 6.6 0565/1167] sctp: abort unordered partial delivery when its message is skipped Date: Fri, 4 Dec 2026 18:59:52 +0900 Message-ID: <20261204100716.765930337@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: patches@lists.linux.dev 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 05852c8b70f2291a50bb3f740a66ce9caf9cb98d upstream. When an I-FORWARD-TSN skips unordered messages on a stream, sctp_intl_skip() only aborts the stream's unordered partial delivery if the MID being delivered is lower than the skipped MID. If the skipped message is the one being partially delivered, partial delivery stays in progress: no PARTIAL_DELIVERY_ABORTED is sent, and the next unordered message on the stream is delivered as the rest of the abandoned one. Abort the partial delivery when the MID being delivered is at or below the skipped MID, as the ordered case already does. Reproduced on an unmodified kernel with the uo_pd test of the sctp_ifwdtsn.sh selftest added later in this series; its partial delivery checks pass with this fix. Reproduction and fix done with AI assistance. Fixes: de60fe910543 ("sctp: implement handle_ftsn for sctp_stream_interleave") Cc: stable@vger.kernel.org Signed-off-by: Tim Budding Acked-by: Xin Long Link: https://patch.msgid.link/20261105050225.49292-2-tim.budding@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/sctp/stream_interleave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/sctp/stream_interleave.c +++ b/net/sctp/stream_interleave.c @@ -1255,7 +1255,7 @@ static void sctp_intl_skip(struct sctp_u struct sctp_stream *stream = &ulpq->asoc->stream; if (flags & SCTP_FTSN_U_BIT) { - if (sin->pd_mode_uo && MID_lt(sin->mid_uo, mid)) { + 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, GFP_ATOMIC);