arm64: pass ESR_ELx to die() of cfi_handler
A message that is not in the archive (sent off-list or not yet received): CGME20230220073527epcas1p1e901bfa667b8c51551d26478013131e6@epcas1p1.samsung.com
PATCH 1/1 arm64: pass ESR_ELx to die() of cfi_handler
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.
--- arch/arm64/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/traps.c +1 -1
@@ -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 :
Signature · 1 line
2.17.1
Quoted 7 lines · Sangmoon Kim
Commit
0f2cb928a154("arm64: consistently passESR_ELxtodie()") caused all callers to pass theESR_ELxvalue todie().For consistency, this patch also adds esr to
die()call ofcfi_handler. Also, when CFI error occurs, die handlers can useESR_ELxvalue.Signed-off-by Sangmoon Kim <[email protected]>
Consistently reporting the ESR value makes sense to me, so:
Mark.
Quoted 20 lines
--- arch/arm64/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/kernel/traps.c +1
-1@@ -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 :Signature · 1 line
2.17.1
Quoted 5 lines · Sangmoon Kim
Commit
0f2cb928a154("arm64: consistently passESR_ELxtodie()") caused all callers to pass theESR_ELxvalue todie().For consistency, this patch also adds esr to
die()call ofcfi_handler. Also, when CFI error occurs, die handlers can useESR_ELxvalue.
Quoted 8 lines · Sangmoon Kim
Commit
0f2cb928a154("arm64: consistently passESR_ELxtodie()") caused all callers to pass theESR_ELxvalue todie().For consistency, this patch also adds esr to
die()call ofcfi_handler. Also, when CFI error occurs, die handlers can useESR_ELxvalue.[...]
Applied to arm64 (for-next/core), thanks!
[1/1] arm64: pass ESR_ELx to die() of cfi_handler
https://git.kernel.org/arm64/c/b61b82f81e09
Signature · 1 line
Catalin