]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
netfilter: nft_set_hash: fix lookups with fixed size hash on big endian
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 25 Feb 2019 13:13:41 +0000 (14:13 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit41af5eef95e60c9a71a9d5a821e1e90e55226e0d
tree26566fe40a2394ffce4d6045129c95f46b7c7e19
parentfbb466212dc37c9cfbc6e48fa700906844f0fe23
netfilter: nft_set_hash: fix lookups with fixed size hash on big endian

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 3b02b0adc242a72b5e46019b6a9e4f84823592f6 ]

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

Fixes: 446a8268b7f5 ("netfilter: nft_set_hash: add lookup variant for fixed size hashtable")
Reported-by: Florian Westphal <fw@strlen.de>
Tested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/netfilter/nft_set_hash.c