From owner-freebsd-current@FreeBSD.ORG Sun Feb 7 16:00:11 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0E041065785 for ; Sun, 7 Feb 2010 16:00:11 +0000 (UTC) (envelope-from brucec@muon.cran.org.uk) Received: from muon.cran.org.uk (unknown [IPv6:2001:470:1f09:679::1]) by mx1.freebsd.org (Postfix) with ESMTP id AB33F8FC0C for ; Sun, 7 Feb 2010 16:00:09 +0000 (UTC) Received: by muon.cran.org.uk (Postfix, from userid 1000) id C9C748BBF; Sun, 7 Feb 2010 16:00:32 +0000 (UTC) Date: Sun, 7 Feb 2010 16:00:32 +0000 From: Bruce Cran To: current@freebsd.org Message-ID: <20100207160031.GA27434@muon.cran.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: bzeeb+freebsd+lor@zabbadoz.net Subject: LOR: vfs_mount.c (ufs) / msdosfs_vfsops.c (devfs) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 16:00:12 -0000 Running -CURRENT from today, I unmounted the msdosfs filesystem on my phone and got the following LOR: lock order reversal: 1st 0xffffff00c51279f8 ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1204 2nd 0xffffff010b892278 devfs (devfs) @ /usr/src/sys/modules/msdosfs/../../fs/msdosfs/msdosfs_vfsops.c:944 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e __lockmgr_args() at __lockmgr_args+0xd11 vop_stdlock() at vop_stdlock+0x39 VOP_LOCK1_APV() VOP_LOCK1_APV+0x9b _vn_lock() at _vn_lock+0x47 msdosfs_sync() at msdosfs_sync+0x227 dounmount() at dounmount+0x2ca unmount() at unmount+0x216 syscall() at syscall+0x2a2 Xfast_syscall() at Xfast_syscall+0xe1 --- syscall (22, FreeBSD ELF64, unmount), rip = 0x8006a1e3c, rsp = 0x7fffffffe3a8, rbp = 0x800c08010 --- -- Bruce Cran