Re: [PATCH 2/2] riscv: Sanitize syscall table indexing under speculation

From: Paul Walmsley

Date: Tue Dec 30 2025 - 22:01:25 EST


On Thu, 18 Dec 2025, Lukas Gerlach wrote:

> The syscall number is a user-controlled value used to index into the
> syscall table. Use array_index_nospec() to clamp this value after the
> bounds check to prevent speculative out-of-bounds access and subsequent
> data leakage via cache side channels.
>
> Signed-off-by: Lukas Gerlach <lukas.gerlach@xxxxxxxx>

Thanks, queued for v6.19-rc.


- Paul