]> 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>
Fri, 27 Jun 2025 10:07:18 +0000 (11:07 +0100)
commit90bc7f5a244aadee4292b28098b7c98aadd4b3aa
treee9ed4f0cf5de27186951a438241e2a79e8686ef1
parent2e5ead9e4e91fbe7799bd38afd8904543be1cb51
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