[PATCH v3] powerpc, pkey: make protection key 0 less special

Ram Pai linuxram at us.ibm.com
Wed May 9 04:38:53 AEST 2018


On Tue, May 08, 2018 at 07:03:36PM +0200, Michal Suchánek wrote:
> 
> How is the application denied setting the permissions on key 0 if it
> can program the register directly?

There is a UAMOR register. The userspace can change the permissions of a
given key; by modifying the bits in AMOR register, only if the kernel
has set the corresponding bit in the UAMOR register.  For key-0 the
kernel does not set the corresponding UAMOR bit.

RP



More information about the Linuxppc-dev mailing list