]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/tc-testing: Add QFQ/CBS qlen underflow test
authorVictor Nogueira <victor@mojatatu.com>
Mon, 11 May 2026 18:30:58 +0000 (14:30 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 May 2026 00:53:39 +0000 (17:53 -0700)
commit59afae20080a9681014bdc87897cbfd30bedd261
treec0a384bd7062f7c0d78868f35bb51277c3a4d9cb
parent320fb29ea23cfa1aeef32563da8748247db896ea
selftests/tc-testing: Add QFQ/CBS qlen underflow test

Since CBS was not calling reset for its child qdisc, there are scenarios
where it could cause an underflow on its parent's qlen/backlog. When the
parent is QFQ, a null-ptr deref could occur.

Add a test case that reproduces the underflow followed by a null-ptr
deref scenario.

Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/tc-testing/tc-tests/infra/qdiscs.json