Loading
netfilter: nft_set_pipapo: walk over current view on netlink dump
stable inclusion from stable-v6.6.53 commit f24d8abc2bb8cbf31ec713336e402eafa8f42f60 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAZ0GM Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f24d8abc2bb8cbf31ec713336e402eafa8f42f60 -------------------------------- 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: 2b84e215 ("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> Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>