netfilter: nft_set_pipapo: use GFP_KERNEL for insertions
authorFlorian Westphal <fw@strlen.de>
Thu, 15 Feb 2024 08:29:30 +0000 (09:29 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 21 Feb 2024 11:03:17 +0000 (12:03 +0100)
commit5b651783d80b97167ecd27dc6a4408c694873902
treeb23c7ffb3f59fa968d821f7e0387f1b6301b1907
parent9f439bd6ef4f60c8a37bd9138fa9ed9b5e7ae0d7
netfilter: nft_set_pipapo: use GFP_KERNEL for insertions

An earlier attempt changed this to GFP_KERNEL, but the get helper is
also called for get requests from userspace, which uses rcu.

Let the caller pass in the kmalloc flags to allow insertions
to schedule if needed.

Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nft_set_pipapo.c