Files
Laurent Wandrebeck d2457a7e27 x86/mm: Don't apply va_align to hugetlb mappings on AMD F15h
get_align_mask() returns huge_page_mask_align() for hugetlbfs, but get_align_bits()
adds va_align.bits regardless, so vm_unmapped_area() returns an address off the huge
page boundary and __unmap_hugepage_range() hits BUG_ON(start & ~huge_page_mask(h)) at
teardown.

This can be triggered on Carrizo and FX-8370E, both hstates.

Pass the file to get_align_bits() and skip the randomisation for hugetlbfs.

  [ bp: Massage commit message. ]

Fixes: 1317a5e7f7 ("arch/x86: teach arch_get_unmapped_area_vmflags to handle hugetlb mappings")
Suggested-by: Dave Hansen <[email protected]>
Acked-by: Dave Hansen <[email protected]>
Signed-off-by: Laurent Wandrebeck <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Cc: [email protected] # 6.13+
Link: https://patch.msgid.link/[email protected]
2026-09-27 19:46:45 -07:00
..
…
2026-07-30 12:59:22 +02:00
…
…
…
…
…
…
2026-05-28 11:31:50 +02:00
…
…
2026-05-26 16:21:12 +02:00
…
2026-07-13 09:23:36 -07:00
…
…
…
…
…
…
2026-02-26 18:48:43 +01:00
…
2026-05-26 16:21:12 +02:00
2026-07-13 09:23:36 -07:00
…
…
…
…