]> Git Repo - linux.git/commitdiff
arm64: pass ESR_ELx to die() of cfi_handler
authorSangmoon Kim <[email protected]>
Mon, 20 Feb 2023 07:34:41 +0000 (16:34 +0900)
committerCatalin Marinas <[email protected]>
Wed, 22 Feb 2023 16:51:26 +0000 (16:51 +0000)
Commit 0f2cb928a154 ("arm64: consistently pass ESR_ELx to die()") caused
all callers to pass the ESR_ELx value to die().

For consistency, this patch also adds esr to die() call of cfi_handler.
Also, when CFI error occurs, die handlers can use ESR_ELx value.

Signed-off-by: Sangmoon Kim <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/kernel/traps.c

index 0ccc063daccb8f3c217a237d65ccb84bf5dff3c3..4a623e2e982bcd5edfd1212e1f998149a43350d4 100644 (file)
@@ -990,7 +990,7 @@ static int cfi_handler(struct pt_regs *regs, unsigned long esr)
 
        switch (report_cfi_failure(regs, regs->pc, &target, type)) {
        case BUG_TRAP_TYPE_BUG:
-               die("Oops - CFI", regs, 0);
+               die("Oops - CFI", regs, esr);
                break;
 
        case BUG_TRAP_TYPE_WARN:
This page took 0.046339 seconds and 4 git commands to generate.