Re: [PATCH v24 25/30] x86/cet/shstk: Handle signals for shadow stack

2021-04-07 Thread Yu, Yu-cheng
On 4/6/2021 3:50 PM, Andy Lutomirski wrote: On Thu, Apr 1, 2021 at 3:11 PM Yu-cheng Yu wrote: When shadow stack is enabled, a task's shadow stack states must be saved along with the signal context and later restored in sigreturn. However, currently there is no systematic facility for

Re: [PATCH v24 25/30] x86/cet/shstk: Handle signals for shadow stack

2021-04-06 Thread Andy Lutomirski
On Thu, Apr 1, 2021 at 3:11 PM Yu-cheng Yu wrote: > > When shadow stack is enabled, a task's shadow stack states must be saved > along with the signal context and later restored in sigreturn. However, > currently there is no systematic facility for extending a signal context. > > Introduce a

[PATCH v24 25/30] x86/cet/shstk: Handle signals for shadow stack

2021-04-01 Thread Yu-cheng Yu
When shadow stack is enabled, a task's shadow stack states must be saved along with the signal context and later restored in sigreturn. However, currently there is no systematic facility for extending a signal context. Introduce a signal context extension struct 'sc_ext', which is used to save