v4
2026-09-09
HWPoison 跨 kexec 隔离 · v4
将 memory_failure() 硬离线页的 PG_hwpoison 信息传给 kexec 后的新内核,避免新内核再次触碰已知坏内存。
原始补丁链接
子 Patch(5)
1/5
mm/memory-failure: efi: add the LINUX_EFI_POISONED_MEMORY configuration table
新增LINUX_EFI_POISONED_MEMORY EFI配置表定义,用于在固件中记录硬件毒化内存页。
2/5
mm/memory-failure: libstub: install the poisoned-memory EFI table
Hello Breno, Apologies for chiming in late. On Wed, 9 Sep 2026, at 15:05, Breno Leitao wrote: > A EFI config table can only be installed while boot services are still > up, so the stub has to create
3/5
mm/memory-failure: efi: record hardware-poisoned frames into the poisoned-memory table
当发现硬件毒化页时,将页帧号记录到EFI poison配置表,实现跨重启持久化。
4/5
mm/memory-failure: efi: answer whether a range is poisoned
新增 range_contains_poisoned_memory(),从 EFI 传入的 poison bitmap 查询给定物理范围是否含中毒页,供 page allocator 在发放内存块前判断。
5/5
mm/memory-failure: keep inherited poisoned frames out of the buddy allocator
在 __free_pages_core() 释放启动内存时用 range_contains_poisoned_memory() 检测继承 poison,标记 PG_hwpoison,阻止中毒 frame 进入 buddy,避免被分配。