Re: [REGRESSION] x86/hugetlb: AMD F15h VA alignment offset breaks MAP_HUGETLB alignment
From: Karsten Desler
Date: Wed May 27 2026 - 16:39:38 EST
* Oscar Salvador (SUSE) wrote:
> Maybe this? Can you give it a shot?
Thanks, applied and tested across 5 reboots.
All mmaps return properly aligned hugepages, don't cause kernelBUGs
on exit and show the expected munmap behavior.
mmap(NULL, 1229824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_POPULATE|MAP_HUGETLB, -1, 0) = 0x7f7e49a00000
munmap(0x7f7e49a00000, 1229824) = -1 EINVAL (Invalid argument)
munmap(0x7f7e49a00000, 2097152) = 0
Best regards,
Karsten