selftests: netfilter: add test case for recent mismatch bug
authorFlorian Westphal <fw@strlen.de>
Mon, 7 Apr 2025 17:40:19 +0000 (19:40 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 10 Apr 2025 10:33:55 +0000 (12:33 +0200)
commit27eb86e22f1067a39f05e8878fd83f00e3311dc3
tree3fcff53a5cf9be0fb8434d209f5cc1855dc83377
parente042ed950d4e176379ba4c0722146cd96fb38aa2
selftests: netfilter: add test case for recent mismatch bug

Without 'nft_set_pipapo: fix incorrect avx2 match of 5th field octet"
this fails:

TEST: reported issues
  Add two elements, flush, re-add    1s  [ OK ]
  net,mac with reload                0s  [ OK ]
  net,port,proto                     3s  [ OK ]
  avx2 false match                   0s  [FAIL]
False match for fe80:dead:01fe:0a02:0b03:6007:8009:a001

Other tests do not detect the kernel bug as they only alter parts in
the /64 netmask.

Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/net/netfilter/nft_concat_range.sh