🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #1146

Re: [PATCH net-next v5] net/sched: cap the accounted backlog before it can wrap

#1146
From: Jamal Hadi Salim
Date: Fri, 09 Oct 2026 09:20
113 lines
13549 bytes
On Thu, Oct 8, 2026 at 8:54 AM Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>
> Jamal Hadi Salim <jhs@mojatatu.com> writes:
>
> > On Thu, Oct 8, 2026 at 6:29 AM Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> >>
> >> > This is a follow-up to an issue found by Sashiko (nipa) during review of
> >> > commit d9ebd8f9aa8b ("net/sched: fq_codel: clamp default quantum and
> >> > mtu"), part of the quantum/mtu overflow series merged as a687f2ae995f.
> >> > Clamping the per-flow quantum and the CoDel mtu does not bound the
> >> > accounted backlog, so the per-flow backlog wrap the review flagged
> >> > remained.
> >>
> >> This, and the rest of the commit message is obtuse LLM vomit, and close
> >> to unreadable. Please rewrite the commit message without the verbosity,
> >> so it's actually something a human reader can comprehend. For the cake
> >> bits in particular:
> >>
> >
> > Ok, but there is a dilemma: The verbosity is an attempt to appease the
> > sashikos. The other day it complained that i didnt have a space after
> > a semi colon.
>
> You know you can push back on Sashiko comments, right? :)
>

You can never if it listens to what you say ;-> See attached
screenshot on a small exchange where i pushed back. I did fix the
double space on the next one of course ;->



The human behind it is trying to teach it some bad habits ;->

> > The more stuff i add the less it slows me back. It picks on the
> > accuracy of the commit text _and changelogs_ and prescribes what i
> > said or should have said. I can understand a future AI review would
> > benefit from that; there are probably a few humans that read the
> > commit logs after the patch has gone in.
> > So:
> > I have been more targetting the AI more than humans in these comments.
>
> Writing to appease the bots at the expense of human readers is
> absolutely a mistake, IMO. Last time I checked, we are still a community
> of humans developing the kernel together, regardless of the fashionable
> assistance technology du jour. Having a comprehensive and understandable
> commit log is one of the kernel's greatest assets, and often one of the
> only things that makes complicated code understandable. We should not be
> sacrificing that in an attempt to make the work guess robot guess other
> words :/

I dont know ;-> Let's discuss in a year.

[..]

> > In plain english, it says three things (applies to :
> > 1) Splitting a GSO skb can account for more bytes than the original
> > packet, so we sum the whole segment list and test the total against
> > the ceiling before any segment is linked.
> > 2) If it is over, we drop the entire list, and because no flow state
> > (tags, hash indices, counters) has been resolved yet, the reject
> > leaves nothing behind.
> > 3) The fraglist sentence only picks which reference to drop for the
> > case skb_segment_list() returns the original skb, so the same skb is
> > not freed twice.
> >
> > This text also applies to the codel piece. Does re-writting as above
> > sound better?
>
> Yes, much better!
>


[..]

> > We have literally have about 100 followups to review from complaints
> > of "re-exsting issues" by sashikos and other ai officianados (there
> > are at least another 10 on cake) and the hard part is sifting through
> > and picking what is important enough to submit. And then deal with the
> > fallback from the sashikos turning transforming into bike-shedders.
> > I am trying to avoid sending many patches. But i could split this into:
> >
> > - 0001 (prep, no behavior change): extract cake_tcf_classify() and the
> > fq_codel_classify() rewrite.
> > - 0002 (prep, no behavior change): skb_list_walk_safe(segs, seg) rename.
> > - 0003 (fix): the enqueue ceiling guard across fq_codel / codel / pie
> > / fq_pie / dualpi2 / pfifo / RED / cake, plus the
> > qdisc_pkt_len_segs_init() producer clamp. pfifo stays here - RED reads
> > a grafted child's backlog, so it is the same overflow, not a separate
> > bug.
> > - 0004 (cake restructure): the cake_hash_keys() / cake_hash_resolve()
> > split and the split-GSO relocation.
> >
> > Would that work?
>
> Yeah, this seems roughly along the lines of what I was imagining :)
>

I will wait for sashiko to run - it does find good issues and will
resend with this and the one above in mind.

cheers,
jamal

> -Toke
Technical Details
Message-ID: <CAM0EoM=QsM4EvWyPyAh5QzqDAo5g4kJF7v+=-00BJgi9OovFZQ@mail.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-343550-linux-kernel-netdev=dewy.ru
References: <QDISC-BA27.v5.20261007171509@mojatatu.com> <87a4oottcj.fsf@toke.dk> <CAM0EoMmYEr4DLrjuM5hdPR5Lf1c=mU6WNpYydbzkGnWjqFxMrw@mail.gmail.com> <87pkxks68f.fsf@toke.dk>

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-343550-linux-kernel-netdev=dewy.ru
From: jhs@mojatatu.com (Jamal Hadi Salim)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5] net/sched: cap the accounted backlog before
 it can wrap
Date: Fri, 9 Oct 2026 05:20:09 -0400
Organization: Usenet Network
Message-ID: <CAM0EoM=QsM4EvWyPyAh5QzqDAo5g4kJF7v+=-00BJgi9OovFZQ@mail.gmail.com>
References: <QDISC-BA27.v5.20261007171509@mojatatu.com> <87a4oottcj.fsf@toke.dk>
 <CAM0EoMmYEr4DLrjuM5hdPR5Lf1c=mU6WNpYydbzkGnWjqFxMrw@mail.gmail.com> <87pkxks68f.fsf@toke.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="1072700"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:C7Qz/aXhd20ZXXiO0azAX12cY4s= sha256:qbuzaJtEUJcmCTrNoJaYhKQWFHG47rA1hiRKq1oszyo=
	sha1:eQ4pKAEJKGZyemZ2C3/dyd+tFkM= sha256:DfCf6BM6CKL1imGFb5DYKBvNmcN2DdTNnk2iayDUDkc=
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 499AF10F632; Fri,  9 Oct 2026 12:23:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.751
X-Spam-Status: No, score=-0.751 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=mojatatu.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 O0nzSGcKFvvi;
	Fri,  9 Oct 2026 12:23:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-343550-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mojatatu.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 905DE10F5FF; Fri,  9 Oct 2026 12:23:24 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id 7441938708; Fri,  9 Oct 2026 09:20:24 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 34AFE48FF75;
	Fri,  9 Oct 2026 09:20:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=mojatatu.com header.i=@mojatatu.com header.b="t68XhJ7p"
X-Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A1FC3DDB00
	for <netdev@vger.kernel.org>; Fri,  9 Oct 2026 09:20:21 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.210.179
X-ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791537623; cv=pass; b=KzdnWjvUG+z+/e6OcO7pgwzM5fxbKUFslZYf2sKTmDJHvpdngIMvdWZHVnn/jlLRjgIem29+DH2dBSyeLfBpi6OvB8Ct7FqHgykmmQDcECQHcdCK5qrFtbT6VuAuCrrMwfiBI++ldSTPzWhkBSZiv1j/aQTIoUu5L6UKjluN3gI=
X-ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791537623; c=relaxed/simple;
	bh=8T+bagEFNAv/OZqLOip7XkPhqwlIGOPZXUhaa6oDbGU=;
	h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:
	 To:Cc:Content-Type; b=ZVhnicGTLJEyjYJFjO8+I1qOXSST0Cmpiw4Fg49B69UkyrPq6fVSgyf1zoV+DxhF+6LE2D8XkmYFMMh8mELRvyPnj2pC/pPatZg70v1Dp4zafEBCIpDORfv9jrQB9dD186BSID0qqZqut0AwpHpQFNQyh+wkTZfzxrxzilbyshI=
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com; spf=none smtp.mailfrom=mojatatu.com; dkim=pass (1024-bit key) header.d=mojatatu.com header.i=@mojatatu.com header.b=t68XhJ7p; arc=pass smtp.client-ip=209.85.210.179
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=mojatatu.com
X-Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-881269371acso786421b3a.0
        for <netdev@vger.kernel.org>; Fri, 09 Oct 2026 02:20:21 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1791537620; cv=none;
        d=google.com; s=arc-20260327;
        b=fS95JRFymJLbpGjIbrraM65+zSO1SRUDpWm8UjFsjy87ZzW9gZSE94sru5Sjy1M+pV
         wlopROSKTIBGZotPZ1Gg4bSoMtTx31LtSitTvdHSxmjm3H/S1uskwe7slEnSDjtg10Tl
         Bkevs4JpWvq2XKFzIvLMpfhDdZT7nQPuQ4yvhPj7bH8iDizvvpz/Ph1MntRSRI5czctF
         +bUBZNj+pwtLgr5N3A0nLuZnH+grQ2fRtb88DVxppXIORseA6WaqCpAFlLhjV9UQIXad
         U/IIMDFmM21arP2v4T/akbkA2cVI6n/nGREmI3pml3SZzQEPXKXjyt6IRl1XGu1FHuk2
         XMlQ==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=content-transfer-encoding:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:dkim-signature;
        bh=8T+bagEFNAv/OZqLOip7XkPhqwlIGOPZXUhaa6oDbGU=;
        fh=/KNHanBKvb0UpdGuR+44c0O9Rlfl/GH50TXZciVvwTQ=;
        b=eZzcxr9++svmW3gnuZG6Bfieh3BrY7JTvwmQMxVqWJWdmBQoW17oEHO655CcUmJCX5
         /pZCQ4/PO+GpOUTMKYBCHAlVhNMQdMWBEIaiyL5OVCELSCnA/lku/y5Bc4MO1PsZcDxC
         k/RrEQ7qTu1QfjO995wWqEvDJ4LmladBh8BKRA8IBnPhIBP5bUHf+ptd1j0DVvn67ZNl
         5xwW6tEPWQKEQZzZobsa5z5LKrVhAComp7DeRx3TR0KXLWl/NbZ/dnhcVe2jkHMUxaQ3
         zR2qCq9rwX0aiGTU3TkCFtVg5weSdgWLkZWQakK7TnZTXBU9djWf7IbzAuZfbRb3ffr1
         Ty9A==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=mojatatu.com; s=google; t=1791537620; x=1792142420; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=8T+bagEFNAv/OZqLOip7XkPhqwlIGOPZXUhaa6oDbGU=;
        b=t68XhJ7pAPCuLCAKIjXDBPA0IyjBdTwjN4xmQAfvYn/H4QSvvuF0WUGRSTFsVkWMvi
         h7yatPDOy8v51Lby0I0Z93qOam5vvzeGKAsWPlD6A+YrXcYlmzHD/QmIgETui1uu5dZu
         IIhXVCM5xLNZjS1JeOoBBO+ys+XubKGz3VXlo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1791537620; x=1792142420;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=8T+bagEFNAv/OZqLOip7XkPhqwlIGOPZXUhaa6oDbGU=;
        b=gKWsbfLEREZhrzQW6XC2qOUr1/W64Ng3y5YYrWaSSc4Hm5+a6ejxP+QmnCXzxvN5e/
         gItPC1SHZ8QVSA6ujU23SvNbJ7nwfBJZhrd28TWeFA2N96eh5yqFGGTSRYm/SbERQhNN
         t5/0JV4E2kKGmq7JIND0E7yi9zmuUOvhibKLVDslJuCX2P+6dOYztVdup0ZEboavs8bS
         xLSGIYsg6CZQg3IuXYEzHr3VcxRtd9ez1nOP3TMRie1kD5kX7aIsxbC+7m+4foMEm7NH
         2OAOwFoHgv8iBQq0hljQVMT6dP7zTSgMEDj0FSrO8qna2xgG/33VQsAmfrgjsZhZiiEQ
         HRog==
X-Gm-Message-State: AFq9FYJILvDL9gxzY6+GyLZBW4Brb6bFexVOKEoW7t/bhiYT5pePwRr7
	oZSWjDYXECTFgaFErxFL5AQfjjUriazDzxhnIxCYmQx2BBhWRPrFr4gUq3ZrLp9kvjqruXTYW8m
	7rnN9UiKmDbX8S2nV4Tfb2upcvc50c0YWu6aGusRl
X-Gm-Gg: AYBFou1wAgA0W6M71pvxhzEPAu9XwCWWOifL0aok0rO3xe46rpZQeT34FACJAcYWMDo
	6l98D3PVJ8ovCZjVPwhngPDqAXvQk887EU1GrbKcwLl1kXwPnGmIc0j/36CQ1YXqVCcCZcnajWW
	qZdzlCyAubbl8JiNPSIgUTqR/OXlRENkT5JXLDRpvBU8GIPQko/A29pFryAgwhRxLVsHyWtR2Lt
	PxSSZWfxuYVXO8BbdIi4jUeqPE18HcrHsnMNN/Py7ewMNX4B3QBwt+0jRQvq+b6aEebH54BacW4
	HMy38n46TaUD1BUqSK5HFnRScmSglo/q+l8Im0Hsxlo6hSNeAnpGY+R5ZUVEkrmsbssRSIaC6zE
	pstet5n1Zn0a2bvxNXiDLaUewg6MZgRk7uliZ6bAR9iex
X-Received: by 2002:a05:6a00:4c1b:b0:878:3705:5724 with SMTP id
 d2e1a72fcca58-896a4db0354mr1243619b3a.48.1791537620497; Fri, 09 Oct 2026
 02:20:20 -0700 (PDT)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <87pkxks68f.fsf@toke.dk>
X-Gm-Features: AclHuK9eYAfueee64evY9nqUNmiUsIv2Id4AfGG6z3lIOXpFCxFMLLRHDU4cOvQ
X-Cc: netdev@vger.kernel.org, Jiri Pirko <jiri@resnulli.us>, 
	"David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, 
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, 
	Victor Nogueira <victor@mojatatu.com>, moeller0@gmx.de, cake@lists.bufferbloat.net, 
	Sashiko <sashiko-bot@kernel.org>