Re: [PATCH] selftests: mm: fix map_hugetlb failure on 64K page size systems

2024-01-19 Thread Nico Pache
NACK. I accidentally sent an older version of this patch. Following up with V2. On Fri, Jan 19, 2024 at 5:58 AM Nico Pache wrote: > > On systems with 64k page size and 512M huge page sizes, the allocation > and test succeeds but errors out at the munmap. As the comment states, > munmap will fail

[PATCH] selftests: mm: fix map_hugetlb failure on 64K page size systems

2024-01-19 Thread Nico Pache
On systems with 64k page size and 512M huge page sizes, the allocation and test succeeds but errors out at the munmap. As the comment states, munmap will failure if its not HUGEPAGE aligned. This is due to the length of the mapping being 1/2 the size of the hugepage causing the munmap to not be hug