]> 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:05:18 +0000 (11:05 +0100)
commitb5ad58285f9217d68cd5ea2ad86ce254a3fe7c4d
treed1623fd7d0384ff9d14dbaf7c466636aa4e53770
parentae98a1787fdcb0096d122bc80d93c3c7d812c04b
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