From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jakub Kicinski <kuba@kernel.org>
Cc: netfilter-devel@vger.kernel.org, davem@davemloft.net,
netdev@vger.kernel.org, pabeni@redhat.com, edumazet@google.com,
horms@kernel.org, fw@strlen.de, ja@ssi.bg
Subject: Re: [PATCH net 05/10] netfilter: x_tables: remove pr_debug
Date: Mon, 24 Aug 2026 14:17:43 +0200 [thread overview]
Message-ID: <aow2ZwVZI-vdQ5tz@chamomile> (raw)
In-Reply-To: <20260822195227.2202694-1-kuba@kernel.org>
On Sat, Aug 22, 2026 at 12:52:27PM -0700, Jakub Kicinski wrote:
> This is an AI-generated review of your patch. The human sending this
> email has considered the AI review valid, or at least plausible.
> ---
> netfilter: x_tables: remove pr_debug
>
> This drops the pr_debug() calls from a set of xtables matches and
> targets, and converts the ones in the .check paths into
> pr_info_ratelimited() so that legacy iptables users get a hint in dmesg
> when a rule is rejected.
>
> A few observations below.
>
> > diff --git a/net/ipv6/netfilter/ip6t_hbh.c b/net/ipv6/netfilter/ip6t_hbh.c
> > index 6d1a5d2026a67..37c207d3152a4 100644
> > --- a/net/ipv6/netfilter/ip6t_hbh.c
> > +++ b/net/ipv6/netfilter/ip6t_hbh.c
>
> [ ... ]
>
> > @@ -166,16 +144,16 @@ static int hbh_mt6_check(const struct xt_mtchk_param *par)
> > const struct ip6t_opts *optsinfo = par->matchinfo;
> >
> > if (optsinfo->invflags & ~IP6T_OPTS_INV_MASK) {
> > - pr_debug("unknown flags %X\n", optsinfo->invflags);
> > + pr_info_ratelimited("unknown flags %X\n", optsinfo->invflags);
> > return -EINVAL;
> > }
> > if (optsinfo->optsnr > IP6T_OPTS_OPTSNR) {
> > - pr_debug("too many supported opts specified\n");
> > + pr_info_ratelimited("too many supported opts specified\n");
> > return -EINVAL;
> > }
> >
> > if (optsinfo->flags & IP6T_OPTS_NSTRICT) {
> > - pr_debug("Not strict - not implemented");
> > + pr_info_ratelimited("Not strict - not implemented");
> > return -EINVAL;
> > }
>
> [Severity: Low]
> Should this string get a trailing newline like its two siblings in
> hbh_mt6_check()?
Yes, this needs \n in all these pr_debug() to pr_info_ratelimited().
next prev parent reply other threads:[~2026-08-24 12:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-21 15:38 [PATCH net 00/10] Netfilter fixes for net Pablo Neira Ayuso
2026-08-21 15:38 ` [PATCH net 01/10] netfilter: tproxy: use DEBUG_NET_WARN_ON_ONCE for protocol fallbacks Pablo Neira Ayuso
2026-08-21 15:38 ` [PATCH net 02/10] netfilter: conncount: use DEBUG_NET_WARN_ON_ONCE on reaching count limit Pablo Neira Ayuso
2026-08-21 15:38 ` [PATCH net 03/10] netfilter: nf_tables: move hardware offload step after building the chain blob Pablo Neira Ayuso
2026-08-21 15:38 ` [PATCH net 04/10] netfilter: nft_set_pipapo_avx2: add missing vzeroupper Pablo Neira Ayuso
2026-08-21 15:38 ` [PATCH net 05/10] netfilter: x_tables: remove pr_debug Pablo Neira Ayuso
2026-08-22 19:52 ` Jakub Kicinski
2026-08-24 12:17 ` Pablo Neira Ayuso [this message]
2026-08-21 15:38 ` [PATCH net 06/10] netfilter: xt_cgroup: use pr_info_ratelimited() Pablo Neira Ayuso
2026-08-21 15:38 ` [PATCH net 07/10] netfilter: nf_tables: skip double clone set expressions on element insert Pablo Neira Ayuso
2026-08-22 19:52 ` Jakub Kicinski
2026-08-24 12:19 ` Pablo Neira Ayuso
2026-08-21 15:38 ` [PATCH net 08/10] netfilter: nf_tables: fix device name and prefix match in hook lookup Pablo Neira Ayuso
2026-08-22 19:52 ` Jakub Kicinski
2026-08-23 17:36 ` Fernando Fernandez Mancera
2026-08-21 15:38 ` [PATCH net 09/10] netfilter: nf_tables: set on dead bit when performing early element removal Pablo Neira Ayuso
2026-08-21 15:38 ` [PATCH net 10/10] netfilter: nf_tables: remove leftover set_update_list Pablo Neira Ayuso
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=aow2ZwVZI-vdQ5tz@chamomile \
--to=pablo@netfilter.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fw@strlen.de \
--cc=horms@kernel.org \
--cc=ja@ssi.bg \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pabeni@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox