[PATCH] Linux: Implement interfaces for memory protection keys
Florian Weimer
fweimer@redhat.com
Sun Nov 5 07:35:00 GMT 2017
On 11/04/2017 06:49 PM, Florian Weimer wrote:
> This adds system call wrappers for pkey_alloc, pkey_free, pkey_mprotect,
> and x86-64 implementations of pkey_get and pkey_set, which abstract over
> the PKRU CPU register and hide the actual number of memory protection
> keys supported by the CPU.
>
> The system call wrapers use unsigned int instead of unsigned long for
> parameters, so that no special treatment for x32 is needed. The flags
> argument is currently unused, and the access rights bit mask is limited
> to two bits by the current PKRU register layout anyway.
I again forgot to add a NEWS entry.
Note that the manual pages for pkey_alloc etc. are currently quite
confusing (and we'd have to add one for pkey_set/pkey_get).
Thanks,
Florian
More information about the Libc-alpha
mailing list