Re: [PATCH] mm/memory-failure: teach kill_accessing_process to accept hugetlb tail page pfn

From: David Hildenbrand (Red Hat)

Date: Sun Dec 21 2025 - 03:49:34 EST


On 12/19/25 07:28, Jane Chu wrote:
When a hugetlb folio is being poisoned again, try_memory_failure_hugetlb()
passed head pfn to kill_accessing_process(), that is not right.
The precise pfn of the poisoned page should be used in order to
determine the precise vaddr as the SIGBUS payload.

I don't think so? IIRC, for hugetlb folios we always reported the head PFN. And user space must assume that the whole thing is poisoned and will go away.

I recall that older QEMU even depended on that behavior, for example.

--
Cheers

David