From owner-freebsd-bugs@freebsd.org Wed Feb 24 18:38:13 2016 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 5A61AAB3482 for ; Wed, 24 Feb 2016 18:38:13 +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 4A5481489 for ; Wed, 24 Feb 2016 18:38:13 +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 u1OIcDPt009055 for ; Wed, 24 Feb 2016 18:38:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207464] Panic when destroying ZFS snapshot on boot filesystem Date: Wed, 24 Feb 2016 18:38:13 +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: 10.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dustinwenz@ebureau.com 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc 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.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2016 18:38:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207464 Bug ID: 207464 Summary: Panic when destroying ZFS snapshot on boot filesystem Product: Base System Version: 10.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: dustinwenz@ebureau.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org FreeBSD 10.3-PRERELEASE #13 r295115M: Mon Feb 1 13:08:30 CST 2016 When destroying a ZFS snapshot of the boot filesystem, the system panicked = with the message: vputx: negative ref cnt KDB stack backtrace: vputx: negative ref count 0xfffff801d7ab7b10: tag zfs, type VDIR usecount 0, writecount 0, refcount 0 mountedhere 0 flags (VI_FREE) VI_LOCKed lock type zfs: EXCL by thread 0xfffff80448797960 (pid 7211, z= fs, tid 101642) panic: vputx: negative ref cnt cpuid =3D 13 KDB: stack backtrace: #0 0xffffffff8098f7f0 at kdb_backtrace+0x60 #1 0xffffffff80952896 at vpanic+0x126 #2 0xffffffff80952763 at panic+0x43 #3 0xffffffff809f94e5 at vputx+0x2d5 #4 0xffffffff809f2a99 at dounmount+0x689 #5 0xffffffff81a851d4 at zfs_unmount_snap+0x114 #6 0xffffffff81a884f1 at zfs_ioc_destroy_snaps+0xc1 #7 0xffffffff81a86f54 at zfsdev_ioctl+0x664 #8 0xffffffff80837469 at devfs_ioctl_f+0x139 #9 0xffffffff809aa085 at kern_ioctl+0x255 #10 0xffffffff809a9d80 at sys_ioctl+0x140 #11 0xffffffff80d68aff at amd64_syscall+0x40f #12 0xffffffff80d4dd7b at Xfast_syscall+0xfb Uptime: 4h4m41s (kgdb) bt #0 __curthread () at ./machine/pcpu.h:219 #1 doadump (textdump=3D) at /usr/src/sys/kern/kern_shutdown= .c:298 #2 0xffffffff809524f2 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:486 #3 0xffffffff809528d5 in vpanic (fmt=3D, ap=3D) at /usr/src/sys/kern/kern_shutdown.c:889 #4 0xffffffff80952763 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:818 #5 0xffffffff809f94e5 in vputx (vp=3D0xfffff801d7ab7b10, func=3D) at /usr/src/sys/kern/vfs_subr.c:2510 #6 0xffffffff809f2a99 in dounmount (mp=3D0xfffff80142dc4660, flags=3D, td=3D) at /usr/src/sys/kern/vfs_mount.c:1359 #7 0xffffffff81a851d4 in zfs_unmount_snap (snapname=3D) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/z= fs_ioctl.c:3485 #8 0xffffffff81a884f1 in zfs_ioc_destroy_snaps (poolname=3D0xfffffe00170f8= 000 "zroot", innvl=3D, outnvl=3D0xfffff804488297a0) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/z= fs_ioctl.c:3558 #9 0xffffffff81a86f54 in zfsdev_ioctl (dev=3D, zcmd=3D, arg=3D, flag=3D, td=3D) = at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/z= fs_ioctl.c:6278 #10 0xffffffff80837469 in devfs_ioctl_f (fp=3D0xfffff8001ff5b8c0, com=3D322= 2821411, data=3D0xfffffe085e28b8e0, cred=3D, td=3D0xfffff80448797960)= at /usr/src/sys/fs/devfs/devfs_vnops.c:786 #11 0xffffffff809aa085 in fo_ioctl (fp=3D, com=3D, data=3D, active_cred=3D, td=3D, fp=3D, com=3D, data=3D, active_cred=3D, td=3D) at /usr/src/sys/sys/fi= le.h:321 #12 kern_ioctl (td=3D0xfffff80448797960, fd=3D, com=3D) at /usr/src/sys/kern/sys_generic.c:809 #13 0xffffffff809a9d80 in sys_ioctl (td=3D0xfffff80448797960, uap=3D0xfffffe085e28ba40) at /usr/src/sys/kern/sys_generic.c:718 #14 0xffffffff80d68aff in syscallenter (td=3D, sa=3D, td=3D, sa=3D) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:141 #15 amd64_syscall (td=3D0xfffff80448797960, traced=3D0) at /usr/src/sys/amd64/amd64/trap.c:959 #16 #17 0x0000000801a05f1a in ?? () Backtrace stopped: Cannot access memory at address 0x7fffffffc8c8 --=20 You are receiving this mail because: You are the assignee for the bug.=