Re: [PATCH 0/2] riscv: Add Spectre v1 mitigations

From: patchwork-bot+linux-riscv

Date: Tue Dec 30 2025 - 22:34:54 EST


Hello:

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

On Thu, 18 Dec 2025 20:13:30 +0100 you wrote:
> This series adds Spectre v1 to RISC-V in line with x86 and arm64.
>
> Modern RISC-V CPUs with deep pipelines (e.g., XuanTie C910, SiFive P550)
> are susceptible to Spectre v1 attacks where an attacker can speculatively
> bypass bounds checks and leak kernel memory via cache side channels.
>
> The first patch adds pointer masking to uaccess routines. Similar to
> arm64's uaccess_mask_ptr(), this clears the top bit of user pointers
> before access, ensuring that even under speculation, a user-controlled
> pointer cannot reach kernel memory.
>
> [...]

Here is the summary with links:
- [1/2] riscv: Use pointer masking to limit uaccess speculation
(no matching commit)
- [2/2] riscv: Sanitize syscall table indexing under speculation
https://git.kernel.org/riscv/c/25fd7ee7bf58

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html