Article View: linux.kernel.netdev
Article #11499[PATCH net v2 1/4] sctp: abort unordered partial delivery when its message is skipped
From: Tim Budding
Date: Thu, 05 Nov 2026 05:02
Date: Thu, 05 Nov 2026 05:02
38 lines
12403 bytes
12403 bytes
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 <tim.budding@gmail.com>
---
net/sctp/stream_interleave.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sctp/stream_interleave.c b/net/sctp/stream_interleave.c
index 840f24045ae2..869940001588 100644
--- a/net/sctp/stream_interleave.c
+++ b/net/sctp/stream_interleave.c
@@ -1255,7 +1255,7 @@ static void sctp_intl_skip(struct sctp_ulpq *ulpq, __u16 sid, __u32 mid,
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);
--
2.34.1
Technical Details
Message-ID:
<20261105050225.49292-2-tim.budding@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357069-linux-kernel-netdev=dewy.ruReferences:
<20261105050225.49292-1-tim.budding@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357069-linux-kernel-netdev=dewy.ru
From: tim.budding@gmail.com (Tim Budding)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net v2 1/4] sctp: abort unordered partial delivery when its message is skipped
Date: Wed, 4 Nov 2026 21:02:22 -0800
Organization: Usenet Network
Message-ID: <20261105050225.49292-2-tim.budding@gmail.com>
References: <20261105050225.49292-1-tim.budding@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3564524"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:5yQmvrH1ayg2SPwAGfjnbFLuVOw= sha256:A6IIcYipQTHt/bTqpyZtePvqsnSkweeeeiV+QKw2KDU=
sha1:2VGqHFPsvq1yFmr5W/igy4HU/Ug= sha256:Xp6EEfrFq99/5QhmStOLDXCiMR24foermDyjCwN6YLI=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 0B5F9112E9A; Thu, 5 Nov 2026 08:04:45 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id ZSgVWxM9_aiH;
Thu, 5 Nov 2026 08:04:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-357069-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 641AF112E98; Thu, 5 Nov 2026 08:04:26 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 9FDCE2C90D; Thu, 5 Nov 2026 05:02:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793854970;
b=pJoc6+szNgoQ3fDFGYHMDPkuy7ZgagreZ8uAv0LdR15K3KGkYtmTnfpuZugSuiMCyjlr
B7y7It2k/dRllWQNi07CWgjcYgcnTRXlN+geV/dl/0Jzs7ClwrgBO10I6n0JDUkaYuooh
Xm40reAhwOuo7BF8gNKD/WQ4TtdtFSQ7BufwfYGeHW3YzNIqtTTyGP1eMyGmW2pGrL3FD
DbB6o5T5xZZcRyLUpQLapuJO2q7x1pgfWXu9F2XVkUwayeNINpFYIcH8VvHhmdiuawOjl
qYNHvGnOVXZeCInacNa+iaghymIQFpHBtPu31VPEESx0drzo2aRAW67+z2cSm/pYwYA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793854970;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=ZvR6TskZdWW0qqXirA6k1L3BiqLi1sfGsfq7tJ5wLss=;
b=t9RlPQ9Q+CRJadmiFg2bwr4ngzhouKVluOqElL8djuahfCcbbiD5u1++vMmmxVNYeEff
YPTWzlLdTtot7v1gheQ6vZ3RhWXnVKzqdYVx2cw1v1lggC+elDfqW0XdiAmC3wCeEvZD6
zkK45YaOPp+vCJ3YaxWFQ97zsB2T4c5wATdCj7z77tX+MExH8g+Ry/SwT8SBgN4ZhJsD8
I2FakUDuqi84U4g1kA3VP5NVLbJnfX6Y7qbamzY694NHBdKM5dVRRMvZ0h1aOEu4d4iL5
6etHrtYXeiLMrcSEYsrm4Tr2Z7m/J8zgvQ3ls0c48Z61W9ris/jzVXO9FlZl3Yc7yLQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=iVqH7DZb;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id B3910606D815;
Thu, 5 Nov 2026 05:02:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=iVqH7DZb
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.54
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793854969;
b=uChE/2ceOwQkNRe8L3pCp/vDO2O389gR+lin989nMa7Y0sSsKaf7CMa0CraUFcKdYkcz
za9maxbgEp37E+BiY/8VjvDTk1lBYnPEaGlnhdKGUQeD05uvW+6V1OZ+/F2tt25DrQpoB
gm2ibygD+5kjOGDlw/oWBm/ecrRRefzxsIQPHEiuxsCERpke/cvvJoLZgIOoxNNX2hA72
6gmP06QXmkVjEcEJ2FSJjC5iH+6TL34CUo9W9FoMVS6GIOj5CUvh5Nhw+T0JU8gtbHA0i
5QLoiQ00z3bGzUrWODESMzU+XnZmooknsueX30WL+g9hKUFaVvJO6fzMprYIxMLv+/A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793854969;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-Id:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=ZvR6TskZdWW0qqXirA6k1L3BiqLi1sfGsfq7tJ5wLss=;
b=EUtaxfMOMqFCAj3lvBiQlBDZFD4Hk8xj9ZKGQ0SkaKOy0HnP1Y8wie1BvC2sEd4V1ht/
F2hQW3af3GxmI+TmzSJXcXXHSUjFzwb0bD2JqaWA94Ic1yWtgWo4gitTFVD5JJiuRmGg4
q4IeeAALAZFfOWdUKqWZl7G9EGEfn9sYUYcic/l0mu/Ru7mb3EFLM4syFzQnK7RrvV6dj
IX10MHSBEcEA3JMzZa24zqki4+xB7ijLMds60Ffk9tvs1eJaLLY7N9Z+xyEYVOpEOXQgr
xtPmMSS7ToO3mqBkQ1yNw/et04NFiVRft3cLIALDYqYvjrNSExmafYzZrCqEpXiYozQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=iVqH7DZb;
arc=none smtp.remote-ip=74.125.82.54
X-Received: from mail-dl1-f54.google.com (mail-dl1-f54.google.com [74.125.82.54])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86B97606D807
for <netdev@vger.kernel.org>; Thu, 5 Nov 2026 05:02:49 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 86B97606D807
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dl1-f54.google.com with SMTP id a92af1059eb24-15dd124bbe7so601371c88.1
for <netdev@vger.kernel.org>; Wed, 04 Nov 2026 21:02:49 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793854969; x=1794459769; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=ZvR6TskZdWW0qqXirA6k1L3BiqLi1sfGsfq7tJ5wLss=;
b=iVqH7DZbiXYw9I1iVCOjZ4e9C4Zj9/4MJHBezBN7pD87q4SvUWBwXrtJ0712sceVUR
gTEj9SaTAXSRg78VMKO4rSzGIfEO2ZIsAhKT9Lqersq8HIbzx2VfuBENhnYee6LUWo89
Mzg5IVoS2EbjHSPJYEnrLr9ysmuj3LZBkFFEv/iw8HhzS/ss0woub3STdsy4wtFVaEr/
CfPkxVsI2GMqdOmgw2y+ixrXPdzoeBktMtV9flcUiuk3csIXxTkESHrHRxV6RwZj7Ajk
ff97Mr2c5lUhf8VKXAZY/9FUMhbt4fdBemrTWsuvFmY2Ok75cUH62NKj0dfX8ogFPceX
3dWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793854969; x=1794459769;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=ZvR6TskZdWW0qqXirA6k1L3BiqLi1sfGsfq7tJ5wLss=;
b=2j6O13M11QiJebkt4MseCbpJUNor5LpDnlWqgHvtkF8r+zKI6wlxqYe5+JN3FlIKRd
rGQCWEwsRac+jl5huMWKjIhM2RT9sQMx2bE4WANCXqs0i6KrNNcQiC11qQBg9j4qDhGM
3bQinRIlNZ+wkrYYhlbQJMVRMFK99S87sCTF1YR4uyJAFkxvbpIT7xE2YEH4ZFid+mnT
o0S7Qhmr4N8IsBJqoH9ZFZnaA7RSf2G5WbJZjzCLkdJqq9Xw4FxPv3mAiGc8Vyd0btBu
HuNEVMK/nXGyAq0bi93MEPX/AAOo5g3Rl9bLKzk0rdFU6dkIzl5yx22Br0+mcR7+sS8t
T7jw==
X-Gm-Message-State: APuU4Z9rBV+3jfKQNVmjllg5r5eiSNmcn8/cO3niyVLTH1zQb1XBJ3uR
/VKklkDryJOTthhctuIKjuA+M0/A7f8IuMpxTcDIHSPjt80MJKqXSP2HIPF8Om9B3aY=
X-Gm-Gg: AYBFou1ykrfuSRVrhmtOBZwY34GeFJXfIjgdMNC8IQRP1y0MVvjccBhNbBhMB6iefI6
WClUdtUrjUAbdsD0Pg6gr1BvUvvnYxZqcjWU7X7F3G5b+/Yi7vaV2Iw7J6mlJ0cXYmz0lKlu4SR
6Yc/VLuDjzv3V9nWn/w8cSS9XnQlKT/5Q3Odo7sg3VLfHt9FkN387GxHTRzNuYJtaapjt1ZQzha
w/pc8LX4VLRiVU309fORWhQAgGkcCttwMSarr6GZOZ7NTkcdCY547yVGI3KnvNNGd/+1s1eRvZA
+VFBPyHa11PUxtTnRFchRGitCDOZNThr5kNr+p3cH2xv/grtceb5NNqoTUKhzgjD0lWS4N4EOb2
ivEfkC9mZnJweUkZau9qEWsQmFqRW5lBoMW24kJh2H0f9AaRXZS7wRWvGZsT+l0wwVFUweofwrC
TSWVEaVh4kxvdJfnsi1VwOyrrTmvdi2+oi7pSd9L1exfvelVGN7M3S1170ZV57dO/SY6vlW46pS
sRB2qO/vYCOaR/6Jm3eX7PVu1y/FINf2VYUkxc4AsjQM1p7gCJHTg4OFa4FQE0REu8ObJMsEmVA
6MAPxvlcwXTR8S84hdIJrCgbZp2RZiQX9UfyaTcI9h6/8D0ZqdzUogL6mQjwLG+tMlQ7DP94rHY
=
X-Received: by 2002:a05:7022:29c:20b0:15a:9834:73f2 with SMTP id a92af1059eb24-1ac5c5554eemr25709808c88.38.1793854968501;
Wed, 04 Nov 2026 21:02:48 -0800 (PST)
X-Received: from localhost.localdomain ([136.25.42.214])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b245c1c283sm13626735c88.4.2026.11.04.21.02.47
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 04 Nov 2026 21:02:47 -0800 (PST)
X-Cc: lucien.xin@gmail.com,
marcelo.leitner@gmail.com,
davem@davemloft.net,
edumazet@kernel.org,
kuba@kernel.org,
pabeni@redhat.com,
horms@kernel.org,
shuah@kernel.org,
linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org,
Tim Budding <tim.budding@gmail.com>,
stable@vger.kernel.org
X-Mailer: git-send-email 2.34.1
X-In-Reply-To: <20261105050225.49292-1-tim.budding@gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list