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/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/shmem.c b/mm/shmem.c index 2b33076c0f9c..82911fefc2d5 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -2452,7 +2452,7 @@ int shmem_mfill_atomic_pte(struct mm_struct *dst_mm, */ pagefault_disable(); ret = copy_from_user(page_kaddr, - uaddr_to_user_ptr_safe(src_addr), + (const void __user *)src_addr, PAGE_SIZE); pagefault_enable(); kunmap_local(page_kaddr);