On 27/08/20 9:39 am, Aneesh Kumar K.V wrote:
> 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 <[email protected]>
> ---
>  arch/powerpc/include/asm/book3s/64/pkeys.h |  2 ++
>  arch/powerpc/kernel/process.c              |  6 +++++-
>  arch/powerpc/mm/book3s64/pkeys.c           | 16 ++--------------
>  3 files changed, 9 insertions(+), 15 deletions(-)
> 

Reviewed-by: Sandipan Das <[email protected]>

Reply via email to