From owner-freebsd-bugs@freebsd.org Wed Aug 30 14:08:31 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01DE7E02D7E for ; Wed, 30 Aug 2017 14:08:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E49C46E858 for ; Wed, 30 Aug 2017 14:08:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7UE8Uen020800 for ; Wed, 30 Aug 2017 14:08:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 219935] Kernel panic in getnewvnode (possibly ZFS related) Date: Wed, 30 Aug 2017 14:08:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: raimo+freebsd@erix.ericsson.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2017 14:08:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219935 --- Comment #10 from Raimo Niskanen --- Lo and behold! With the following patch: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/kern/vfs_subr.c (revision 322570) +++ sys/kern/vfs_subr.c (working copy) @@ -2449,6 +2449,9 @@ vholdl(struct vnode *vp) ASSERT_VI_LOCKED(vp, "vholdl"); #endif vp->v_holdcnt++; + if (vp->v_holdcnt =3D=3D 1 && vp->v_type =3D=3D VBAD) + panic("vhold: reclaimed vnode"); + if ((vp->v_iflag & VI_FREE) =3D=3D 0) return; VNASSERT(vp->v_holdcnt =3D=3D 1, vp, ("vholdl: wrong hold count")); I got this panic: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sasquatch.otp.ericsson.se dumped core - see /var/crash/vmcore.3 Wed Aug 30 07:18:08 CEST 2017 FreeBSD sasquatch.otp.ericsson.se 10.3-RELEASE-p21 FreeBSD 10.3-RELEASE-p21= #0: Mon Aug 28 11:05:53 CEST 2017=20=20=20=20 root@sasquatch.otp.ericsson.se:/usr/obj/usr/src/sys/DEBUG amd64 panic: vhold: reclaimed vnode GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Unread portion of the kernel message buffer: panic: vhold: reclaimed vnode cpuid =3D 1 KDB: stack backtrace: #0 0xffffffff8098e810 at kdb_backtrace+0x60 #1 0xffffffff809514e6 at vpanic+0x126 #2 0xffffffff809513b3 at panic+0x43 #3 0xffffffff809f77e5 at vholdl+0x145 #4 0xffffffff809f0f40 at dounmount+0x60 #5 0xffffffff81a6dfe4 at zfs_unmount_snap+0x114 #6 0xffffffff81a10663 at dsl_dataset_user_release_impl+0x103 #7 0xffffffff81a10f2c at dsl_dataset_user_release_onexit+0x5c #8 0xffffffff81a79fb6 at zfs_onexit_destroy+0x56 #9 0xffffffff81a70072 at zfsdev_close+0x52 #10 0xffffffff80833e19 at devfs_fpdrop+0xa9 #11 0xffffffff80836585 at devfs_close_f+0x45 #12 0xffffffff80905fa9 at _fdrop+0x29 #13 0xffffffff8090884e at closef+0x21e #14 0xffffffff80906358 at closefp+0x98 #15 0xffffffff80d56e9f at amd64_syscall+0x40f #16 0xffffffff80d3c0fb at Xfast_syscall+0xfb Uptime: 1d19h20m50s --=20 You are receiving this mail because: You are the assignee for the bug.=