powerpc/pkeys: Detach execute_only key on !PROT_EXEC

Michael Ellerman patch-notifications at ellerman.id.au
Wed Jun 6 01:19:30 AEST 2018


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 <shakeelb at google.com>
> Reported-by: Shakeel Butt <shakeelb at google.com>
> Fixes 5586cf6 ("powerpc: introduce execute-only pkey")
> Signed-off-by: Ram Pai <linuxram at us.ibm.com>
> Reviewed-by: Thiago Jung Bauermann <bauerman at linux.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/eabdb8ca8690eedd461e61ea778059

cheers


More information about the Linuxppc-dev mailing list