Re: [PATCH v2 00/11] hugetlb: Use PAGE granularity index in exported i/f and adopt the common read_iter
From: Mike Rapoport
Date: Wed Jun 17 2026 - 14:29:17 EST
Hi Jane,
On Wed, Jun 17, 2026 at 11:25:21AM -0600, Jane Chu wrote:
> changes in v2:
> - new patches 1-4: add hwpoison handling to filemap_read(),
> thus replace hugetlbfs_read_iter() with generic_file_read_iter(),
> suggested by Matthew [2];
> - new patch 5: convert hugetlb fault handler's vmf->pgoff to PAGE_SIZE
> granularity like the rest of mm fault handling convention, suggested
> by Matthew [2];
> - patch 6: fixed a bug in v1 pointed out by Usama Arif, also by syzbot;
> - patch 8: did not pick the Acked-by from Oscar (for 5/6 in v1) due to
> updates to the patch;
> - patch 11: add VM_WARN_ON in hugetlb_unreserve_pages(), per Oscar;
It seems that cow, hugetlb, GUP and HMM selftests trigger these WARN_ONs:
https://github.com/linux-mm/linux-mm/actions/runs/27707843062/job/81960927740
> v1:
> This series stems from a discussion with David. [1]
> The series makes a small cleanup to a few hugetlb interfaces used
> outside the subsystem by standardizing them on base-page indices.
> Hopefully this makes the interface semantics a bit more coherent with
> the rest of mm, while the internal hugetlb code continue to use hugepage
> indices where that remains the more natural fit.
>
> [1] https://lore.kernel.org/linux-mm/9ec9edd1-0f4c-4da2-ae78-0e7b251a9e25@xxxxxxxxxx/
> [2] https://lore.kernel.org/linux-mm/aeZwAz6PcdlqSnJ2@xxxxxxxxxxxxxxxxxxxx/
--
Sincerely yours,
Mike.