diff --git a/mm/madvise.c b/mm/madvise.c index ab5ef141cc9b382f9d874f7e7e465db621e3f156..0012071a6e502e30001cff587ce0069a1d9d2342 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -520,6 +520,7 @@ static long madvise_remove(struct vm_area_struct *vma, * mmap_sem. */ get_file(f); + userfaultfd_remove(vma, prev, start, end); up_read(¤t->mm->mmap_sem); error = vfs_fallocate(f, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,