Re: [PATCH v2 1/2] x86/uprobes: Keep shadow stack in sync for emulated CALLs

From: Oleg Nesterov

Date: Tue Jun 30 2026 - 04:40:17 EST


On 06/29, David Windsor wrote:
>
> Uprobe CALL emulation updates the normal user stack, but not the CET user
> shadow stack. The subsequent RET then sees a stale shadow stack entry and
> raises #CP.
>
> Update the relative CALL emulation and XOL CALL fixup paths to keep the
> shadow stack in sync.
>
> Fixes: 488af8ea7131 ("x86/shstk: Wire in shadow stack interface")
> Signed-off-by: David Windsor <dwindsor@xxxxxxxxx>

Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>