Thread (15 messages) flat view 15 messages, 3 authors, 2018-05-09

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

From: Ram Pai <hidden>
Date: 2018-05-08 18:39:12

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help