Files
erofs-linux/include/net
Zijie Huang dedd34b0f2 net/sched: reject overly deep qdisc hierarchies
Deep qdisc hierarchies can lead to excessive recursion in qdisc tree
walkers and exhaust the kernel stack. The existing loop check does not
cover the create-and-graft path, so a hierarchy can still be extended by
creating a new child qdisc below an already deep parent.

Store the hierarchy depth in struct Qdisc and update it when qdiscs are
grafted. Reject new child qdiscs once the parent is already at the maximum
allowed depth.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: [email protected]
Suggested-by: Jamal Hadi Salim <[email protected]>
Reported-by: Vega <[email protected]>
Assisted-by: Codex:gpt-5.4
Signed-off-by: Zijie Huang <[email protected]>
Signed-off-by: Ren Wei <[email protected]>
Reviewed-by: Victor Nogueira <[email protected]>
Link: https://patch.msgid.link/1e9ab39597423fd5d13cfaaf52279b8ee3d9fc3c.1785434373.git.milkory@outlook.com
Acked-by: Jamal Hadi Salim <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
2026-08-06 15:24:44 +02:00
..
…
…
…
…
…
…
…
…
…
…
2026-05-21 13:04:42 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-21 19:28:32 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-18 12:32:06 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-03-13 18:57:44 -07:00
…
…