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

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

From: Dave Hansen <hidden>
Date: 2018-05-04 19:59:29

On 05/04/2018 12:22 PM, Ram Pai wrote:
quoted hunk ↗ jump to hunk
@@ -407,9 +414,6 @@ static bool pkey_access_permitted(int pkey, bool write, bool execute)
 	int pkey_shift;
 	u64 amr;
 
-	if (!pkey)
-		return true;
-
 	if (!is_pkey_enabled(pkey))
 		return true;
Looks fine to me.  Obviously doesn't have any impact on x86 or the
generic code.

One question, though.  Which other check makes up for this removed !pkey
check?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help