|
@@ -185,6 +185,10 @@ long __mlock_vma_pages_range(struct vm_area_struct *vma,
|
|
|
if (vma->vm_flags & (VM_READ | VM_WRITE | VM_EXEC))
|
|
|
gup_flags |= FOLL_FORCE;
|
|
|
|
|
|
+ /*
|
|
|
+ * We made sure addr is within a VMA, so the following will
|
|
|
+ * not result in a stack expansion that recurses back here.
|
|
|
+ */
|
|
|
return __get_user_pages(current, mm, addr, nr_pages, gup_flags,
|
|
|
NULL, NULL, nonblocking);
|
|
|
}
|