I am using ./einj_mem_uc -f 'single' to inject an uncorrected error.
source code: https://git.kernel.org/pub/scm/linux/kernel/git/aegl/ras-tools.git
I tested on CentOS 8.5 ( Kernel 4.18.0-348.el8.x86_64 ), it seems to boot into the mini kernel ( kexec ? ) then kernel panic.
I tried on 5.15 kernel, the system did not crash, why got the difference?
in both tests, I can see:
Memory failure: 0x2xxxxx: recovery action for dirty LRU page: Recovered
and the pass one ( didn't crash one ), I can see:
SIGBUS: addr = 0x7exxxxxxxxx
page not present
Saw local machine check
Test passed
the crashed one just crashed, no above logs.