From: Florian Westphal <fw@strlen.de>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf-next] netfilter: nf_tables: remove redundant chain validation on register store
Date: Wed, 19 Nov 2025 13:45:00 +0100 [thread overview]
Message-ID: <aR27zHy5Mp4x-rrL@strlen.de> (raw)
In-Reply-To: <20251119124205.124376-1-pablo@netfilter.org>
Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> 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>
> ---
> Supersedes: ("netfilter: nf_tables: skip register jump/goto validation for non-base chain")
>
> No rush to apply this, still running a few more tests here on it.
Thanks! I wonder if this impacts error location reporting.
I agree its not needed from correctness p.o.v. since commit (or abort)
validates entire completed ruleset.
prev parent reply other threads:[~2025-11-19 12:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-19 12:42 [PATCH nf-next] netfilter: nf_tables: remove redundant chain validation on register store Pablo Neira Ayuso
2025-11-19 12:45 ` Florian Westphal [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aR27zHy5Mp4x-rrL@strlen.de \
--to=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.