[v2] powerpc/pkeys: copy pkey-tracking-information at fork()

Michael Ellerman patch-notifications at ellerman.id.au
Mon Dec 24 00:28:06 AEDT 2018


On Thu, 2018-12-20 at 20:03:30 UTC, Ram Pai wrote:
> Pkey tracking information is not copied over to the mm_struct of the
> child during fork(). This can cause the child to erroneously allocate
> keys that were already allocated. Any allocated execute-only key is lost
> aswell.
>     
> Add code; called by dup_mmap(), to copy the pkey state from parent to
> child explicitly.
>     
> This problem was originally found by Dave Hansen on x86, which turns out
> to be a problem on powerpc aswell.
>     
> Reviewed-by: Thiago Jung Bauermann <bauerman at linux.ibm.com>
> Signed-off-by: Ram Pai <linuxram at us.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/2cd4bd192ee94848695c1c052d8791

cheers


More information about the Linuxppc-dev mailing list