[PATCH] riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Thu May 8 09:52:08 PDT 2025


Hello:

This patch was applied to riscv/linux.git (fixes)
by Alexandre Ghiti <alexghiti at rivosinc.com>:

On Wed,  7 May 2025 07:52:18 -0700 you wrote:
> When the prctl() interface for pointer masking was added, it did not
> check that the pointer masking ISA extension was supported, only the
> individual submodes. Userspace could still attempt to disable pointer
> masking and query the pointer masking state. commit 81de1afb2dd1
> ("riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL") disallowed
> the former, as the senvcfg write could crash on older systems.
> PR_GET_TAGGED_ADDR_CTRL state does not crash, because it reads only
> kernel-internal state and not senvcfg, but it should still be disallowed
> for consistency.
> 
> [...]

Here is the summary with links:
  - riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm
    https://git.kernel.org/riscv/c/7f1c3de1370b

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