Re: [PATCH v2 15/28] powerpc/book3s64/pkeys: Reset userspace AMR correctly on exec

2020-05-07 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > 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 > --- >

[PATCH v2 15/28] powerpc/book3s64/pkeys: Reset userspace AMR correctly on exec

2020-05-02 Thread Aneesh Kumar K.V
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 --- arch/powerpc/include/asm/book3s/64/kup.h | 2 ++