v5
2026-08-24
修复 MF_DELAYED 误判致命信号 · v5
修复内存故障处理将 MF_DELAYED 当错误:truncate_error_folio 传播它,避免误发 SIGBUS,并调整引用计数。
原始补丁链接
子 Patch(5)
1/5
mm: memory_failure: Clarify the MF_DELAYED definition
[mm: memory_failure: Clarify the MF_DELAYED definition] This patch clarifies the definition of MF_DELAYED to represent cases where a folio’s removal is initiated but not immediately completed (e.g., d
2/5
mm: memory_failure: Allow truncate_error_folio to return MF_DELAYED
[mm: memory_failure: Allow truncate_error_folio to return MF_DELAYED] The .error_remove_folio a_ops is used by different filesystems to handle folio truncation upon discovery of a memory failure in th
3/5
mm: shmem: Update shmem handler to the MF_DELAYED definition
[mm: shmem: Update shmem handler to the MF_DELAYED definition] To align with the definition of MF_DELAYED, update shmem_error_remove_folio() to return MF_DELAYED. shmem handles memory failures but de
4/5
mm: memory_failure: Generalize extra_pins handling to all MF_DELAYED cases
[mm: memory_failure: Generalize extra_pins handling to all MF_DELAYED cases] Generalize extra_pins handling to all MF_DELAYED cases not only shmem_mapping. If MF_DELAYED is returned, the filemap cont
5/5
mm: selftests: Add shmem into memory failure test
[mm: selftests: Add shmem into memory failure test] Add a shmem memory failure selftest to test the shmem memory failure is correct after modifying shmem return value. Specifically, test the expected