netfilter: flowtable: fix IPv6 tunnel addr match
authorWill Mortensen <willmo@gmail.com>
Sun, 7 Nov 2021 01:28:21 +0000 (18:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:19:02 +0000 (09:19 +0100)
commitb7ef25e8c27183bb24975a0f35fa2c3a0dd5fe81
treec637ecbd17d8f9a4eee0678c2095f9d2277dffba
parentd689176e0e18adf43e57d85b04e41769b4fee3f4
netfilter: flowtable: fix IPv6 tunnel addr match

[ Upstream commit 39f6eed4cb209643f3f8633291854ed7375d7264 ]

Previously the IPv6 addresses in the key were clobbered and the mask was
left unset.

I haven't tested this; I noticed it while skimming the code to
understand an unrelated issue.

Fixes: cfab6dbd0ecf ("netfilter: flowtable: add tunnel match offload support")
Cc: wenxu <wenxu@ucloud.cn>
Signed-off-by: Will Mortensen <willmo@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_flow_table_offload.c