diff options
| author | Weiming Shi <bestswngs@gmail.com> | 2026-04-22 19:19:59 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-04-28 04:41:36 +0300 |
| commit | a469feed399da791f890b3448622121e97a07f3b (patch) | |
| tree | dabf81e73be562d555e9d59e2fddf1adb4caffb8 /include/linux/syscalls_api.h | |
| parent | 3d07ca5c0fae311226f737963984bd94bb159a87 (diff) | |
| download | linux-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/syscalls_api.h')
0 files changed, 0 insertions, 0 deletions
