On Fri, 2018-05-04 at 20:01:51 UTC, Ram Pai wrote:
Disassociate the exec_key from a VMA if the VMA permission is not
PROT_EXEC anymore. Otherwise the exec_only key continues to be
associated with the vma, causing unexpected behavior.
The problem was reported on x86 by Shakeel Butt,
which is also applicable on powerpc.
cc: Shakeel Butt <redacted>
Reported-by: Shakeel Butt <redacted>
Fixes 5586cf6 ("powerpc: introduce execute-only pkey")
Signed-off-by: Ram Pai <redacted>
Reviewed-by: Thiago Jung Bauermann <redacted>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/eabdb8ca8690eedd461e61ea778059
cheers