[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <BDEBB9B4-D3D3-4CEA-8BE0-1E2947F688D4@linux.dev>
Date: Tue, 15 Apr 2025 21:24:52 +0800
From: Muchun Song <muchun.song@...ux.dev>
To: Oscar Salvador <osalvador@...e.de>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
David Hildenbrand <david@...hat.com>,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm, hugetlb: Increment the number of pages to be reset on
HVO
> On Apr 15, 2025, at 19:18, Oscar Salvador <osalvador@...e.de> wrote:
>
> commit 4eeec8c89a0c ("mm: move hugetlb specific things in folio to page[3]")
> shifted hugetlb specific stuff, and now mapping overlaps _hugetlb_cgroup field.
>
> Upon restoring the vmemmap for HVO, only the first two tail pages are reset, and
> this causes the check in free_tail_page_prepare() to fail as it finds
> an unexpected mapping value in some tails.
>
> Increment the number of pages to be reset to 4 (head + 3 tail pages)
>
> Fixes: 4eeec8c89a0c ("mm: move hugetlb specific things in folio to page[3]")
> Suggested-by: David Hildenbrand <david@...hat.com>
> Signed-off-by: Oscar Salvador <osalvador@...e.de>
Reviewed-by: Muchun Song <muchun.song@...ux.dev>
Thanks.
Powered by blists - more mailing lists