]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: tc-testing: Add TDC tests that exercise reentrant enqueue behaviour
authorVictor Nogueira <victor@mojatatu.com>
Fri, 25 Apr 2025 22:07:09 +0000 (19:07 -0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Apr 2025 22:55:07 +0000 (15:55 -0700)
commita6e1c5aa16dd5d351603c9d3ae259a069eabdcc2
treeb5bbabbe4b4532aa5ebf37ea20f3f40eb6a4341c
parentf139f37dcdf34b67f5bf92bc8e0f7f6b3ac63aa4
selftests: tc-testing: Add TDC tests that exercise reentrant enqueue behaviour

Add 5 TDC tests that exercise the reentrant enqueue behaviour in drr,
ets, qfq, and hfsc:

- Test DRR's enqueue reentrant behaviour with netem (which caused a
  double list add)
- Test ETS's enqueue reentrant behaviour with netem (which caused a double
  list add)
- Test QFQ's enqueue reentrant behaviour with netem (which caused a double
  list add)
- Test HFSC's enqueue reentrant behaviour with netem (which caused a UAF)
- Test nested DRR's enqueue reentrant behaviour with netem (which caused a
  double list add)

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