dmaengine: at_hdmac: drop useless LIST_HEAD
[linux-2.6-block.git] / mm / userfaultfd.c
CommitLineData
c1a4de99
AA
1/*
2 * mm/userfaultfd.c
3 *
4 * Copyright (C) 2015 Red Hat, Inc.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2. See
7 * the COPYING file in the top-level directory.
8 */
9
10#include <linux/mm.h>
174cd4b1 11#include <linux/sched/signal.h>
c1a4de99
AA
12#include <linux/pagemap.h>
13#include <linux/rmap.h>
14#include <linux/swap.h>
15#include <linux/swapops.h>
16#include <linux/userfaultfd_k.h>
17#include <linux/mmu_notifier.h>
60d4d2d2 18#include <linux/hugetlb.h>
26071ced 19#include <linux/shmem_fs.h>
c1a4de99
AA
20#include <asm/tlbflush.h>
21#include "internal.h"
22
23static int mcopy_atomic_pte(struct mm_struct *dst_mm,
24 pmd_t *dst_pmd,
25 struct vm_area_struct *dst_vma,
26 unsigned long dst_addr,
b6ebaedb
AA
27 unsigned long src_addr,
28 struct page **pagep)
c1a4de99
AA
29{
30 struct mem_cgroup *memcg;
31 pte_t _dst_pte, *dst_pte;
32 spinlock_t *ptl;
c1a4de99
AA
33 void *page_kaddr;
34 int ret;
b6ebaedb 35 struct page *page;
e2a50c1f
AA
36 pgoff_t offset, max_off;
37 struct inode *inode;
c1a4de99 38
b6ebaedb
AA
39 if (!*pagep) {
40 ret = -ENOMEM;
41 page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, dst_vma, dst_addr);
42 if (!page)
43 goto out;
44
45 page_kaddr = kmap_atomic(page);
46 ret = copy_from_user(page_kaddr,
47 (const void __user *) src_addr,
48 PAGE_SIZE);
49 kunmap_atomic(page_kaddr);
50
51 /* fallback to copy_from_user outside mmap_sem */
52 if (unlikely(ret)) {
9e368259 53 ret = -ENOENT;
b6ebaedb
AA
54 *pagep = page;
55 /* don't free the page */
56 goto out;
57 }
58 } else {
59 page = *pagep;
60 *pagep = NULL;
61 }
c1a4de99
AA
62
63 /*
64 * The memory barrier inside __SetPageUptodate makes sure that
65 * preceeding stores to the page contents become visible before
66 * the set_pte_at() write.
67 */
68 __SetPageUptodate(page);
69
70 ret = -ENOMEM;
f627c2f5 71 if (mem_cgroup_try_charge(page, dst_mm, GFP_KERNEL, &memcg, false))
c1a4de99
AA
72 goto out_release;
73
74 _dst_pte = mk_pte(page, dst_vma->vm_page_prot);
75 if (dst_vma->vm_flags & VM_WRITE)
76 _dst_pte = pte_mkwrite(pte_mkdirty(_dst_pte));
77
c1a4de99 78 dst_pte = pte_offset_map_lock(dst_mm, dst_pmd, dst_addr, &ptl);
e2a50c1f
AA
79 if (dst_vma->vm_file) {
80 /* the shmem MAP_PRIVATE case requires checking the i_size */
81 inode = dst_vma->vm_file->f_inode;
82 offset = linear_page_index(dst_vma, dst_addr);
83 max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE);
84 ret = -EFAULT;
85 if (unlikely(offset >= max_off))
86 goto out_release_uncharge_unlock;
87 }
88 ret = -EEXIST;
c1a4de99
AA
89 if (!pte_none(*dst_pte))
90 goto out_release_uncharge_unlock;
91
92 inc_mm_counter(dst_mm, MM_ANONPAGES);
d281ee61 93 page_add_new_anon_rmap(page, dst_vma, dst_addr, false);
f627c2f5 94 mem_cgroup_commit_charge(page, memcg, false, false);
c1a4de99
AA
95 lru_cache_add_active_or_unevictable(page, dst_vma);
96
97 set_pte_at(dst_mm, dst_addr, dst_pte, _dst_pte);
98
99 /* No need to invalidate - it was non-present before */
100 update_mmu_cache(dst_vma, dst_addr, dst_pte);
101
102 pte_unmap_unlock(dst_pte, ptl);
103 ret = 0;
104out:
105 return ret;
106out_release_uncharge_unlock:
107 pte_unmap_unlock(dst_pte, ptl);
f627c2f5 108 mem_cgroup_cancel_charge(page, memcg, false);
c1a4de99 109out_release:
09cbfeaf 110 put_page(page);
c1a4de99 111 goto out;
c1a4de99
AA
112}
113
114static int mfill_zeropage_pte(struct mm_struct *dst_mm,
115 pmd_t *dst_pmd,
116 struct vm_area_struct *dst_vma,
117 unsigned long dst_addr)
118{
119 pte_t _dst_pte, *dst_pte;
120 spinlock_t *ptl;
121 int ret;
e2a50c1f
AA
122 pgoff_t offset, max_off;
123 struct inode *inode;
c1a4de99
AA
124
125 _dst_pte = pte_mkspecial(pfn_pte(my_zero_pfn(dst_addr),
126 dst_vma->vm_page_prot));
c1a4de99 127 dst_pte = pte_offset_map_lock(dst_mm, dst_pmd, dst_addr, &ptl);
e2a50c1f
AA
128 if (dst_vma->vm_file) {
129 /* the shmem MAP_PRIVATE case requires checking the i_size */
130 inode = dst_vma->vm_file->f_inode;
131 offset = linear_page_index(dst_vma, dst_addr);
132 max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE);
133 ret = -EFAULT;
134 if (unlikely(offset >= max_off))
135 goto out_unlock;
136 }
137 ret = -EEXIST;
c1a4de99
AA
138 if (!pte_none(*dst_pte))
139 goto out_unlock;
140 set_pte_at(dst_mm, dst_addr, dst_pte, _dst_pte);
141 /* No need to invalidate - it was non-present before */
142 update_mmu_cache(dst_vma, dst_addr, dst_pte);
143 ret = 0;
144out_unlock:
145 pte_unmap_unlock(dst_pte, ptl);
146 return ret;
147}
148
149static pmd_t *mm_alloc_pmd(struct mm_struct *mm, unsigned long address)
150{
151 pgd_t *pgd;
c2febafc 152 p4d_t *p4d;
c1a4de99 153 pud_t *pud;
c1a4de99
AA
154
155 pgd = pgd_offset(mm, address);
c2febafc
KS
156 p4d = p4d_alloc(mm, pgd, address);
157 if (!p4d)
158 return NULL;
159 pud = pud_alloc(mm, p4d, address);
160 if (!pud)
161 return NULL;
162 /*
163 * Note that we didn't run this because the pmd was
164 * missing, the *pmd may be already established and in
165 * turn it may also be a trans_huge_pmd.
166 */
167 return pmd_alloc(mm, pud, address);
c1a4de99
AA
168}
169
60d4d2d2
MK
170#ifdef CONFIG_HUGETLB_PAGE
171/*
172 * __mcopy_atomic processing for HUGETLB vmas. Note that this routine is
173 * called with mmap_sem held, it will release mmap_sem before returning.
174 */
175static __always_inline ssize_t __mcopy_atomic_hugetlb(struct mm_struct *dst_mm,
176 struct vm_area_struct *dst_vma,
177 unsigned long dst_start,
178 unsigned long src_start,
179 unsigned long len,
180 bool zeropage)
181{
1c9e8def
MK
182 int vm_alloc_shared = dst_vma->vm_flags & VM_SHARED;
183 int vm_shared = dst_vma->vm_flags & VM_SHARED;
60d4d2d2
MK
184 ssize_t err;
185 pte_t *dst_pte;
186 unsigned long src_addr, dst_addr;
187 long copied;
188 struct page *page;
189 struct hstate *h;
190 unsigned long vma_hpagesize;
191 pgoff_t idx;
192 u32 hash;
193 struct address_space *mapping;
194
195 /*
196 * There is no default zero huge page for all huge page sizes as
197 * supported by hugetlb. A PMD_SIZE huge pages may exist as used
198 * by THP. Since we can not reliably insert a zero page, this
199 * feature is not supported.
200 */
201 if (zeropage) {
202 up_read(&dst_mm->mmap_sem);
203 return -EINVAL;
204 }
205
206 src_addr = src_start;
207 dst_addr = dst_start;
208 copied = 0;
209 page = NULL;
210 vma_hpagesize = vma_kernel_pagesize(dst_vma);
211
212 /*
213 * Validate alignment based on huge page size
214 */
215 err = -EINVAL;
216 if (dst_start & (vma_hpagesize - 1) || len & (vma_hpagesize - 1))
217 goto out_unlock;
218
219retry:
220 /*
221 * On routine entry dst_vma is set. If we had to drop mmap_sem and
222 * retry, dst_vma will be set to NULL and we must lookup again.
223 */
224 if (!dst_vma) {
27d02568 225 err = -ENOENT;
60d4d2d2
MK
226 dst_vma = find_vma(dst_mm, dst_start);
227 if (!dst_vma || !is_vm_hugetlb_page(dst_vma))
228 goto out_unlock;
60d4d2d2 229 /*
29ec9066
AA
230 * Check the vma is registered in uffd, this is
231 * required to enforce the VM_MAYWRITE check done at
232 * uffd registration time.
60d4d2d2 233 */
27d02568
MR
234 if (!dst_vma->vm_userfaultfd_ctx.ctx)
235 goto out_unlock;
236
60d4d2d2
MK
237 if (dst_start < dst_vma->vm_start ||
238 dst_start + len > dst_vma->vm_end)
239 goto out_unlock;
1c9e8def 240
27d02568
MR
241 err = -EINVAL;
242 if (vma_hpagesize != vma_kernel_pagesize(dst_vma))
243 goto out_unlock;
244
1c9e8def 245 vm_shared = dst_vma->vm_flags & VM_SHARED;
60d4d2d2
MK
246 }
247
248 if (WARN_ON(dst_addr & (vma_hpagesize - 1) ||
249 (len - copied) & (vma_hpagesize - 1)))
250 goto out_unlock;
251
60d4d2d2 252 /*
1c9e8def 253 * If not shared, ensure the dst_vma has a anon_vma.
60d4d2d2
MK
254 */
255 err = -ENOMEM;
1c9e8def
MK
256 if (!vm_shared) {
257 if (unlikely(anon_vma_prepare(dst_vma)))
258 goto out_unlock;
259 }
60d4d2d2
MK
260
261 h = hstate_vma(dst_vma);
262
263 while (src_addr < src_start + len) {
264 pte_t dst_pteval;
265
266 BUG_ON(dst_addr >= dst_start + len);
267 VM_BUG_ON(dst_addr & ~huge_page_mask(h));
268
269 /*
b43a9990
MK
270 * Serialize via i_mmap_rwsem and hugetlb_fault_mutex.
271 * i_mmap_rwsem ensures the dst_pte remains valid even
272 * in the case of shared pmds. fault mutex prevents
273 * races with other faulting threads.
60d4d2d2 274 */
60d4d2d2 275 mapping = dst_vma->vm_file->f_mapping;
b43a9990
MK
276 i_mmap_lock_read(mapping);
277 idx = linear_page_index(dst_vma, dst_addr);
60d4d2d2
MK
278 hash = hugetlb_fault_mutex_hash(h, dst_mm, dst_vma, mapping,
279 idx, dst_addr);
280 mutex_lock(&hugetlb_fault_mutex_table[hash]);
281
282 err = -ENOMEM;
283 dst_pte = huge_pte_alloc(dst_mm, dst_addr, huge_page_size(h));
284 if (!dst_pte) {
285 mutex_unlock(&hugetlb_fault_mutex_table[hash]);
b43a9990 286 i_mmap_unlock_read(mapping);
60d4d2d2
MK
287 goto out_unlock;
288 }
289
290 err = -EEXIST;
291 dst_pteval = huge_ptep_get(dst_pte);
292 if (!huge_pte_none(dst_pteval)) {
293 mutex_unlock(&hugetlb_fault_mutex_table[hash]);
b43a9990 294 i_mmap_unlock_read(mapping);
60d4d2d2
MK
295 goto out_unlock;
296 }
297
298 err = hugetlb_mcopy_atomic_pte(dst_mm, dst_pte, dst_vma,
299 dst_addr, src_addr, &page);
300
301 mutex_unlock(&hugetlb_fault_mutex_table[hash]);
b43a9990 302 i_mmap_unlock_read(mapping);
1c9e8def 303 vm_alloc_shared = vm_shared;
60d4d2d2
MK
304
305 cond_resched();
306
9e368259 307 if (unlikely(err == -ENOENT)) {
60d4d2d2
MK
308 up_read(&dst_mm->mmap_sem);
309 BUG_ON(!page);
310
311 err = copy_huge_page_from_user(page,
312 (const void __user *)src_addr,
810a56b9 313 pages_per_huge_page(h), true);
60d4d2d2
MK
314 if (unlikely(err)) {
315 err = -EFAULT;
316 goto out;
317 }
318 down_read(&dst_mm->mmap_sem);
319
320 dst_vma = NULL;
321 goto retry;
322 } else
323 BUG_ON(page);
324
325 if (!err) {
326 dst_addr += vma_hpagesize;
327 src_addr += vma_hpagesize;
328 copied += vma_hpagesize;
329
330 if (fatal_signal_pending(current))
331 err = -EINTR;
332 }
333 if (err)
334 break;
335 }
336
337out_unlock:
338 up_read(&dst_mm->mmap_sem);
339out:
21205bf8
MK
340 if (page) {
341 /*
342 * We encountered an error and are about to free a newly
1c9e8def
MK
343 * allocated huge page.
344 *
345 * Reservation handling is very subtle, and is different for
346 * private and shared mappings. See the routine
347 * restore_reserve_on_error for details. Unfortunately, we
348 * can not call restore_reserve_on_error now as it would
349 * require holding mmap_sem.
350 *
351 * If a reservation for the page existed in the reservation
352 * map of a private mapping, the map was modified to indicate
353 * the reservation was consumed when the page was allocated.
354 * We clear the PagePrivate flag now so that the global
21205bf8
MK
355 * reserve count will not be incremented in free_huge_page.
356 * The reservation map will still indicate the reservation
357 * was consumed and possibly prevent later page allocation.
1c9e8def
MK
358 * This is better than leaking a global reservation. If no
359 * reservation existed, it is still safe to clear PagePrivate
360 * as no adjustments to reservation counts were made during
361 * allocation.
362 *
363 * The reservation map for shared mappings indicates which
364 * pages have reservations. When a huge page is allocated
365 * for an address with a reservation, no change is made to
366 * the reserve map. In this case PagePrivate will be set
367 * to indicate that the global reservation count should be
368 * incremented when the page is freed. This is the desired
369 * behavior. However, when a huge page is allocated for an
370 * address without a reservation a reservation entry is added
371 * to the reservation map, and PagePrivate will not be set.
372 * When the page is freed, the global reserve count will NOT
373 * be incremented and it will appear as though we have leaked
374 * reserved page. In this case, set PagePrivate so that the
375 * global reserve count will be incremented to match the
376 * reservation map entry which was created.
377 *
378 * Note that vm_alloc_shared is based on the flags of the vma
379 * for which the page was originally allocated. dst_vma could
380 * be different or NULL on error.
21205bf8 381 */
1c9e8def
MK
382 if (vm_alloc_shared)
383 SetPagePrivate(page);
384 else
385 ClearPagePrivate(page);
60d4d2d2 386 put_page(page);
21205bf8 387 }
60d4d2d2
MK
388 BUG_ON(copied < 0);
389 BUG_ON(err > 0);
390 BUG_ON(!copied && !err);
391 return copied ? copied : err;
392}
393#else /* !CONFIG_HUGETLB_PAGE */
394/* fail at build time if gcc attempts to use this */
395extern ssize_t __mcopy_atomic_hugetlb(struct mm_struct *dst_mm,
396 struct vm_area_struct *dst_vma,
397 unsigned long dst_start,
398 unsigned long src_start,
399 unsigned long len,
400 bool zeropage);
401#endif /* CONFIG_HUGETLB_PAGE */
402
3217d3c7
MR
403static __always_inline ssize_t mfill_atomic_pte(struct mm_struct *dst_mm,
404 pmd_t *dst_pmd,
405 struct vm_area_struct *dst_vma,
406 unsigned long dst_addr,
407 unsigned long src_addr,
408 struct page **page,
409 bool zeropage)
410{
411 ssize_t err;
412
5b51072e
AA
413 /*
414 * The normal page fault path for a shmem will invoke the
415 * fault, fill the hole in the file and COW it right away. The
416 * result generates plain anonymous memory. So when we are
417 * asked to fill an hole in a MAP_PRIVATE shmem mapping, we'll
418 * generate anonymous memory directly without actually filling
419 * the hole. For the MAP_PRIVATE case the robustness check
420 * only happens in the pagetable (to verify it's still none)
421 * and not in the radix tree.
422 */
423 if (!(dst_vma->vm_flags & VM_SHARED)) {
3217d3c7
MR
424 if (!zeropage)
425 err = mcopy_atomic_pte(dst_mm, dst_pmd, dst_vma,
426 dst_addr, src_addr, page);
427 else
428 err = mfill_zeropage_pte(dst_mm, dst_pmd,
429 dst_vma, dst_addr);
430 } else {
8fb44e54 431 if (!zeropage)
3217d3c7
MR
432 err = shmem_mcopy_atomic_pte(dst_mm, dst_pmd,
433 dst_vma, dst_addr,
434 src_addr, page);
8fb44e54
MR
435 else
436 err = shmem_mfill_zeropage_pte(dst_mm, dst_pmd,
437 dst_vma, dst_addr);
3217d3c7
MR
438 }
439
440 return err;
441}
442
c1a4de99
AA
443static __always_inline ssize_t __mcopy_atomic(struct mm_struct *dst_mm,
444 unsigned long dst_start,
445 unsigned long src_start,
446 unsigned long len,
df2cc96e
MR
447 bool zeropage,
448 bool *mmap_changing)
c1a4de99
AA
449{
450 struct vm_area_struct *dst_vma;
451 ssize_t err;
452 pmd_t *dst_pmd;
453 unsigned long src_addr, dst_addr;
b6ebaedb
AA
454 long copied;
455 struct page *page;
c1a4de99
AA
456
457 /*
458 * Sanitize the command parameters:
459 */
460 BUG_ON(dst_start & ~PAGE_MASK);
461 BUG_ON(len & ~PAGE_MASK);
462
463 /* Does the address range wrap, or is the span zero-sized? */
464 BUG_ON(src_start + len <= src_start);
465 BUG_ON(dst_start + len <= dst_start);
466
b6ebaedb
AA
467 src_addr = src_start;
468 dst_addr = dst_start;
469 copied = 0;
470 page = NULL;
471retry:
c1a4de99
AA
472 down_read(&dst_mm->mmap_sem);
473
df2cc96e
MR
474 /*
475 * If memory mappings are changing because of non-cooperative
476 * operation (e.g. mremap) running in parallel, bail out and
477 * request the user to retry later
478 */
479 err = -EAGAIN;
480 if (mmap_changing && READ_ONCE(*mmap_changing))
481 goto out_unlock;
482
c1a4de99
AA
483 /*
484 * Make sure the vma is not shared, that the dst range is
485 * both valid and fully within a single existing vma.
486 */
27d02568 487 err = -ENOENT;
c1a4de99 488 dst_vma = find_vma(dst_mm, dst_start);
26071ced
MR
489 if (!dst_vma)
490 goto out_unlock;
1c9e8def 491 /*
29ec9066
AA
492 * Check the vma is registered in uffd, this is required to
493 * enforce the VM_MAYWRITE check done at uffd registration
494 * time.
1c9e8def 495 */
27d02568 496 if (!dst_vma->vm_userfaultfd_ctx.ctx)
b6ebaedb 497 goto out_unlock;
1c9e8def 498
c1a4de99
AA
499 if (dst_start < dst_vma->vm_start ||
500 dst_start + len > dst_vma->vm_end)
b6ebaedb 501 goto out_unlock;
c1a4de99 502
27d02568
MR
503 err = -EINVAL;
504 /*
505 * shmem_zero_setup is invoked in mmap for MAP_ANONYMOUS|MAP_SHARED but
506 * it will overwrite vm_ops, so vma_is_anonymous must return false.
507 */
508 if (WARN_ON_ONCE(vma_is_anonymous(dst_vma) &&
509 dst_vma->vm_flags & VM_SHARED))
510 goto out_unlock;
511
60d4d2d2
MK
512 /*
513 * If this is a HUGETLB vma, pass off to appropriate routine
514 */
515 if (is_vm_hugetlb_page(dst_vma))
516 return __mcopy_atomic_hugetlb(dst_mm, dst_vma, dst_start,
517 src_start, len, zeropage);
518
26071ced 519 if (!vma_is_anonymous(dst_vma) && !vma_is_shmem(dst_vma))
b6ebaedb 520 goto out_unlock;
c1a4de99
AA
521
522 /*
523 * Ensure the dst_vma has a anon_vma or this page
524 * would get a NULL anon_vma when moved in the
525 * dst_vma.
526 */
527 err = -ENOMEM;
5b51072e
AA
528 if (!(dst_vma->vm_flags & VM_SHARED) &&
529 unlikely(anon_vma_prepare(dst_vma)))
b6ebaedb 530 goto out_unlock;
c1a4de99 531
b6ebaedb 532 while (src_addr < src_start + len) {
c1a4de99 533 pmd_t dst_pmdval;
b6ebaedb 534
c1a4de99 535 BUG_ON(dst_addr >= dst_start + len);
b6ebaedb 536
c1a4de99
AA
537 dst_pmd = mm_alloc_pmd(dst_mm, dst_addr);
538 if (unlikely(!dst_pmd)) {
539 err = -ENOMEM;
540 break;
541 }
542
543 dst_pmdval = pmd_read_atomic(dst_pmd);
544 /*
545 * If the dst_pmd is mapped as THP don't
546 * override it and just be strict.
547 */
548 if (unlikely(pmd_trans_huge(dst_pmdval))) {
549 err = -EEXIST;
550 break;
551 }
552 if (unlikely(pmd_none(dst_pmdval)) &&
4cf58924 553 unlikely(__pte_alloc(dst_mm, dst_pmd))) {
c1a4de99
AA
554 err = -ENOMEM;
555 break;
556 }
557 /* If an huge pmd materialized from under us fail */
558 if (unlikely(pmd_trans_huge(*dst_pmd))) {
559 err = -EFAULT;
560 break;
561 }
562
563 BUG_ON(pmd_none(*dst_pmd));
564 BUG_ON(pmd_trans_huge(*dst_pmd));
565
3217d3c7
MR
566 err = mfill_atomic_pte(dst_mm, dst_pmd, dst_vma, dst_addr,
567 src_addr, &page, zeropage);
c1a4de99
AA
568 cond_resched();
569
9e368259 570 if (unlikely(err == -ENOENT)) {
b6ebaedb
AA
571 void *page_kaddr;
572
573 up_read(&dst_mm->mmap_sem);
574 BUG_ON(!page);
575
576 page_kaddr = kmap(page);
577 err = copy_from_user(page_kaddr,
578 (const void __user *) src_addr,
579 PAGE_SIZE);
580 kunmap(page);
581 if (unlikely(err)) {
582 err = -EFAULT;
583 goto out;
584 }
585 goto retry;
586 } else
587 BUG_ON(page);
588
c1a4de99
AA
589 if (!err) {
590 dst_addr += PAGE_SIZE;
591 src_addr += PAGE_SIZE;
592 copied += PAGE_SIZE;
593
594 if (fatal_signal_pending(current))
595 err = -EINTR;
596 }
597 if (err)
598 break;
599 }
600
b6ebaedb 601out_unlock:
c1a4de99 602 up_read(&dst_mm->mmap_sem);
b6ebaedb
AA
603out:
604 if (page)
09cbfeaf 605 put_page(page);
c1a4de99
AA
606 BUG_ON(copied < 0);
607 BUG_ON(err > 0);
608 BUG_ON(!copied && !err);
609 return copied ? copied : err;
610}
611
612ssize_t mcopy_atomic(struct mm_struct *dst_mm, unsigned long dst_start,
df2cc96e
MR
613 unsigned long src_start, unsigned long len,
614 bool *mmap_changing)
c1a4de99 615{
df2cc96e
MR
616 return __mcopy_atomic(dst_mm, dst_start, src_start, len, false,
617 mmap_changing);
c1a4de99
AA
618}
619
620ssize_t mfill_zeropage(struct mm_struct *dst_mm, unsigned long start,
df2cc96e 621 unsigned long len, bool *mmap_changing)
c1a4de99 622{
df2cc96e 623 return __mcopy_atomic(dst_mm, start, 0, len, true, mmap_changing);
c1a4de99 624}