]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: nf_tables: remove redundant chain validation on register store
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Nov 2025 12:42:05 +0000 (13:42 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 11 Dec 2025 12:08:43 +0000 (13:08 +0100)
commita67fd55f6a09f4119b7232c19e0f348fe31ab0db
treec866fcfb16f63bed1ff0966e475fc8d4ce87326c
parent5ec8ca26fe93103577c904644b0957f069d0051a
netfilter: nf_tables: remove redundant chain validation on register store

This validation predates the introduction of the state machine that
determines when to enter slow path validation for error reporting.

Currently, table validation is perform when:

- new rule contains expressions that need validation.
- new set element with jump/goto verdict.

Validation on register store skips most checks with no basechains, still
this walks the graph searching for loops and ensuring expressions are
called from the right hook. Remove this.

Fixes: a654de8fdc18 ("netfilter: nf_tables: fix chain dependency validation")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_tables_api.c