Re: [PATCH] riscv: lib: Fix ZBB strnlen reading past count boundary

From: patchwork-bot+linux-riscv

Date: Sat Aug 08 2026 - 14:01:15 EST


Hello:

This patch was applied to riscv/linux.git (fixes)
by Paul Walmsley <pjw@xxxxxxxxxx>:

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