Re: [PATCH bpf v3 0/2] bpf: allow UTF-8 literals in bpf_bprintf_prepare()

From: patchwork-bot+netdevbpf

Date: Thu Apr 16 2026 - 19:01:12 EST


Hello:

This series was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Thu, 16 Apr 2026 20:01:40 +0800 you wrote:
> bpf_bprintf_prepare() currently rejects any non-ASCII byte in format
> strings, so helpers such as bpf_trace_printk() fail to emit UTF-8
> literal text even when those bytes are not part of a format specifier.
>
> Keep plain text permissive while continuing to parse '%' sequences as
> ASCII-only. Patch 1 updates snprintf_negative() at the same time so the
> selftests stay consistent during bisection. Patch 2 then extends
> trace_printk coverage for both the valid UTF-8 literal case and the
> invalid non-ASCII-after-'%' case.
>
> [...]

Here is the summary with links:
- [bpf,v3,1/2] bpf: allow UTF-8 literals in bpf_bprintf_prepare()
https://git.kernel.org/bpf/bpf/c/b960430ea886
- [bpf,v3,2/2] selftests/bpf: cover UTF-8 trace_printk output
https://git.kernel.org/bpf/bpf/c/4198ff31edb1

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html