From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795943203; b=k3ZruSaBVuMTZCtNToFB044xROVuCOPtZbYIvwWiOjHg3NHVwVwOfdwF3g/MysLWfAf4 Mm5EAU1iD4WbYWDal24Zif2rRXeasvvjufNxL6hVxLyeGUl0YQ0OonAoqbzd9ktgw5bUK wxcvkk7oDworPix6GKBMtT88KAY3Tl5xRc+ZaJp/Ht/8oz89C5SAimIdufFxkBOFXY4Pe OKcqPfaJ2OL3wLGQyHCMZO6jmxisNWvn6GuptBAcJGZAFXY3ojzTHGl+pvmO1Nk10/Wid ro+TYZO1y/aDl8ezByStg42FRASMLb4PDCOgBXGbaDyJGYWL3XFJ6wnYppalJ/RqkKg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795943203; 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:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=so7XSV2tgW0bc2KaF1PMo+MgdsNMNRBpipeOKs0zUGE=; b=pm+JofxRWBcKXyVTPBlQu1wdbOH+kC7i7+qMhBA/KoocAXuIe+ukQteP/DbvbiOrvI9Q qwZ53UEbbzl2mdRHJqS9ojaDHdS9aPBArAHz+rMQQfDwLdz6WGgq7IOMSaFafrMAsXFPR lckTUjh/vCs1aVMb+kAwULf1BUkhmxnDV3fOFj+tH6HIZkq8pK09uNtnoM6H2qgNDj0mI yQ5NvA6trElfcX6INMapVDpcVdBahANAoYuscyQzzFYilfIVebCmjrY+Qs8DpTJGTlJvc y+Fm+JMt5Vaq5DyL099cjovrxVhWqeA7wwPecGX8A4e9aikOWaXHu6ZP/wbXF0Lt4Rw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=mojatatu.com; spf=none smtp.mailfrom=mojatatu.com; dkim=pass header.d=mojatatu.com header.i=@mojatatu.com header.a=rsa-sha256 header.s=google header.b=P586KNsd; arc=none smtp.remote-ip=209.85.219.50 Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) (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 700C6606A339 for ; Sun, 29 Nov 2026 09:06:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 700C6606A339 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=mojatatu.com header.i=@mojatatu.com header.a=rsa-sha256 header.s=google header.b=P586KNsd Received: by mail-qv1-f50.google.com with SMTP id 6a1803df08f44-91e8a05ec5aso125939986d6.1 for ; Sun, 29 Nov 2026 01:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu.com; s=google; t=1795943202; x=1796548002; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=so7XSV2tgW0bc2KaF1PMo+MgdsNMNRBpipeOKs0zUGE=; b=P586KNsdTSgywONeC0Ein2bZ0uYOikgUh0vmpLEkL/18vYkZip3RnWCMm/1L+UJGzb afmCi5DX/ev9Nr1iWhsArYdhVuXj37/GLzW+kQsb1LT6kDsf06OcJmKz8qMdUguiKZZi IS13WVaioj+CJyTlylleT7sa7mf/MpSMs66Y4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795943202; x=1796548002; h=content-transfer-encoding:content-type:mime-version: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=so7XSV2tgW0bc2KaF1PMo+MgdsNMNRBpipeOKs0zUGE=; b=NynVA70IgUitHni7iRuU7COhFgmZgIUyDXfVRMuWQm6aaPtA+lvQ6TE6calrO4jqCw 5mQ6FGNK3dMG8BFFDuZGTr2elry2waFvm2q/8rzMhQ2M74qhhXU40ZNzX/7ALjEwDOpQ i73wx7Jk+8DdkRH27uscTJYJNYXw0wjma+aKM3+6La5bjdv90F2hEwftFhFuFSc0wMtR xb38iIWyNWjqz11yfiKScT5HUtwyWFjR1HlgnXTpf/nOXwuOb9RixGrcLqyXKnoHBCkd A86U9L6tRGFCYUPsXHulyB2n3kcXnEdWzkDwYRPkEKT68r+BqxwbljBB+O4qVaYzfv09 rKEA== X-Gm-Message-State: APuU4Z+8S1MwDGvbW5Sy71wIA3X5A8BDQd4McVeMTCeRwDr9MXUxxLyl 6j/+AonJuUKZ33QeDJ3SDDSe7vkkrIzvr4rQIwWBbPOUDhiiV8eWqbmAP1DlQk3qMLTXGc6Yt0R uw0k= X-Gm-Gg: AZFdTZdpftcARZhdCDh48SRmWO21xyLtWeE4RZR0B8sZLqbX7eH0RiV0M0HPl9jQT/I th1o/+k6SwcdQo6wLUyU+UYN4qB6KVfd0E5LusZTHw3LMNyzIwDNwzWXK7mM1WAupV1dpVMVwry NXCqw0zFed3m98UvDdSrNodn9iU7BI94AefdgPMLi8hxdZXMJuv+e09gDD/9Skz09s+oTB4jyoZ rttfQmZMWNO9S6hR4+eTkZNuz40G82E9xfRgS0BEIHK3UWqsFjgGsh27yx1D0f9ka1UmabcVpob BQeZUYsCE66HWiBL6DkfLIS0k+GOKHbbuG9FKHs4B+SFA1fMT6E+dGabZmeCAUqAU+ImaRplrLD Ui7scMJKZ7XACshzyBwBB7hrJCkd8DHivquyVb6W2l38T1p1lN+8bhU+gdhFdecUQC87mbhTH1/ WiM7GTTY7mESdaXk+4Yc7gD8hNYKBdGTI6i8c2d30wmYPVknxdwhwamJHbwXo0hQKob/WaRik44 OV2SJtiNTesDmAIXwimfYgW2fqGj5HFAXDem65C/57vxsgvED8Ztv/YPZ2mKjTqoWPMTSkR2jqG 5Ug30v5s9CaJjyPG6IerCBm7OpQmGzVrg6H1oj30YZiuQBxOGJhh7+Vnuq4dAN5vG6YGlUK2RPG Ane2VwxkDswaJmgziFuDenTn+9WDukg4mq5JOHhkYiWqAy5U7kh7n46HhqhIbvmvgVN60aX3QKS gX X-Received: by 2002:a05:6214:1c44:b0:921:5fda:931c with SMTP id 6a1803df08f44-9215fda946emr365176266d6.33.1795943202309; Sun, 29 Nov 2026 01:06:42 -0800 (PST) Received: from mbili.tail33bf8.ts.net ([64.203.83.2]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921349cdfbasm265266006d6.17.2026.11.29.01.06.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 01:06:41 -0800 (PST) From: Jamal Hadi Salim To: netdev@vger.kernel.org Cc: Jamal Hadi Salim , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Simon Horman , Jiri Pirko , Stephen Hemminger , Vinicius Costa Gomes , =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , cake@lists.bufferbloat.net, Victor Nogueira , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Sashiko Subject: [PATCH net-next v14 0/4] net/sched: cap the accounted backlog before it can wrap Date: Sun, 29 Nov 2026 04:06:33 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This series bounds the shared qdisc backlog (sch->qstats.backlog) so that it cannot wrap mod 2^32. A qdisc with per-CPU statistics books into cpu_qstats and is outside this guard (stats-only). 1/4 cake: classifier refactor: cake_tcf_classify() returns its result to the caller. 2/4 cake: use a dedicated split-GSO list iterator. 3/4 the fix: drop at enqueue once the stored backlog cannot represent the packet's accounted length, saturate the fixed-removal helpers, and keep the tree reconciliation modular. The ancestor-room check is shared by tbf, dualpi2 and cake. 4/4 cake: split cake_hash() into key extraction (on the unsegmented skb) and resolution (after admission), move the split-GSO path ahead of the resolution, and refuse a split an ancestor cannot absorb. For the sashikos: net-next, no Fixes: (the aggregate wrap predates every touched qdisc). 1/4 and 2/4 are unchanged from v13 and carry no revision-history block. Changes in v14: - the reconciliation length is s64, so a multi-gigabyte purge is removed rather than read as growth. - the ancestor delta is modular again; only the fixed-removal helpers clamp a known-positive amount. - taprio resyncs from its children when the guard would refuse traffic and in the stats dump, under the qdisc lock; the mirror delta is s64 and the resync is skipped inside an open mirror window. - the offload exemption is latched on a successful setup and cleared when the counter returns to core ownership. - the ancestor-room check is shared by tbf, dualpi2 and cake; netem's duplicate keeps the original accounted length. tbf also bounds its own segment-sum booking. - 3/4 and 4/4 carry the v13 -> v14 block; 1/4 and 2/4 are unchanged. - rebased onto net-next f89726ffabef. Jamal Hadi Salim (4): net/sched: cake: return the classifier result to the caller net/sched: cake: use a dedicated split-GSO list iterator net/sched: cap the accounted backlog before it can wrap net/sched: cake: hash before segmenting and reject an overlong split include/net/pkt_sched.h | 1 - include/net/sch_generic.h | 68 ++++++++++++- net/sched/sch_api.c | 50 +++++++++- net/sched/sch_cake.c | 196 +++++++++++++++++++++++++++----------- net/sched/sch_cbs.c | 6 ++ net/sched/sch_choke.c | 6 ++ net/sched/sch_codel.c | 16 ++-- net/sched/sch_drr.c | 6 ++ net/sched/sch_dualpi2.c | 19 +++- net/sched/sch_etf.c | 6 ++ net/sched/sch_ets.c | 6 ++ net/sched/sch_fifo.c | 12 +++ net/sched/sch_fq.c | 6 ++ net/sched/sch_fq_codel.c | 9 ++ net/sched/sch_fq_pie.c | 3 +- net/sched/sch_generic.c | 11 +++ net/sched/sch_gred.c | 9 ++ net/sched/sch_hfsc.c | 6 ++ net/sched/sch_hhf.c | 23 ++++- net/sched/sch_htb.c | 16 +++- net/sched/sch_netem.c | 18 ++++ net/sched/sch_pie.c | 3 +- net/sched/sch_plug.c | 3 +- net/sched/sch_prio.c | 6 ++ net/sched/sch_qfq.c | 6 ++ net/sched/sch_red.c | 10 ++ net/sched/sch_sfb.c | 6 ++ net/sched/sch_sfq.c | 8 +- net/sched/sch_skbprio.c | 19 +++- net/sched/sch_taprio.c | 145 ++++++++++++++++++++++++---- net/sched/sch_tbf.c | 27 +++++- 31 files changed, 623 insertions(+), 103 deletions(-) -- 2.43.0