]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: physdev: add regression test for mask size master
authorFlorian Westphal <fw@strlen.de>
Fri, 10 Jul 2026 10:42:26 +0000 (12:42 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 10 Jul 2026 10:44:02 +0000 (12:44 +0200)
This rule fails on recent kernels because of bogus mask
check added in kernel commit
8df772afc9d0 ("netfilter: x_physdev: reject empty or not-nul terminated device names").

Signed-off-by: Florian Westphal <fw@strlen.de>
extensions/libxt_physdev.t

index 1fab7e1920d259aafb8c2ca899218e51dd59d671..05ad51ac677f1fc8fb4cbbccd57f4680b10dc182 100644 (file)
@@ -1,6 +1,7 @@
 :INPUT,FORWARD
 -m physdev --physdev-in lo;=;OK
 -m physdev --physdev-is-in --physdev-in lo;=;OK
+-m physdev --physdev-is-in --physdev-in 1234567890abcde;=;OK
 :OUTPUT,FORWARD
 # xt_physdev: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
 # ERROR: should fail: iptables -A FORWARD -m physdev --physdev-out lo