Message ID | 20250410103647.1030244-2-pablo@netfilter.org (mailing list archive) |
---|---|
State | Accepted |
Commit | e042ed950d4e176379ba4c0722146cd96fb38aa2 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/2] nft_set_pipapo: fix incorrect avx2 match of 5th field octet | expand |
Hello: This series was applied to netdev/net.git (main) by Pablo Neira Ayuso <pablo@netfilter.org>: On Thu, 10 Apr 2025 12:36:46 +0200 you wrote: > From: Florian Westphal <fw@strlen.de> > > Given a set element like: > > icmpv6 . dead:beef:00ff::1 > > The value of 'ff' is irrelevant, any address will be matched > as long as the other octets are the same. > > [...] Here is the summary with links: - [net,1/2] nft_set_pipapo: fix incorrect avx2 match of 5th field octet https://git.kernel.org/netdev/net/c/e042ed950d4e - [net,2/2] selftests: netfilter: add test case for recent mismatch bug https://git.kernel.org/netdev/net/c/27eb86e22f10 You are awesome, thank you!
diff --git a/net/netfilter/nft_set_pipapo_avx2.c b/net/netfilter/nft_set_pipapo_avx2.c index b8d3c3213efe..c15db28c5ebc 100644 --- a/net/netfilter/nft_set_pipapo_avx2.c +++ b/net/netfilter/nft_set_pipapo_avx2.c @@ -994,8 +994,9 @@ static int nft_pipapo_avx2_lookup_8b_16(unsigned long *map, unsigned long *fill, NFT_PIPAPO_AVX2_BUCKET_LOAD8(5, lt, 8, pkt[8], bsize); NFT_PIPAPO_AVX2_AND(6, 2, 3); + NFT_PIPAPO_AVX2_AND(3, 4, 7); NFT_PIPAPO_AVX2_BUCKET_LOAD8(7, lt, 9, pkt[9], bsize); - NFT_PIPAPO_AVX2_AND(0, 4, 5); + NFT_PIPAPO_AVX2_AND(0, 3, 5); NFT_PIPAPO_AVX2_BUCKET_LOAD8(1, lt, 10, pkt[10], bsize); NFT_PIPAPO_AVX2_AND(2, 6, 7); NFT_PIPAPO_AVX2_BUCKET_LOAD8(3, lt, 11, pkt[11], bsize);