Re: [REGRESSION] x86/hugetlb: AMD F15h VA alignment offset breaks MAP_HUGETLB alignment
From: Borislav Petkov
Date: Thu May 28 2026 - 11:58:07 EST
On Thu, May 28, 2026 at 04:03:12PM +0200, Oscar Salvador (SUSE) wrote:
> On Thu, May 28, 2026 at 02:45:01PM +0200, Oscar Salvador (SUSE) wrote:
> > The only thing bugging is, should not the same happen for THP-file-backed mappings?
>
> Aha, no, for THP we do not set align_mask (at least on x86), and the masking off is being
> done in __thp_get_unmapped_area().
I hope you found this in the proces:
dfb09f9b7ab0 ("x86, amd: Avoid cache aliasing penalties on AMD family 15h")
It is from a different century tho and perhaps not too relevant but I thought
I should mention it...
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette