Re: [PATCH bpf-next] bpf: Use 64-bit writes when inlining bpf_loop
From: patchwork-bot+netdevbpf
Date: Thu Nov 05 2026 - 12:05:58 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Wed, 4 Nov 2026 03:27:00 +0000 you wrote:
> The error path in inline_bpf_loop() writes -E2BIG with BPF_MOV32_IMM(),
> zero-extending it to 0x00000000fffffff9 instead of the 64-bit negative
> value returned by the helper. A caller keeping the result in a long
> therefore misses the error when testing ret < 0.
>
> Use BPF_MOV64_IMM() for the error return and loop-counter initialization.
> Neither write needs truncation, and this avoids the extra zero extensions
> required by the s390 and RISC-V JITs.
>
> [...]
Here is the summary with links:
- [bpf-next] bpf: Use 64-bit writes when inlining bpf_loop
https://git.kernel.org/bpf/bpf-next/c/8424858a5de0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html