From owner-freebsd-stable@freebsd.org Sat Nov 25 05:45:10 2017 Return-Path: Delivered-To: freebsd-stable@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 E8A1ADB93EF for ; Sat, 25 Nov 2017 05:45:10 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by mx1.freebsd.org (Postfix) with ESMTP id 7CB9375C73 for ; Sat, 25 Nov 2017 05:45:09 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp121-45-11-215.bras1.adl4.internode.on.net (HELO leader.local) ([121.45.11.215]) by ipmail07.adl2.internode.on.net with ESMTP; 25 Nov 2017 16:15:08 +1030 To: FreeBSD stable From: Shane Ambler Subject: backtrace from lock violation - 11-STABLE Message-ID: <069ed024-d5a7-d409-ecf1-b1e68f4a859a@ShaneWare.Biz> Date: Sat, 25 Nov 2017 16:15:06 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 05:45:11 -0000 # uname -a FreeBSD leader.local 11.1-STABLE FreeBSD 11.1-STABLE #0 r325311: Fri Nov 3 03:31:50 ACDT 2017 root@leader.local:/usr/obj/usr/src/sys/GENERIC amd64 mounting a nullfs mount point causes a lock violation when running a debug kernel (enabling witness, invariants etc) After starting the system with the debug kernel I logged in as root and ran `mount_nullfs /var/crash /home/shane/test/crash` to get the following - Full core.txt at http://shaneware.biz/freebsddebugdata/core.txt-2017-11-25-13-19 http://shaneware.biz/freebsddebugdata/dmesg.boot Unread portion of the kernel message buffer: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0468cf4560 assert_vop_locked() at assert_vop_locked+0x77/frame 0xfffffe0468cf4590 VOP_UNLOCK_APV() at VOP_UNLOCK_APV+0xad/frame 0xfffffe0468cf45c0 nullfs_mount() at nullfs_mount+0x25f/frame 0xfffffe0468cf4700 vfs_donmount() at vfs_donmount+0xf6d/frame 0xfffffe0468cf4940 sys_nmount() at sys_nmount+0x72/frame 0xfffffe0468cf4980 amd64_syscall() at amd64_syscall+0x7a8/frame 0xfffffe0468cf4ab0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0468cf4ab0 --- syscall (378, FreeBSD ELF64, sys_nmount), rip = 0x80086de6a, rsp = 0x7fffffffe048, rbp = 0x7fffffffe990 --- vnode 0xfffff80209c00000: tag nullfs, type VNON usecount 1, writecount 0, refcount 1 mountedhere 0 flags (VI_ACTIVE) lock type nullfs: UNLOCKED vp=0xfffff80209c00000, lowervp=0xfffff80059f81c30 VOP_UNLOCK: 0xfffff80209c00000 is not locked but should be KDB: enter: lock violation panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/fs/nullfs/null_vnops.c:720 cpuid = 1 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0468cf4400 vpanic() at vpanic+0x186/frame 0xfffffe0468cf4480 kassert_panic() at kassert_panic+0x126/frame 0xfffffe0468cf44f0 __mtx_lock_flags() at __mtx_lock_flags+0x158/frame 0xfffffe0468cf4540 null_unlock() at null_unlock+0x5d/frame 0xfffffe0468cf4590 VOP_UNLOCK_APV() at VOP_UNLOCK_APV+0xe8/frame 0xfffffe0468cf45c0 nullfs_mount() at nullfs_mount+0x25f/frame 0xfffffe0468cf4700 vfs_donmount() at vfs_donmount+0xf6d/frame 0xfffffe0468cf4940 sys_nmount() at sys_nmount+0x72/frame 0xfffffe0468cf4980 amd64_syscall() at amd64_syscall+0x7a8/frame 0xfffffe0468cf4ab0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0468cf4ab0 --- syscall (378, FreeBSD ELF64, sys_nmount), rip = 0x80086de6a, rsp = 0x7fffffffe048, rbp = 0x7fffffffe990 --- KDB: enter: panic Uptime: 9m25s Dumping 1053 out of 16295 MB:..2%..11%..22%..31%..41%..51%..61%..72%..81%..92% -- FreeBSD - the place to B...Spinning Destruction ;) Shane Ambler