From owner-freebsd-bugs@freebsd.org Tue Nov 24 11:02:51 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 446854A1770 for ; Tue, 24 Nov 2020 11:02:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CgLhq1JQlz4ZZq for ; Tue, 24 Nov 2020 11:02:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2CCC84A176F; Tue, 24 Nov 2020 11:02:51 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2C91A4A1C61 for ; Tue, 24 Nov 2020 11:02:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CgLhq0kJbz4ZZp for ; Tue, 24 Nov 2020 11:02:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 027EB1DD57 for ; Tue, 24 Nov 2020 11:02:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AOB2o1w012756 for ; Tue, 24 Nov 2020 11:02:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0AOB2oFV012755 for bugs@FreeBSD.org; Tue, 24 Nov 2020 11:02:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251342] fs/unionfs: VOP_UNSET_TEXT without VOP_SET_TEXT Date: Tue, 24 Nov 2020 11:02:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mizhka@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2020 11:02:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251342 Bug ID: 251342 Summary: fs/unionfs: VOP_UNSET_TEXT without VOP_SET_TEXT Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: mizhka@gmail.com Hi, Here is kernel panic on unionfs.=20 During removal of vm map, kernel tries to unset text of vnode without previ= ous setting text of vnode. VNASSERT failed: error_ =3D=3D 0 not true at /usr/src/sys/vm/vm_map.c:601 (vm_map_entry_set_vnode_text) 0xfffff8000844e988: type VREG usecount 1, writecount 0, refcount 2 seqc users 0 hold count flags () flags (VIRF_PGREAD) v_object 0xfffff80008401528 ref 4 pages 6 cleanbuf 0 dirtybuf 0 lock type tmpfs: SHARED (count 1) tag VT_TMPFS, tmpfs_node 0xfffff800084549a0, flags 0x0, links 1 mode 0555, owner 0, group 0, size 20912, status 0x0 panic: VOP_UNSET_TEXT returned 22 time =3D 1606214918 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0015e71= 8d0 vpanic() at vpanic+0x182/frame 0xfffffe0015e71920 panic() at panic+0x43/frame 0xfffffe0015e71980 vm_map_entry_set_vnode_text() at vm_map_entry_set_vnode_text+0x267/frame 0xfffffe0015e719c0 vm_map_process_deferred() at vm_map_process_deferred+0x9e/frame 0xfffffe0015e719e0 vm_map_remove() at vm_map_remove+0xc9/frame 0xfffffe0015e71a10 vmspace_exit() at vmspace_exit+0xa9/frame 0xfffffe0015e71a40 exit1() at exit1+0x542/frame 0xfffffe0015e71ab0 sys_sys_exit() at sys_sys_exit+0xd/frame 0xfffffe0015e71ac0 amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe0015e71bf0 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0015e71bf0 --- syscall (1, FreeBSD ELF64, sys_sys_exit), rip =3D 0x800387aca, rsp =3D 0x7fffffffe578, rbp =3D 0x7fffffffe590 --- KDB: enter: panic [ thread pid 680 tid 100071 ] Stopped at kdb_enter+0x37: movq $0,0x10adc26(%rip) Test case to reproduce it in vm-bhyve: vm create unionfstest vm iso https://download.freebsd.org/ftp/snapshots/ISO-IMAGES/13.0/FreeBSD-13.0-CUR= RENT-amd64-20201119-f2ea0734875-bootonly.iso vm install unionfstest FreeBSD-13.0-CURRENT-amd64-20201119-f2ea0734875-bootonly.iso vm console unionfstest Inside VM (plz choose live cd or shell): mkdir /tmp/var mount -t unionfs -o below /var /tmp/var cd /tmp/var cp /bin/date /tmp/var /tmp/var/date --=20 You are receiving this mail because: You are the assignee for the bug.=