[PATCH] riscv: entry: gate shadow call stack reload on sstatus.SPP, not tp
patchwork-bot+linux-riscv at kernel.org
patchwork-bot+linux-riscv at kernel.org
Wed Oct 7 19:40:08 PDT 2026
Hello:
This patch was applied to riscv/linux.git (fixes)
by Paul Walmsley <pjw at kernel.org>:
On Thu, 1 Oct 2026 13:57:11 +0000 you wrote:
> Under CONFIG_SHADOW_CALL_STACK, handle_exception() reloads the kernel
> shadow call stack pointer (gp) only when the trap came from userspace.
> It made that decision with scs_load_current_if_task_changed, which
> compares the trap-time tp (read back from sscratch into s5) against the
> current tp:
>
> beq \prev, tp, _skip_scs
> scs_load_current
> _skip_scs:
>
> [...]
Here is the summary with links:
- riscv: entry: gate shadow call stack reload on sstatus.SPP, not tp
https://git.kernel.org/riscv/c/4d0697f19297
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