[PATCH net v3 0/2] net/sched: serialize qdisc timers and defer SFQ rehashing
From: Kyle Zeng
Date: Tue Nov 24 2026 - 12:39:14 EST
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@xxxxxxxxxx/
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