Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: Mark kernel as tainted on SAE and SError panic

Set TAINT_MACHINE_CHECK when SError or Synchronous External Abort (SEA)
interrupts trigger a panic to flag potential hardware faults. This
tainting mechanism aids in debugging and enables correlation of
hardware-related crashes in large-scale deployments.

This change aligns with similar patches[1] that mark machine check
events when the system crashes due to hardware errors.

Link: https://lore.kernel.org/all/20250702-add_tain-v1-1-9187b10914b9@debian.org/ [1]
Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20250716-vmcore_hw_error-v2-1-f187f7d62aba@debian.org
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Breno Leitao and committed by
Will Deacon
d7ce7e3a 75fdf823

+2
+1
arch/arm64/kernel/traps.c
··· 931 931 932 932 void __noreturn arm64_serror_panic(struct pt_regs *regs, unsigned long esr) 933 933 { 934 + add_taint(TAINT_MACHINE_CHECK, LOCKDEP_STILL_OK); 934 935 console_verbose(); 935 936 936 937 pr_crit("SError Interrupt on CPU%d, code 0x%016lx -- %s\n",
+1
arch/arm64/mm/fault.c
··· 826 826 */ 827 827 siaddr = untagged_addr(far); 828 828 } 829 + add_taint(TAINT_MACHINE_CHECK, LOCKDEP_STILL_OK); 829 830 arm64_notify_die(inf->name, regs, inf->sig, inf->code, siaddr, esr); 830 831 831 832 return 0;