]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/fork.c
ipv4: Don't recompute net in ipmr_queue_xmit
[karo-tx-linux.git] / kernel / fork.c
index 03aa2e6de7a4e90696c003792641d2c3a150cd02..7d5f0f118a6348f81f08f10dd7dbb499f89dd243 100644 (file)
@@ -454,8 +454,9 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
                tmp->vm_mm = mm;
                if (anon_vma_fork(tmp, mpnt))
                        goto fail_nomem_anon_vma_fork;
-               tmp->vm_flags &= ~VM_LOCKED;
+               tmp->vm_flags &= ~(VM_LOCKED|VM_UFFD_MISSING|VM_UFFD_WP);
                tmp->vm_next = tmp->vm_prev = NULL;
+               tmp->vm_userfaultfd_ctx = NULL_VM_UFFD_CTX;
                file = tmp->vm_file;
                if (file) {
                        struct inode *inode = file_inode(file);