netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] selftests/tc-testing: Create test case for UAF scenario with DRR/NETEM/BLACKHOLE chain
@ 2025-07-05 20:36 Victor Nogueira
  2025-07-06  3:08 ` Cong Wang
  2025-07-10  2:30 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Victor Nogueira @ 2025-07-05 20:36 UTC (permalink / raw)
  To: jhs, xiyou.wangcong, jiri, kuba, pabeni; +Cc: netdev, pctammela, nnamrec

Create a tdc test for the UAF scenario with DRR/NETEM/BLACKHOLE chain
shared by Lion on his report [1].

[1] https://lore.kernel.org/netdev/45876f14-cf28-4177-8ead-bb769fd9e57a@gmail.com/

Signed-off-by: Victor Nogueira <victor@mojatatu.com>
---
 .../tc-testing/tc-tests/infra/qdiscs.json     | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/tools/testing/selftests/tc-testing/tc-tests/infra/qdiscs.json b/tools/testing/selftests/tc-testing/tc-tests/infra/qdiscs.json
index 9aa44d8176d9..5c6851e8d311 100644
--- a/tools/testing/selftests/tc-testing/tc-tests/infra/qdiscs.json
+++ b/tools/testing/selftests/tc-testing/tc-tests/infra/qdiscs.json
@@ -635,5 +635,42 @@
             "$TC qdisc del dev $DUMMY handle 1:0 root",
             "$IP addr del 10.10.10.10/24 dev $DUMMY || true"
         ]
+    },
+    {
+        "id": "d74b",
+        "name": "Test use-after-free with DRR/NETEM/BLACKHOLE chain",
+        "category": [
+            "qdisc",
+            "hfsc",
+            "drr",
+            "netem",
+            "blackhole"
+        ],
+        "plugins": {
+            "requires": [
+                "nsPlugin",
+                "scapyPlugin"
+            ]
+        },
+        "setup": [
+            "$IP link set dev $DUMMY up || true",
+            "$IP addr add 10.10.11.10/24 dev $DUMMY || true",
+            "$TC qdisc add dev $DUMMY root handle 1: drr",
+            "$TC filter add dev $DUMMY parent 1: basic classid 1:1",
+            "$TC class add dev $DUMMY parent 1: classid 1:1 drr",
+            "$TC qdisc add dev $DUMMY parent 1:1 handle 2: hfsc def 1",
+            "$TC class add dev $DUMMY parent 2: classid 2:1 hfsc rt m1 8 d 1 m2 0",
+            "$TC qdisc add dev $DUMMY parent 2:1 handle 3: netem",
+            "$TC qdisc add dev $DUMMY parent 3:1 handle 4: blackhole",
+            "ping -c1 -W0.01 -I $DUMMY 10.10.11.11 || true",
+            "$TC class del dev $DUMMY classid 1:1"
+        ],
+        "cmdUnderTest": "ping -c1 -W0.01 -I $DUMMY 10.10.11.11",
+        "expExitCode": "1",
+        "verifyCmd": "$TC -j class ls dev $DUMMY classid 1:1",
+        "matchJSON": [],
+        "teardown": [
+            "$TC qdisc del dev $DUMMY root handle 1: drr"
+        ]
     }
 ]
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net] selftests/tc-testing: Create test case for UAF scenario with DRR/NETEM/BLACKHOLE chain
  2025-07-05 20:36 [PATCH net] selftests/tc-testing: Create test case for UAF scenario with DRR/NETEM/BLACKHOLE chain Victor Nogueira
@ 2025-07-06  3:08 ` Cong Wang
  2025-07-10  2:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Cong Wang @ 2025-07-06  3:08 UTC (permalink / raw)
  To: Victor Nogueira; +Cc: jhs, jiri, kuba, pabeni, netdev, pctammela, nnamrec

On Sat, Jul 05, 2025 at 05:36:38PM -0300, Victor Nogueira wrote:
> Create a tdc test for the UAF scenario with DRR/NETEM/BLACKHOLE chain
> shared by Lion on his report [1].
> 
> [1] https://lore.kernel.org/netdev/45876f14-cf28-4177-8ead-bb769fd9e57a@gmail.com/
> 
> Signed-off-by: Victor Nogueira <victor@mojatatu.com>

Acked-by: Cong Wang <xiyou.wangcong@gmail.com>

Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net] selftests/tc-testing: Create test case for UAF scenario with DRR/NETEM/BLACKHOLE chain
  2025-07-05 20:36 [PATCH net] selftests/tc-testing: Create test case for UAF scenario with DRR/NETEM/BLACKHOLE chain Victor Nogueira
  2025-07-06  3:08 ` Cong Wang
@ 2025-07-10  2:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-07-10  2:30 UTC (permalink / raw)
  To: Victor Nogueira
  Cc: jhs, xiyou.wangcong, jiri, kuba, pabeni, netdev, pctammela,
	nnamrec

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sat,  5 Jul 2025 17:36:38 -0300 you wrote:
> Create a tdc test for the UAF scenario with DRR/NETEM/BLACKHOLE chain
> shared by Lion on his report [1].
> 
> [1] https://lore.kernel.org/netdev/45876f14-cf28-4177-8ead-bb769fd9e57a@gmail.com/
> 
> Signed-off-by: Victor Nogueira <victor@mojatatu.com>
> 
> [...]

Here is the summary with links:
  - [net] selftests/tc-testing: Create test case for UAF scenario with DRR/NETEM/BLACKHOLE chain
    https://git.kernel.org/netdev/net/c/d55683866c79

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-10  2:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-05 20:36 [PATCH net] selftests/tc-testing: Create test case for UAF scenario with DRR/NETEM/BLACKHOLE chain Victor Nogueira
2025-07-06  3:08 ` Cong Wang
2025-07-10  2:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).