Re: [PATCH] riscv/futex: sign extend compare value in atomic cmpxchg

patchwork-bot+linux-riscv
2025-02-13T18:30:12Z

Hello:

This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:

On Mon, 03 Feb 2025 11:06:00 +0100 you wrote:
> Make sure the compare value in the lr/sc loop is sign extended to match
> what lr.w does. Fortunately, due to the compiler keeping the register
> contents sign extended anyway the lack of the explicit extension didn't
> result in wrong code so far, but this cannot be relied upon.
>
> Fixes: b90edb33010b ("RISC-V: Add futex support.")
> Signed-off-by: Andreas Schwab <schwab@suse.de>
>
> [...]

Here is the summary with links:
- riscv/futex: sign extend compare value in atomic cmpxchg
https://git.kernel.org/riscv/c/5c238584bce5

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.