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

2018-12-20 Thread Michael Ellerman
Ram Pai writes: > 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

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

2018-12-20 Thread Ram Pai
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 chil