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 <bauer...@linux.ibm.com> > Signed-off-by: Ram Pai <linux...@us.ibm.com>
Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/2cd4bd192ee94848695c1c052d8791 cheers