Re: [PATCH v2] riscv: cif: clear CFI lock status in start_thread
From: patchwork-bot+linux-riscv
Date: Fri Apr 03 2026 - 14:31:28 EST
Hello:
This patch was applied to riscv/linux.git (for-next)
by Paul Walmsley <pjw@xxxxxxxxxx>:
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