Re: [PATCH 00/35] Shadow stacks for userspace
From: Peter Zijlstra <peterz@infradead.org>
Date: 2022-02-06 13:20:14
Also in:
linux-arch, linux-doc, linux-mm, lkml
From: Peter Zijlstra <peterz@infradead.org>
Date: 2022-02-06 13:20:14
Also in:
linux-arch, linux-doc, linux-mm, lkml
On Sat, Feb 05, 2022 at 12:21:12PM -0800, H.J. Lu wrote:
setjmp/longjmp work on the same sigjmp_buf. Shadow stack pointer is saved and restored, just like any other callee-saved registers.
How is having that shadow stack pointer in user-writable memory not a problem? That seems like a prime target to subvert the whole shadow stack machinery.