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

2 messages, 2 authors, 2020-09-01 · open the first message on its own page

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

From: Florian Weimer <hidden>
Date: 2020-09-01 17:50:58

* Yu-cheng Yu:
Like other arch_prctl()'s, this parameter was 'unsigned long'
earlier. The idea was, since this arch_prctl is only implemented for
the 64-bit kernel, we wanted it to look as 64-bit only.  I will change
it back to 'unsigned long'.
What about x32?  In general, long is rather problematic for x32.

Thanks,
Florian

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

From: Yu, Yu-cheng <hidden>
Date: 2020-09-01 17:58:32

On 9/1/2020 10:50 AM, Florian Weimer wrote:
* Yu-cheng Yu:
quoted
Like other arch_prctl()'s, this parameter was 'unsigned long'
earlier. The idea was, since this arch_prctl is only implemented for
the 64-bit kernel, we wanted it to look as 64-bit only.  I will change
it back to 'unsigned long'.
What about x32?  In general, long is rather problematic for x32.
The problem is the size of 'long', right?
Because this parameter is passed in a register, and only the lower bits 
are used, x32 works as well.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help