From owner-freebsd-fs@freebsd.org Fri Dec 8 22:39:50 2017 Return-Path: Delivered-To: freebsd-fs@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 50394E91046 for ; Fri, 8 Dec 2017 22:39:50 +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 3F1086785B for ; Fri, 8 Dec 2017 22:39:50 +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 vB8MdoGw026689 for ; Fri, 8 Dec 2017 22:39:50 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-fs@FreeBSD.org Subject: [Bug 224176] Lock Order Reversals somewhere in VFS/UFS Date: Fri, 08 Dec 2017 22:39:50 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lankfordandrew@charter.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-fs@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-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2017 22:39:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224176 --- Comment #2 from lankfordandrew@charter.net --- Some more after a reboot. I'm probably getting one or several right at shutdown , but I'm unsure if I can capture them. [70] lock order reversal: [70] 1st 0xfffffe007b886f80 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3550 [70] 2nd 0xfffff80002aa9400 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:281 [70] stack backtrace: [70] #0 0xffffffff80580bf0 at witness_debugger+0x70 [70] #1 0xffffffff80580a72 at witness_checkorder+0xe02 [70] #2 0xffffffff80527908 at _sx_xlock+0x68 [70] #3 0xffffffff807d75b7 at ufsdirhash_remove+0x37 [70] #4 0xffffffff807da779 at ufs_dirremove+0x129 [70] #5 0xffffffff807dfe95 at ufs_remove+0x75 [70] #6 0xffffffff808b60e0 at VOP_REMOVE_APV+0xe0 [70] #7 0xffffffff805ee708 at kern_unlinkat+0x1e8 [70] #8 0xffffffff8083fd08 at amd64_syscall+0x798 [70] #9 0xffffffff8081ea6b at Xfast_syscall+0xfb [218] lock order reversal: [218] 1st 0xfffff800638f89a0 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2537 [218] 2nd 0xfffffe007b900a60 bufwait (bufwait) @ /usr/src/sys/ufs/ffs/ffs_vnops.c:277 [218] 3rd 0xfffff800638f87c8 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2537 [218] stack backtrace: [218] #0 0xffffffff80580bf0 at witness_debugger+0x70 [218] #1 0xffffffff80580a72 at witness_checkorder+0xe02 [218] #2 0xffffffff804fcd83 at __lockmgr_args+0x883 [218] #3 0xffffffff807d1ea5 at ffs_lock+0xa5 [218] #4 0xffffffff808b6f30 at VOP_LOCK1_APV+0xe0 [218] #5 0xffffffff805f4546 at _vn_lock+0x66 [218] #6 0xffffffff805e4dc2 at vget+0x82 [218] #7 0xffffffff805d6fb1 at vfs_hash_get+0xd1 [218] #8 0xffffffff807cdb4e at ffs_vgetf+0x3e [218] #9 0xffffffff807c3da9 at softdep_sync_buf+0x7d9 [218] #10 0xffffffff807d2dc1 at ffs_syncvnode+0x321 [218] #11 0xffffffff807c2dc7 at softdep_fsync+0x4b7 [218] #12 0xffffffff807d1d7c at ffs_fsync+0x7c [218] #13 0xffffffff808b5f80 at VOP_FSYNC_APV+0xe0 [218] #14 0xffffffff805f112c at kern_fsync+0x1bc [218] #15 0xffffffff8083fd08 at amd64_syscall+0x798 [218] #16 0xffffffff8081ea6b at Xfast_syscall+0xfb --=20 You are receiving this mail because: You are the assignee for the bug.=