[PATCH v2] riscv: cif: clear CFI lock status in start_thread

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Fri Apr 3 11:30:19 PDT 2026


Hello:

This patch was applied to riscv/linux.git (for-next)
by Paul Walmsley <pjw at kernel.org>:

On Sun, 22 Mar 2026 23:56:40 -0700 you wrote:
> When libc locks the CFI status through the following prctl:
>  - PR_LOCK_SHADOW_STACK_STATUS
>  - PR_LOCK_INDIR_BR_LP_STATUS
> 
> A newly execd address space will inherit the lock status
> if it does not clear the lock bits. Since the lock bits
> remain set, libc will later fail to enable the landing
> pad and shadow stack.
> 
> [...]

Here is the summary with links:
  - [v2] riscv: cif: clear CFI lock status in start_thread
    https://git.kernel.org/riscv/c/b3a20899d255

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