]> git.ipfire.org Git - thirdparty/linux.git/commit
Merge branch 'net-sched-fix-qdisc-graft-hierarchy-validation'
authorPaolo Abeni <pabeni@redhat.com>
Thu, 6 Aug 2026 13:25:15 +0000 (15:25 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Aug 2026 13:25:15 +0000 (15:25 +0200)
commitcd0784790d921ff4f7438d3b7ccda86068c8b766
tree8f36df55d603ec03e1c1469836a53958c92cf171
parent7e2d693af0d4c05bddccb3541a0aabd69f4cb244
parentd8eb9a06b922418598eac38fb9772ea4e9ef4273
Merge branch 'net-sched-fix-qdisc-graft-hierarchy-validation'

Zijie Huang says:

====================
net/sched: fix qdisc graft hierarchy validation

The qdisc create-and-graft path allows users to keep attaching new classful
qdiscs under an already deep parent hierarchy. Such a hierarchy can later
be walked recursively and exhaust the kernel stack.

This series stores the qdisc hierarchy depth in struct Qdisc and checks it
when a qdisc is grafted. New child qdiscs are rejected once the parent is
already at the maximum allowed depth. It also adds tdc coverage for the
maximum allowed depth and rejection above it.
====================

Link: https://patch.msgid.link/cover.1785434373.git.milkory@outlook.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>