Commit 69e0f975 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso Committed by Xie XiuQi
Browse files

netfilter: nft_set_hash: fix lookups with fixed size hash on big endian



mainline inclusion
from mainline-5.0
commit 3b02b0ad
category: bugfix
bugzilla: 11233
CVE: NA

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

Call jhash_1word() for the 4-bytes key case from the insertion and
deactivation path, otherwise big endian arch set lookups fail.

Fixes: 446a8268 ("netfilter: nft_set_hash: add lookup variant for fixed size hashtable")
Reported-by: default avatarFlorian Westphal <fw@strlen.de>
Tested-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarZhiqiang Liu <liuzhiqiang26@huawei.com>
Reviewed-by: default avatarWenan Mao <maowenan@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 05e61e65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment