Re: [RFC PATCH v4 20/27] x86/cet/shstk: Signal handling for shadow stack

2018-10-03 Thread Jann Horn
On Fri, Sep 21, 2018 at 5:09 PM Yu-cheng Yu wrote: > When setting up a signal, the kernel creates a shadow stack > restore token at the current SHSTK address and then stores the > token's address in the signal frame, right after the FPU state. > Before restoring a signal, the kernel verifies and t

Re: [RFC PATCH v4 20/27] x86/cet/shstk: Signal handling for shadow stack

2018-10-03 Thread Eugene Syromiatnikov
On Fri, Sep 21, 2018 at 08:03:44AM -0700, Yu-cheng Yu wrote: > When setting up a signal, the kernel creates a shadow stack > restore token at the current SHSTK address and then stores the > token's address in the signal frame, right after the FPU state. > Before restoring a signal, the kernel verif

[RFC PATCH v4 20/27] x86/cet/shstk: Signal handling for shadow stack

2018-09-21 Thread Yu-cheng Yu
When setting up a signal, the kernel creates a shadow stack restore token at the current SHSTK address and then stores the token's address in the signal frame, right after the FPU state. Before restoring a signal, the kernel verifies and then uses the restore token to set the SHSTK pointer. Signed