[PATCH 0/2] Minor fixups for hugetlb fault path

From: Oscar Salvador
Date: Thu May 09 2024 - 06:02:18 EST


Hi,

this series contains a couple of fixups for hugetlb_fault and hugetlb_wp
respectively, where a VM_FAULT_SET_HINDEX call was missing.

I did not bother with a Fixes tag because the missing piece here is that
we will not report to userspace the right extension of the faulty area
by adjusting struct kernel_siginfo.si_addr_lsb, but I do not consider that
to be a big issue because I assume that userspace already knows the size
of the mapping anyway.

Oscar Salvador (2):
mm/hugetlb: Add missing VM_FAULT_SET_HINDEX in hugetlb_fault
mm/hugetlb: Add missing VM_FAULT_SET_HINDEX in hugetlb_wp

mm/hugetlb.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

--
2.44.0