Commit 0fd23021 authored by Michael Ellerman's avatar Michael Ellerman Committed by Yang Yingliang
Browse files

powerpc/powernv/idle: Restore AMR/UAMOR/AMOR after idle



mainline inclusion
from mainline-v5.2-rc1
commit 53a712ba
category: bugfix
bugzilla: 13690
CVE: CVE-2020-11669

-------------------------------------------------

In order to implement KUAP (Kernel Userspace Access Protection) on
Power9 we will be using the AMR, and therefore indirectly the
UAMOR/AMOR.

So save/restore these regs in the idle code.

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 03580560
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment