Thread (110 messages) 110 messages, 8 authors, 2023-02-17

Re: [PATCH v5 27/39] x86/shstk: Add user-mode shadow stack support

From: Kees Cook <hidden>
Date: 2023-01-20 01:05:14
Also in: linux-arch, linux-doc, linux-mm, lkml

On Thu, Jan 19, 2023 at 01:23:05PM -0800, Rick Edgecombe wrote:
From: Yu-cheng Yu <redacted>

Introduce basic shadow stack enabling/disabling/allocation routines.
A task's shadow stack is allocated from memory with VM_SHADOW_STACK flag
and has a fixed size of min(RLIMIT_STACK, 4GB).

Keep the task's shadow stack address and size in thread_struct. This will
be copied when cloning new threads, but needs to be cleared during exec,
so add a function to do this.

Do not support IA32 emulation or x32.

Tested-by: Pengfei Xu <redacted>
Tested-by: John Allen <john.allen@amd.com>
Signed-off-by: Yu-cheng Yu <redacted>
Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help