Aneesh Kumar K.V d5fa30e699 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
2020-12-04 01:01:26 +11:00
..
2020-08-07 18:48:15 -07:00
2020-11-19 16:56:55 +11:00
2020-10-16 12:21:15 -07:00
2020-11-19 16:56:55 +11:00
2020-12-04 01:01:09 +11:00
2020-10-08 21:17:14 +11:00
2020-10-08 21:17:12 +11:00
2020-07-27 00:01:30 +10:00
2020-06-05 12:39:30 -07:00
2020-05-26 23:36:57 +10:00
2020-06-05 12:39:30 -07:00
2020-11-25 23:17:31 +11:00
2020-05-26 23:36:51 +10:00
2020-12-04 01:01:19 +11:00
2020-11-25 23:17:31 +11:00