Re: [PATCH v19 24/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2021-02-05 Thread Kees Cook
On Thu, Feb 04, 2021 at 03:41:59PM -0800, Yu, Yu-cheng wrote: > On 2/4/2021 12:35 PM, Kees Cook wrote: > > On Wed, Feb 03, 2021 at 02:55:46PM -0800, Yu-cheng Yu wrote: > > > arch_prctl(ARCH_X86_CET_STATUS, u64 *args) > > > Get CET feature status. > > > > > > The parameter 'args' is a poi

Re: [PATCH v19 24/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2021-02-04 Thread Yu, Yu-cheng
On 2/4/2021 12:35 PM, Kees Cook wrote: On Wed, Feb 03, 2021 at 02:55:46PM -0800, Yu-cheng Yu wrote: arch_prctl(ARCH_X86_CET_STATUS, u64 *args) Get CET feature status. The parameter 'args' is a pointer to a user buffer. The kernel returns the following information: *args =

Re: [PATCH v19 24/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2021-02-04 Thread Kees Cook
On Wed, Feb 03, 2021 at 02:55:46PM -0800, Yu-cheng Yu wrote: > arch_prctl(ARCH_X86_CET_STATUS, u64 *args) > Get CET feature status. > > The parameter 'args' is a pointer to a user buffer. The kernel returns > the following information: > > *args = shadow stack/IBT status > *(