Re: [PATCH 6/9] x86, pkeys: add pkey set/get syscalls

From
Dave Hansen <hidden>
Date
2016-07-18 18:02:31
Also in
linux-arch, linux-mm, lkml
Reply to
Ingo Molnar, 2016-07-09
On 07/09/2016 01:37 AM, Ingo Molnar wrote:
   I.e. this pattern:

     ret = pkey_mprotect(NULL, PAGE_SIZE, real_prot, pkey);

   ... would validate the pkey and we'd return -EOPNOTSUPP for pkey that is not 
   available? This would allow maximum future flexibility as it would not define 
   kernel allocated pkeys as a 'range'.
Isn't this  multiplexing an otherwise straightforward system call?  In
addition to providing pkey assignment to memory, it would also being
used to pass pkey allocation information independently from any use for
memory assignment.

The complexity of the ABI comes from its behavior, not from the raw
number of system calls that are needed to implement it.  IOW, this makes
the ABI *more* complicated.
Thread (45 messages) 45 messages, 6 authors, last reply 2016-07-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help