|
@@ -1779,7 +1779,8 @@ int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
|
|
|
struct vm_area_struct *vma;
|
|
struct vm_area_struct *vma;
|
|
|
int write = gup_flags & FOLL_WRITE;
|
|
int write = gup_flags & FOLL_WRITE;
|
|
|
|
|
|
|
|
- down_read(&mm->mmap_sem);
|
|
|
|
|
|
|
+ if (down_read_killable(&mm->mmap_sem))
|
|
|
|
|
+ return 0;
|
|
|
|
|
|
|
|
/* the access must start within one of the target process's mappings */
|
|
/* the access must start within one of the target process's mappings */
|
|
|
vma = find_vma(mm, addr);
|
|
vma = find_vma(mm, addr);
|