v2
2026-08-21
kexec 后保留硬件中毒页信息 · v2
EFI 系列新增 LINUX_EFI_POISONED_MEMORY 配置表,记录硬件中毒页并传给下次 kexec,避免其被使用。
原始补丁链接
子 Patch(6)
1/6
efi/libstub: add a helper for the top of usable RAM
On Fri, Aug 21, 2026 at 03:06:01AM -0700, Breno Leitao wrote: > diff –git a/drivers/firmware/efi/libstub/mem.c b/drivers/firmware/efi/libstub/mem.c > index 59f3f83de50c2..777f1f180c66e 100644 > — a
2/6
efi: add the LINUX_EFI_POISONED_MEMORY configuration table
On Fri, Aug 21, 2026 at 03:06:02AM -0700, Breno Leitao wrote: > diff –git a/drivers/firmware/efi/Kconfig b/drivers/firmware/efi/Kconfig > index 29e0729299f5b..69c0dc02bc112 100644 > — a/drivers/fir
3/6
efi/libstub: add the poisoned-memory EFI table
在EFI stub中创建poisoned-memory配置表,按2M粒度位图覆盖可用RAM,上限1M,以EFI_ACPI_RECLAIM_MEMORY分配并空表安装,供后续内核跨kexec复用。
4/6
efi/libstub: install the poisoned-memory table from the stub
在generic和x86 stub路径调用install_poisoned_memory_table(),确保exit_boot()前安装EFI表,因配置表只能在boot services期间安装。
5/6
efi: record hardware-poisoned frames into the poisoned-memory table
在action_result()中hook hard offline,将中毒页帧写入LINUX_EFI_POISONED_MEMORY位图;soft offline不记录,位只置不cleared,供kexec后续内核使用。
6/6
efi: respect the poisoned pages coming from previous kernel
[Re: [PATCH v2 6/6] efi: respect the poisoned pages coming from previous kernel] On Fri, Aug 21, 2026 at 01:13:55PM +0100, Kiryl Shutsemau wrote: > On Fri, Aug 21, 2026 at 03:06:06AM -0700, Breno Leit