All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kyle Zeng <kylebot@openai.com>
To: netdev@vger.kernel.org
Cc: jhs@mojatatu.com, jiri@resnulli.us, kuba@kernel.org,
	edumazet@kernel.org, horms@kernel.org, pabeni@redhat.com,
	Kyle Zeng <kylebot@openai.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH net v3 0/2] net/sched: serialize qdisc timers and defer SFQ rehashing
Date: Tue, 24 Nov 2026 09:38:12 -0800	[thread overview]
Message-ID: <cover.1795540952.git.kylebot@openai.com> (raw)
In-Reply-To: <20261110044450.51921-1-kylebot@openai.com>

This series retains the v2 timer/reset fix and adds one focused SFQ
change for the detached-timer accounting issue identified in review.

Patch 1 has the same source changes as v2. Patch 2 moves periodic SFQ
hash perturbation to enqueue, where the key change and rehash run under
the packet-path lock. This prevents the autonomous timer from walking
the live device's ancestor handles after its own hierarchy is detached.

The separate HTB queue-association and offloaded-leaf purge findings
remain follow-up work. This revision does not claim to fix those paths.

The original PoC caused SFQ memory corruption on an unchanged kernel.
A separate unchanged-kernel QEMU run reproduced the detached-SFQ warning
in qdisc_tree_reduce_backlog().

Changes in v3:
- Retain v2 as patch 1, with its code unchanged.
- Add the SFQ-only detached-timer fix as patch 2.
- Preserve the first perturbation interval and use deferred skb freeing.

v2: https://lore.kernel.org/netdev/20261110044450.51921-1-kylebot@openai.com/
Review: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261110044450.51921-1-kylebot%40openai.com

Kyle Zeng (2):
  net/sched: serialize autonomous timers with qdisc resets
  net/sched: sfq: perturb the hash from the enqueue path

 include/net/sch_generic.h | 20 ++++++++++++++++
 net/sched/sch_dualpi2.c   |  3 +--
 net/sched/sch_fq_pie.c    |  3 +--
 net/sched/sch_generic.c   | 11 +++++----
 net/sched/sch_pie.c       |  3 +--
 net/sched/sch_red.c       |  3 +--
 net/sched/sch_sfq.c       | 50 ++++++++++++---------------------------
 net/sched/sch_taprio.c    | 16 +++++++++++++
 8 files changed, 62 insertions(+), 47 deletions(-)


base-commit: 5f22fb20497f4983094131f00a734362300d22d2
-- 
2.55.0.openai.911.g06873a30d2f3


  parent reply	other threads:[~2026-11-24 17:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10  4:44 [PATCH net v2] net/sched: serialize autonomous timers with qdisc resets Kyle Zeng
2026-11-14 12:12 ` netdev-bot+sashiko
2026-11-20 21:57   ` Kyle Zeng
2026-11-20 22:28     ` Jakub Kicinski
2026-11-24 17:38 ` Kyle Zeng [this message]
2026-11-24 17:38   ` [PATCH net v3 1/2] " Kyle Zeng
2026-11-24 17:38   ` [PATCH net v3 2/2] net/sched: sfq: perturb the hash from the enqueue path Kyle Zeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1795540952.git.kylebot@openai.com \
    --to=kylebot@openai.com \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.