summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2024-02-01 18:32:23 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-02-24 16:47:21 +0000
commit8f09b8b4fa58e99cbfd9a650b31d65cdbd8e4276 (patch)
treedd3911c8a00747d02c3b0ad4b7efce39d5fecd06
parent169f9102f9198b04afffa6164372a4ba4070f412 (diff)
downloadlinux-stable-8f09b8b4fa58e99cbfd9a650b31d65cdbd8e4276.tar.gz
linux-stable-8f09b8b4fa58e99cbfd9a650b31d65cdbd8e4276.tar.bz2
linux-stable-8f09b8b4fa58e99cbfd9a650b31d65cdbd8e4276.zip
ARM: 9351/1: fault: Add "cut here" line for prefetch aborts
The common pattern in arm is to emit a "8<--- cut here ---" line for faults, but it was missing for do_PrefetchAbort(). Add it. Cc: Wang Kefeng <wangkefeng.wang@huawei.com> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: linux-arm-kernel@lists.infradead.org Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
-rw-r--r--arch/arm/mm/fault.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
index ec16907a551c..bc5b959b6f90 100644
--- a/arch/arm/mm/fault.c
+++ b/arch/arm/mm/fault.c
@@ -593,6 +593,7 @@ do_PrefetchAbort(unsigned long addr, unsigned int ifsr, struct pt_regs *regs)
if (!inf->fn(addr, ifsr | FSR_LNX_PF, regs))
return;
+ pr_alert("8<--- cut here ---\n");
pr_alert("Unhandled prefetch abort: %s (0x%03x) at 0x%08lx\n",
inf->name, ifsr, addr);