summaryrefslogtreecommitdiff
path: root/include/linux/sys.h
diff options
context:
space:
mode:
authorWeiming Shi <bestswngs@gmail.com>2026-04-22 19:19:59 +0300
committerJakub Kicinski <kuba@kernel.org>2026-04-28 04:41:36 +0300
commita469feed399da791f890b3448622121e97a07f3b (patch)
treedabf81e73be562d555e9d59e2fddf1adb4caffb8 /include/linux/sys.h
parent3d07ca5c0fae311226f737963984bd94bb159a87 (diff)
downloadlinux-a469feed399da791f890b3448622121e97a07f3b.tar.xz
selftests/tc-testing: add taprio test for class dump after child delete
Add a regression test for the NULL pointer dereference fixed in the previous commit. Before the fix, taprio_graft() stored NULL into q->qdiscs[cl - 1] when an explicitly grafted child qdisc was deleted via RTM_DELQDISC; the next RTM_GETTCLASS dump then crashed the kernel in taprio_dump_class() while reading child->handle. The test installs a taprio root qdisc on a multi-queue netdevsim device, grafts a pfifo child onto class 8001:1, deletes that child, and then performs a class dump. On a fixed kernel the dump succeeds and all eight taprio classes are listed; on an unpatched kernel the class dump crashes, which surfaces as a test failure. Signed-off-by: Weiming Shi <bestswngs@gmail.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Link: https://patch.msgid.link/20260422161958.2517539-4-bestswngs@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/sys.h')
0 files changed, 0 insertions, 0 deletions