Commit db2fdf30 authored by Stefano Brivio's avatar Stefano Brivio Committed by Zheng Zengkai
Browse files

nft_set_pipapo: Fix bucket load in AVX2 lookup routine for six 8-bit groups

stable inclusion
from stable-v5.10.85
commit 05eb0e4a12b29f76543d78df17b770fc257dbcfe
bugzilla: 186032 https://gitee.com/openeuler/kernel/issues/I4QVI4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=05eb0e4a12b29f76543d78df17b770fc257dbcfe



--------------------------------

commit b7e945e2 upstream.

The sixth byte of packet data has to be looked up in the sixth group,
not in the seventh one, even if we load the bucket data into ymm6
(and not ymm5, for convenience of tracking stalls).

Without this fix, matching on a MAC address as first field of a set,
if 8-bit groups are selected (due to a small set size) would fail,
that is, the given MAC address would never match.

Reported-by: default avatarNikita Yushchenko <nikita.yushchenko@virtuozzo.com>
Cc: <stable@vger.kernel.org> # 5.6.x
Fixes: 7400b063 ("nft_set_pipapo: Introduce AVX2-based lookup implementation")
Signed-off-by: default avatarStefano Brivio <sbrivio@redhat.com>
Tested-By: default avatarNikita Yushchenko <nikita.yushchenko@virtuozzo.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 39f24198
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment