We do not currently support usefaultfd in PCuABI, and uaddr_to_user_ptr_safe() should not be used to create a user pointer from an arbitrary (user-provided) address. It is unclear whether userfaultfd can be supported in a safe way in PCuABI, for now let's return this code to its original state.
Signed-off-by: Kevin Brodsky kevin.brodsky@arm.com --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index dffda44762d5..e36ca75311a5 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -6041,7 +6041,7 @@ int hugetlb_mcopy_atomic_pte(struct mm_struct *dst_mm, }
ret = copy_huge_page_from_user(page, - uaddr_to_user_ptr_safe(src_addr), + (const void __user *) src_addr, pages_per_huge_page(h), false);
/* fallback to copy_from_user outside mmap_lock */