--- a/mm/memory.c~mm-memoryc-use-vma_lookup-in-__access_remote_vm +++ a/mm/memory.c @@ -4994,8 +4994,8 @@ int __access_remote_vm(struct mm_struct * Check if this is a VM_IO | VM_PFNMAP VMA, which * we can access using slightly different code. */ - vma = find_vma(mm, addr); - if (!vma || vma->vm_start > addr) + vma = vma_lookup(mm, addr); + if (!vma) break; if (vma->vm_ops && vma->vm_ops->access) ret = vma->vm_ops->access(vma, addr, buf,