hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4PM10 CVE: NA
--------------------------------
APEI claimed ras error as a firmware-first notification. But we missing process it in kernel mode after commit 8fcc4ae6faf8 ("arm64: acpi: Make apei_claim_sea() synchronise with APEI's irq work").
We should call apei_claim_sea no mater in user or kernel mode.
Signed-off-by: Tong Tiangen tongtiangen@huawei.com --- arch/arm64/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index 3fc5aceb72eb..adb763012928 100644 --- a/arch/arm64/mm/fault.c +++ b/arch/arm64/mm/fault.c @@ -641,7 +641,7 @@ static int do_sea(unsigned long addr, unsigned int esr, struct pt_regs *regs)
inf = esr_to_fault_info(esr);
- if (user_mode(regs) && apei_claim_sea(regs) == 0) { + if (apei_claim_sea(regs) == 0 && user_mode(regs)) { /* * APEI claimed this as a firmware-first notification. * Some processing deferred to task_work before ret_to_user().