netfilter: nf_set_pipapo_avx2: fix initial map fill
authorFlorian Westphal <fw@strlen.de>
Fri, 23 May 2025 12:20:44 +0000 (14:20 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 Jun 2025 08:49:58 +0000 (10:49 +0200)
commitea77c397bff8b6d59f6d83dae1425b08f465e8b5
tree801c3af07781d3924015d8d09fd4aa365b7896b7
parent12c331b29c7397ac3b03584e12902990693bc248
netfilter: nf_set_pipapo_avx2: fix initial map fill

If the first field doesn't cover the entire start map, then we must zero
out the remainder, else we leak those bits into the next match round map.

The early fix was incomplete and did only fix up the generic C
implementation.

A followup patch adds a test case to nft_concat_range.sh.

Fixes: 791a615b7ad2 ("netfilter: nf_set_pipapo: fix initial map fill")
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_pipapo_avx2.c