Re: [PATCH v18 21/25] x86/cet/shstk: Handle signals for shadow stack

2021-02-01 Thread Yu, Yu-cheng
On 2/1/2021 2:53 PM, Dave Hansen wrote: On 1/27/21 1:25 PM, Yu-cheng Yu wrote: To deliver a signal, create a shadow stack restore token and put a restore token and the signal restorer address on the shadow stack. For sigreturn, verify the token and restore the shadow stack pointer. Introduce W

Re: [PATCH v18 21/25] x86/cet/shstk: Handle signals for shadow stack

2021-02-01 Thread Dave Hansen
On 1/27/21 1:25 PM, Yu-cheng Yu wrote: > To deliver a signal, create a shadow stack restore token and put a restore > token and the signal restorer address on the shadow stack. For sigreturn, > verify the token and restore the shadow stack pointer. > > Introduce WRUSS, which is a kernel-mode inst

[PATCH v18 21/25] x86/cet/shstk: Handle signals for shadow stack

2021-01-27 Thread Yu-cheng Yu
To deliver a signal, create a shadow stack restore token and put a restore token and the signal restorer address on the shadow stack. For sigreturn, verify the token and restore the shadow stack pointer. Introduce WRUSS, which is a kernel-mode instruction but writes directly to user shadow stack.