Skip to content
Commit 88e4f525 authored by Oscar Salvador's avatar Oscar Salvador Committed by Andrew Morton
Browse files

mm/hugetlb: add missing VM_FAULT_SET_HINDEX in hugetlb_wp

commit 1cb9dc4b

 ("mm: hwpoison: support recovery from HugePage
copy-on-write faults") added support to use the mc variants when coping
hugetlb pages on CoW faults.

Add the missing VM_FAULT_SET_HINDEX, so the right si_addr_lsb will be
passed to userspace to report the extension of the faulty area.

Link: https://lkml.kernel.org/r/20240509100148.22384-3-osalvador@suse.de
Signed-off-by: default avatarOscar Salvador <osalvador@suse.de>
Acked-by: default avatarPeter Xu <peterx@redhat.com>
Acked-by: default avatarAxel Rasmussen <axelrasmussen@google.com>
Cc: Liu Shixin <liushixin2@huawei.com>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 8e34419f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment