Re: [PATCH 1/2] powerpc/mm/book3s54/pkeys: make pkey access check work on execute_only_key

2020-06-30 Thread Michael Ellerman
On Sat, 27 Jun 2020 12:31:46 +0530, Aneesh Kumar K.V wrote: > pkey_access_permitted() should not check for pkey is available in UAMOR or > not. > The kernel needs to do that check only while allocating keys. This also makes > sure execute_only_key which is marked as non-manageable via UAMOR gives

[PATCH 1/2] powerpc/mm/book3s54/pkeys: make pkey access check work on execute_only_key

2020-06-27 Thread Aneesh Kumar K.V
pkey_access_permitted() should not check for pkey is available in UAMOR or not. The kernel needs to do that check only while allocating keys. This also makes sure execute_only_key which is marked as non-manageable via UAMOR gives the right access check return w.r.t pkey_access_permitted(). This