From: Phil Sutter <phil@nwl.cc>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: [nf-next PATCH v2 0/2] nf_tables: Export rule optimizer results to user space
Date: Thu, 12 May 2022 14:30:01 +0200 [thread overview]
Message-ID: <20220512123003.29903-1-phil@nwl.cc> (raw)
Changes since v1:
- Fixed two bugs in patch 2.
While transforming rules into binary blob, code checks if certain
expressions may be omitted. Any bugs in this code might lead to very
subtle breakage of firewall rulesets, so a way of asserting optimizer
correctness is highly necessary.
This series achieves this in the most minimal way by annotating omitted
expressions with a flag. Integrated into libnftnl print output,
testsuites in user space may verify optimizer effect and assert
correctness.
First patch introduces an expression flags attribute, second patch
implements the annotation itself.
Phil Sutter (2):
netfilter: nf_tables: Introduce expression flags
netfilter: nf_tables: Annotate reduced expressions
include/net/netfilter/nf_tables.h | 1 +
include/uapi/linux/netfilter/nf_tables.h | 8 ++++++++
net/netfilter/nf_tables_api.c | 12 ++++++++++--
3 files changed, 19 insertions(+), 2 deletions(-)
--
2.34.1
next reply other threads:[~2022-05-12 12:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-12 12:30 Phil Sutter [this message]
2022-05-12 12:30 ` [nf-next PATCH v2 1/2] netfilter: nf_tables: Introduce expression flags Phil Sutter
2022-05-12 12:34 ` Pablo Neira Ayuso
2022-05-12 13:27 ` Phil Sutter
2022-05-12 12:30 ` [nf-next PATCH v2 2/2] netfilter: nf_tables: Annotate reduced expressions Phil Sutter
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=20220512123003.29903-1-phil@nwl.cc \
--to=phil@nwl.cc \
--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.