From: patchwork-bot+netdevbpf@kernel.org
To: Paul Chaignon <paul.chaignon@gmail.com>
Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
andrii@kernel.org, revest@chromium.org, yonghong.song@linux.dev
Subject: Re: [PATCH bpf v2 1/2] bpf: Reject %p% format string in bprintf-like helpers
Date: Tue, 01 Jul 2025 22:40:07 +0000 [thread overview]
Message-ID: <175140960752.138502.12465421802586850998.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <a0e06cc479faec9e802ae51ba5d66420523251ee.1751395489.git.paul.chaignon@gmail.com>
Hello:
This series was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Tue, 1 Jul 2025 21:47:30 +0200 you wrote:
> static const char fmt[] = "%p%";
> bpf_trace_printk(fmt, sizeof(fmt));
>
> The above BPF program isn't rejected and causes a kernel warning at
> runtime:
>
> Please remove unsupported %\x00 in format string
> WARNING: CPU: 1 PID: 7244 at lib/vsprintf.c:2680 format_decode+0x49c/0x5d0
>
> [...]
Here is the summary with links:
- [bpf,v2,1/2] bpf: Reject %p% format string in bprintf-like helpers
https://git.kernel.org/bpf/bpf/c/f8242745871f
- [bpf,v2,2/2] selftests/bpf: Add negative test cases for snprintf
https://git.kernel.org/bpf/bpf/c/bf4807c89d8f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2025-07-01 22:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-01 19:47 [PATCH bpf v2 1/2] bpf: Reject %p% format string in bprintf-like helpers Paul Chaignon
2025-07-01 19:48 ` [PATCH bpf v2 2/2] selftests/bpf: Add negative test cases for snprintf Paul Chaignon
2025-07-01 22:40 ` patchwork-bot+netdevbpf [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=175140960752.138502.12465421802586850998.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=paul.chaignon@gmail.com \
--cc=revest@chromium.org \
--cc=yonghong.song@linux.dev \
/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;
as well as URLs for NNTP newsgroup(s).