Skip to content

Commit 9bc0b02

Browse files
committed
Merge tag 'powerpc-5.8-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fixes from Michael Ellerman: "One fix for a regression in our pkey handling, which exhibits as PROT_EXEC mappings taking continuous page faults. Thanks to: Jan Stancek, Aneesh Kumar K.V" * tag 'powerpc-5.8-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/mm/pkeys: Make pkey access check work on execute_only_key
2 parents ec84c3f + 19ab500 commit 9bc0b02

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/powerpc/mm/book3s64/pkeys.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,6 @@ static bool pkey_access_permitted(int pkey, bool write, bool execute)
353353
int pkey_shift;
354354
u64 amr;
355355

356-
if (!is_pkey_enabled(pkey))
357-
return true;
358-
359356
pkey_shift = pkeyshift(pkey);
360357
if (execute && !(read_iamr() & (IAMR_EX_BIT << pkey_shift)))
361358
return true;

0 commit comments

Comments
 (0)