]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s64/pkeys: Reset userspace AMR correctly on exec
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Fri, 27 Nov 2020 04:44:14 +0000 (10:14 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:26 +0000 (01:01 +1100)
commitef64f3c34929aa65d3413418715f68f4830a4e86
tree69bb6b2eb8e0488a5228288cc2073d47ac706191
parent0d0f9486bb190fdaef36635a30820efcf60d194b
powerpc/book3s64/pkeys: Reset userspace AMR correctly on exec

On fork, we inherit from the parent and on exec, we should switch to default_amr values.

Also, avoid changing the AMR register value within the kernel. The kernel now runs with
different AMR values.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Reviewed-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201127044424.40686-13-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/book3s/64/pkeys.h
arch/powerpc/kernel/process.c
arch/powerpc/mm/book3s64/pkeys.c