From owner-freebsd-bugs@freebsd.org Tue Jun 21 10:56:26 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 EAB2FAC42BA for ; Tue, 21 Jun 2016 10:56:26 +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 C0CE52FBB for ; Tue, 21 Jun 2016 10:56:26 +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 u5LAuQH0026027 for ; Tue, 21 Jun 2016 10:56:26 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210430] Lock order reversal zfs_vfsops.c - when switching to snapshots directory Date: Tue, 21 Jun 2016 10:56:26 +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: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tm+freebsd@core.io 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 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.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2016 10:56:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210430 Bug ID: 210430 Summary: Lock order reversal zfs_vfsops.c - when switching to snapshots directory Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: tm+freebsd@core.io When switching to an ZFS snapshots folder I receive a lock order reversal. = For example if /usr/src is a zfs dataset and snapshots exists: $ cd /usr/src/.zfs/snapshot $ ls -->8-- lock order reversal: 1st 0xfffff80005fcad50 zfs (zfs) @ /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c:1784 2nd 0xfffff80005fcb068 zfs_gfs (zfs_gfs) @ /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c:1621 stack backtrace: #0 0xffffffff80aa7550 at witness_debugger+0x70 #1 0xffffffff80aa7444 at witness_checkorder+0xe54 #2 0xffffffff80a20902 at __lockmgr_args+0x4c2 #3 0xffffffff80af6efc at vop_stdlock+0x3c #4 0xffffffff81014f21 at VOP_LOCK1_APV+0xe1 #5 0xffffffff80b17dda at _vn_lock+0x9a #6 0xffffffff8221f47b at zfs_lookup+0x51b #7 0xffffffff8221f7f1 at zfs_freebsd_lookup+0x91 #8 0xffffffff810126bb at VOP_CACHEDLOOKUP_APV+0xdb #9 0xffffffff80af3b36 at vfs_cache_lookup+0xd6 #10 0xffffffff8101255b at VOP_LOOKUP_APV+0xdb #11 0xffffffff80afc842 at lookup+0x5a2 #12 0xffffffff80afbed2 at namei+0x5b2 #13 0xffffffff80b12668 at kern_statat+0xa8 #14 0xffffffff80b1259d at sys_stat+0x2d #15 0xffffffff80eb8b2b at amd64_syscall+0x2db #16 0xffffffff80e981fb at Xfast_syscall+0xfb --8<-- --=20 You are receiving this mail because: You are the assignee for the bug.=