netfilter: nf_tables: make nft_set_do_lookup available unconditionally
authorFlorian Westphal <fw@strlen.de>
Wed, 10 Sep 2025 08:02:21 +0000 (10:02 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 10 Sep 2025 18:30:37 +0000 (20:30 +0200)
commit11fe5a82e53ac3581a80c88e0e35fb8a80e15f48
treea55183109c972b9bec88761161a53af20be770b8
parent64102d9bbc3d41dac5188b8fba75b1344c438970
netfilter: nf_tables: make nft_set_do_lookup available unconditionally

This function was added for retpoline mitigation and is replaced by a
static inline helper if mitigations are not enabled.

Enable this helper function unconditionally so next patch can add a lookup
restart mechanism to fix possible false negatives while transactions are
in progress.

Adding lookup restarts in nft_lookup_eval doesn't work as nft_objref would
then need the same copypaste loop.

This patch is separate to ease review of the actual bug fix.

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