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

Florian Weimer fweimer at redhat.com
Wed Dec 5 00:00:07 AEDT 2018


* 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)


More information about the Linuxppc-dev mailing list