Re: [PATCH 1/1] mm/hugetlb: do not dissolve gigantic pages without runtime support
Muchun Song <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.kernel.mm |
|---|---|
| Message-ID | <[email protected]> |
> On Aug 18, 2026, at 00:20, Longlong Xia <[email protected]> wrote: > > From: Longlong Xia <[email protected]> > > dissolve_free_hugetlb_folio() doesn't check hstate_is_gigantic_no_runtime(h) > though remove_hugetlb_folio()/update_and_free_hugetlb_folio() silently > bail for such folios, so it frees a still-listed folio and, on vmemmap > restore failure, the add_hugetlb_folio() rollback corrupts the free > list. > > Link: https://sashiko.dev/#/patchset/[email protected] > Fixes: 6eb4e88a6d27 ("hugetlb: create remove_hugetlb_page() to separate functionality") > Assisted-by: Codex:gpt-5.6-sol > Signed-off-by: Longlong Xia <[email protected]> Reviewed-by: Muchun Song <[email protected]> Thanks.