]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: nft_set_pipapo: walk over current view on netlink dump
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Apr 2024 16:50:45 +0000 (18:50 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 11 Apr 2024 10:10:03 +0000 (12:10 +0200)
commit29b359cf6d95fd60730533f7f10464e95bd17c73
tree649e8bddb193566dec0f8cbf8f392e6e34249cec
parent751de2012eafa4d46d8081056761fa0e9cc8a178
netfilter: nft_set_pipapo: walk over current view on netlink dump

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>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_set_pipapo.c