On Sun, 12 Jul 2020 18:50:47 +0530, Aneesh Kumar K.V wrote:
> Even if the IAMR value deny the execute access, current kernel return true
> w.r.t pkey_access_permitted() for execute permission check if the AMR
> read pkey bit is cleared.
>
> This results in repeated page fault loop with a test like below.
>
> #define _GNU_SOURCE
> #include <errno.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <signal.h>
> #include <inttypes.h>
>
> [...]
Applied to powerpc/fixes.
[1/1] powerpc/book3s64/pkeys: Fix pkey_access_permitted() for execute disable
pkey
https://git.kernel.org/powerpc/c/192b6a780598976feb7321ff007754f8511a4129
cheers