Re: [PATCH v19 20/25] x86/cet/shstk: User-mode shadow stack support

2021-02-04 Thread Kees Cook
On Wed, Feb 03, 2021 at 02:55:42PM -0800, Yu-cheng Yu wrote: > Introduce basic shadow stack enabling/disabling/allocation routines. > A task's shadow stack is allocated from memory with VM_SHSTK flag and has > a fixed size of min(RLIMIT_STACK, 4GB). > > Signed-off-by: Yu-cheng Yu Reviewed-by: Ke

[PATCH v19 20/25] x86/cet/shstk: User-mode shadow stack support

2021-02-03 Thread Yu-cheng Yu
Introduce basic shadow stack enabling/disabling/allocation routines. A task's shadow stack is allocated from memory with VM_SHSTK flag and has a fixed size of min(RLIMIT_STACK, 4GB). Signed-off-by: Yu-cheng Yu --- arch/x86/include/asm/cet.h | 28 ++ arch/x86/include/asm/processor.h |