[PATCH] riscv: lib: Fix ZBB strnlen reading past count boundary
patchwork-bot+linux-riscv at kernel.org
patchwork-bot+linux-riscv at kernel.org
Sat Aug 8 11:00:05 PDT 2026
Hello:
This patch was applied to riscv/linux.git (fixes)
by Paul Walmsley <pjw at kernel.org>:
On Mon, 13 Apr 2026 01:07:38 +0000 you wrote:
> The ZBB-optimized strnlen loop loads one word ahead before checking the
> aligned boundary:
>
> REG_L t1, SZREG(t0) // load next word
> addi t0, t0, SZREG // advance
> orc.b t1, t1
> bgeu t0, t4, 4f // boundary check AFTER load
>
> [...]
Here is the summary with links:
- riscv: lib: Fix ZBB strnlen reading past count boundary
https://git.kernel.org/riscv/c/5d588c684833
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-riscv
mailing list