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

From: Dave Hansen
Date: Fri Jul 08 2016 - 15:26:34 EST


On 07/08/2016 12:18 AM, Ingo Molnar wrote:
> So my hope was that we'd also grow some debugging features: such as a periodic
> watchdog timer clearing all non-allocated pkeys of a task and re-setting them to
> their (kernel-)known values and thus forcing user-space to coordinate key
> allocation/freeing.

I'm glad you mentioned this. I've explicitly called out this behavior
in the manpages now, or at least called out the fact that the kernel
will not preserve PKRU contents for unallocated keys.