Subject: Re: [PATCH] powerpc/pkeys: copy pkey-tracking-information at fork()

From: Florian Weimer <[email-masked]>
Date: Tue, 04 Dec 2018 14:00:07 +0100

* Ram Pai:

> +void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm)
> +{
> +	/* Duplicate the oldmm pkey state in mm: */
> +	mm_pkey_allocation_map(mm) = mm_pkey_allocation_map(oldmm);
> +	mm->context.execute_only_pkey = oldmm->context.execute_only_pkey;
> +}

Looks reasonable to me.

Thanks,
Florian (who is not a kernel developer though)