acrn-kernel/arch/x86
Zhiquan Li d67e43be0e x86/mce: Mark fatal MCE's page as poison to avoid panic in the kdump kernel
[ Upstream commit 9f3b130048bfa2e44a8cfb1b616f826d9d5d8188 ]

Memory errors don't happen very often, especially fatal ones. However,
in large-scale scenarios such as data centers, that probability
increases with the amount of machines present.

When a fatal machine check happens, mce_panic() is called based on the
severity grading of that error. The page containing the error is not
marked as poison.

However, when kexec is enabled, tools like makedumpfile understand when
pages are marked as poison and do not touch them so as not to cause
a fatal machine check exception again while dumping the previous
kernel's memory.

Therefore, mark the page containing the error as poisoned so that the
kexec'ed kernel can avoid accessing the page.

  [ bp: Rewrite commit message and comment. ]

Co-developed-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: Zhiquan Li <zhiquan1.li@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Link: https://lore.kernel.org/r/20231014051754.3759099-1-zhiquan1.li@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-05 20:12:47 +00:00
..
boot x86/boot: Ignore NMIs during very early boot 2024-02-05 20:12:46 +00:00
coco x86/tdx: Allow 32-bit emulation by default 2023-12-13 18:39:05 +01:00
configs
crypto
entry x86/entry: Do not allow external 0x80 interrupts 2023-12-13 18:39:05 +01:00
events KVM: x86/pmu: fix masking logic for MSR_CORE_PERF_GLOBAL_CTRL 2024-01-10 17:10:21 +01:00
hyperv x86/hyperv: Fix the detection of E820_TYPE_PRAM in a Gen2 VM 2023-12-20 17:00:21 +01:00
ia32
include x86/entry/ia32: Ensure s32 is sign extended to s64 2024-01-31 16:17:12 -08:00
kernel x86/mce: Mark fatal MCE's page as poison to avoid panic in the kdump kernel 2024-02-05 20:12:47 +00:00
kvm Revert "nSVM: Check for reserved encodings of TLB_CONTROL in nested VMCB" 2024-01-31 16:16:58 -08:00
lib x86/lib: Fix overflow when counting digits 2024-01-25 15:27:18 -08:00
math-emu
mm x86/coco: Disable 32-bit emulation by default on TDX and SEV 2023-12-13 18:39:04 +01:00
net bpf: Support new 32bit offset jmp instruction 2024-01-10 17:10:29 +01:00
pci
platform
power
purgatory
ras
realmode
tools
um
video
virt/vmx/tdx
xen x86/xen: add CPU dependencies for 32-bit build 2024-01-01 12:38:59 +00:00
.gitignore
Kbuild
Kconfig
Kconfig.assembler
Kconfig.cpu
Kconfig.debug
Makefile
Makefile.um
Makefile_32.cpu