--- x/mm/vma.c +++ y/mm/vma.c @@ -458,6 +458,7 @@ static bool can_vma_merge_right(struct v void remove_vma(struct vm_area_struct *vma) { might_sleep(); + vma_start_write(vma); vma_close(vma); if (vma->vm_file) fput(vma->vm_file);