]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 13:32:18 +0000 (15:32 +0200)
commit251496ce1728c9fd47bd2b20a7b21b20b9a020ca
tree8daf7ffc6fc586b15124ec87680b9322a048f826
parentf33277cda6e8c9e5b19939ba0a568766331ff44e
netfilter: nf_set_pipapo_avx2: fix initial map fill

[ Upstream commit ea77c397bff8b6d59f6d83dae1425b08f465e8b5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_set_pipapo_avx2.c