]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nft_set_pipapo: walk over current view on netlink dump
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 17 Sep 2024 20:25:14 +0000 (22:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:40 +0000 (15:10 +0200)
commitce9fef54c5ec9912a0c9a47bac3195cc41b14679
treed0dd370f3fe9b48754220168c1bf39d9619f2a0b
parentde77545c72c428484fa16384dfa7d17f820e6d0c
netfilter: nft_set_pipapo: walk over current view on netlink dump

commit 29b359cf6d95fd60730533f7f10464e95bd17c73 upstream.

The generation mask can be updated while netlink dump is in progress.
The pipapo set backend walk iterator cannot rely on it to infer what
view of the datastructure is to be used. Add notation to specify if user
wants to read/update the set.

Based on patch from Florian Westphal.

Fixes: 2b84e215f874 ("netfilter: nft_set_pipapo: .walk does not deal with generations")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_set_pipapo.c