(changed 'CC: - Michael Rapoport <RAPOPORT@xxxxxxxxxx>, - Dr. David Alan Gilbert@v2.random, <dgilbert@xxxxxxxxxx>, + Dr. David Alan Gilbert <dgilbert@xxxxxxxxxx>, - Pavel Emelyanov <xemul@xxxxxxxxxxxxx>@v2.random + Pavel Emelyanov <xemul@xxxxxxxxxxxxx> ) On Thu, Nov 03, 2016 at 03:41:15PM +0800, Hillf Danton wrote: > On Thursday, November 03, 2016 3:34 AM Andrea Arcangeli wrote: > > @@ -576,7 +581,8 @@ SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, > > goto out; > > } > > > > - ret = move_vma(vma, addr, old_len, new_len, new_addr, &locked); > > + ret = move_vma(vma, addr, old_len, new_len, new_addr, > > + &locked, &uf); > > } > > out: > > if (offset_in_page(ret)) { > > @@ -586,5 +592,6 @@ SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, > > up_write(¤t->mm->mmap_sem); > > if (locked && new_len > old_len) > > mm_populate(new_addr + old_len, new_len - old_len); > > + mremap_userfaultfd_complete(uf, addr, new_addr, old_len); > > nit: s/uf/&uf/ Thanks, will fix. > > > return ret; > > } > > > -- Sincerely yours, Mike. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>