From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf-next] netfilter: nf_tables: fix debug splat when dumping pipapo avx2 set
Date: Wed, 23 Apr 2025 22:55:33 +0200 [thread overview]
Message-ID: <aAlTxYCXPR3H1VRl@calendula> (raw)
In-Reply-To: <20250423151702.17438-1-fw@strlen.de>
On Wed, Apr 23, 2025 at 05:16:59PM +0200, Florian Westphal wrote:
> debug kernel gives:
> ------------[ cut here ]------------
> WARNING: CPU: 3 PID: 265 at net/netfilter/nf_tables_api.c:4780 nf_tables_fill_set_info+0x1c8/0x210 [nf_tables]
> Modules linked in: nf_tables
> CPU: 3 UID: 0 PID: 265 Comm: nft Not tainted 6.15.0-rc2-virtme #1 PREEMPT(full)
> Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
> RIP: 0010:nf_tables_fill_set_info+0x1c8/0x210 [nf_tables]
>
> ... because '%ps' includes the module name, so the output
> string is truncated.
I will squash this, thanks.
> Fixes: 2cbe307c6046 ("netfilter: nf_tables: export set count and backend name to userspace")
> Signed-off-by: Florian Westphal <fw@strlen.de>
> ---
> You can squash merge this if you prefer.
>
> net/netfilter/nf_tables_api.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
> index 90e73462fb69..b28f6730e26d 100644
> --- a/net/netfilter/nf_tables_api.c
> +++ b/net/netfilter/nf_tables_api.c
> @@ -4769,7 +4769,7 @@ static noinline_for_stack int
> nf_tables_fill_set_info(struct sk_buff *skb, const struct nft_set *set)
> {
> unsigned int nelems;
> - char str[32];
> + char str[40];
> int ret;
>
> ret = snprintf(str, sizeof(str), "%ps", set->ops);
> --
> 2.49.0
>
>
prev parent reply other threads:[~2025-04-23 20:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-23 15:16 [PATCH nf-next] netfilter: nf_tables: fix debug splat when dumping pipapo avx2 set Florian Westphal
2025-04-23 20:55 ` Pablo Neira Ayuso [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=aAlTxYCXPR3H1VRl@calendula \
--to=pablo@netfilter.org \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.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.