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

2021-02-10 Thread Kees Cook
On Wed, Feb 10, 2021 at 01:38:10PM -0800, Yu, Yu-cheng wrote: > On 2/10/2021 11:58 AM, Kees Cook wrote: > > On Wed, Feb 10, 2021 at 09:56:59AM -0800, Yu-cheng Yu wrote: > > > To deliver a signal, create a shadow stack restore token and put the token > > > and the signal restorer address on the shad

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

2021-02-10 Thread Yu, Yu-cheng
On 2/10/2021 11:58 AM, Kees Cook wrote: On Wed, Feb 10, 2021 at 09:56:59AM -0800, Yu-cheng Yu wrote: To deliver a signal, create a shadow stack restore token and put the token and the signal restorer address on the shadow stack. For sigreturn, verify the token and restore from it the shadow sta

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

2021-02-10 Thread Kees Cook
On Wed, Feb 10, 2021 at 09:56:59AM -0800, Yu-cheng Yu wrote: > To deliver a signal, create a shadow stack restore token and put the token > and the signal restorer address on the shadow stack. For sigreturn, verify > the token and restore from it the shadow stack pointer. > > A shadow stack resto