selftests/tc-testing: Add a test for HFSC eltree double add with reentrant enqueue...
authorPedro Tammela <pctammela@mojatatu.com>
Thu, 22 May 2025 18:14:48 +0000 (15:14 -0300)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 28 May 2025 06:55:35 +0000 (08:55 +0200)
commit2945ff733dee951ed64d0f13cba22348bfc1f438
tree2fe30b4d54a65895576f9c93aa8c01678131fceb
parentac9fe7dd8e730a103ae4481147395cc73492d786
selftests/tc-testing: Add a test for HFSC eltree double add with reentrant enqueue behaviour on netem

Reproduce the UAF scenario where netem is a child of HFSC and HFSC
is configured to use the eltree. In such case, this TDC test would
cause the HFSC class to be added to the eltree twice resulting
in a UAF.

Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Link: https://patch.msgid.link/20250522181448.1439717-3-pctammela@mojatatu.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/tc-testing/tc-tests/infra/qdiscs.json