From owner-freebsd-bugs@freebsd.org Sun Dec 20 21:33:17 2015 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 22A49A4E37E for ; Sun, 20 Dec 2015 21:33:17 +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 1361A1374 for ; Sun, 20 Dec 2015 21:33:17 +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 tBKLXGhn016188 for ; Sun, 20 Dec 2015 21:33:16 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 205469] [panic] lock order reversal, userret: returning with the following locks held Date: Sun, 20 Dec 2015 21:33:17 +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: shawn@debnath.net X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- 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: 7bit 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: Sun, 20 Dec 2015 21:33:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205469 Bug ID: 205469 Summary: [panic] lock order reversal, userret: returning with the following locks held 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: shawn@debnath.net Ran into panic while trying to get the latest 11-current ISO to load in bhyve. ISO === FreeBSD-11.0-CURRENT-amd64-20151217-r292413-disc1.iso BHYVE CMDS ========== sudo bhyveload -m 8G -d ~sd/FreeBSD-11.0-CURRENT-amd64-20151217-r292413-disc1.iso -h /dev/zvol/zroot/albert -c /dev/nmdm0A albert sudo bhyve -c 8 -s 0:0,hostbridge -s 1:0,lpc -s 2:0,ahci-hd,/dev/zvol/zroot/albert -s 3:0,virtio-net,tap0 -s 4:0,ahci-cd,FreeBSD-11.0-CURRENT-amd64-20151217-r292413-disc1.iso -l com1,/dev/nmdm0A -A -H -P -m 8G albert DETAILS ======= Trying to mount root from cd9660:/dev/iso9660/11_0_CURRENT_AMD64_CD [ro]... lock order reversal: 1st 0xfffffe01efa22e40 bufwait (bufwait) @ /usr/src/sys/vm/vm_pager.c:380 2nd 0xfffff800098405f0 isofs (isofs) @ /usr/src/sys/kern/imgact_elf.c:877 stack backtrace: #0 0xffffffff80a80560 at witness_debugger+0x70 #1 0xffffffff80a80461 at witness_checkorder+0xe71 #2 0xffffffff80a01e6b at __lockmgr_args+0xd3b #3 0xffffffff80ac845c at vop_stdlock+0x3c #4 0xffffffff80fbb260 at VOP_LOCK1_APV+0x100 #5 0xffffffff80ae93aa at _vn_lock+0x9a #6 0xffffffff809c1f20 at exec_elf64_imgact+0xa50 #7 0xffffffff809e526d at kern_execve+0x42d #8 0xffffffff809e4aec at sys_execve+0x4c #9 0xffffffff809c891a at start_init+0x26a #10 0xffffffff809ec8a4 at fork_exit+0x84 #11 0xffffffff80e4fbae at fork_trampoline+0xe userret: returning with the following locks held: exclusive lockmgr bufwait (bufwait) r = 0 (0xfffffe01efa22c10) locked @ /usr/src/sys/vm/vm_pager.c:380 exclusive lockmgr bufwait (bufwait) r = 0 (0xfffffe01efa22e40) locked @ /usr/src/sys/vm/vm_pager.c:380 panic: witness_warn BOOT LOG ======== /boot/kernel/kernel text=0x13a80d8 data=0x1343e0+0x4d8ab8 syms=[0x8+0x15c180+0x8+0x173e0c] Booting... GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #0 r292413: Fri Dec 18 01:11:55 UTC 2015 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) 20150906 WARNING: WITNESS option enabled, expect reduced performance. VT(vga): resolution 640x480 CPU: Intel(R) Xeon(R) CPU X5670 @ 2.93GHz (2933.07-MHz K8-class CPU) Origin="GenuineIntel" Id=0x206c2 Family=0x6 Model=0x2c Stepping=2 Features=0x9f83fbff Features2=0x829e6217 AMD Features=0x24100800 AMD Features2=0x1 TSC: P-state invariant Hypervisor: Origin = "bhyve bhyve " real memory = 9663676416 (9216 MB) avail memory = 8249942016 (7867 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs FreeBSD/SMP: 8 package(s) x 1 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 6 cpu7 (AP): APIC ID: 7 ioapic0 irqs 0-23 on motherboard random: entropy device external interface kbd1 at kbdmux0 netmap: loaded module module_register_init: MOD_LOAD (vesa, 0xffffffff80ee1f10, 0) error 19 vtvga0: on motherboard cryptosoft0: on motherboard acpi0: on motherboard acpi0: Power Button (fixed) atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 10000000 Hz quality 950 Event timer "HPET" frequency 10000000 Hz quality 550 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 ahci0: mem 0xc0000000-0xc00003ff irq 16 at device 2.0 on pci0 ahci0: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 virtio_pci0: port 0x2000-0x201f mem 0xc0002000-0xc0003fff irq 17 at device 3.0 on pci0 vtnet0: on virtio_pci0 vtnet0: Ethernet address: 00:a0:98:95:a2:c5 001.000048 [ 421] vtnet_netmap_attach max rings 1 vtnet0: netmap queues/slots: TX 1/1024, RX 1/1024 001.000049 [ 426] vtnet_netmap_attach virtio attached txq=1, txd=1024 rxq=1, rxd=1024 ahci1: mem 0xc0004000-0xc00043ff irq 18 at device 4.0 on pci0 ahci1: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported ahcich6: at channel 0 on ahci1 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: console (9600,n,8,1) uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 qpi0: on motherboard vga0: at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] ppc0: cannot reserve I/O port range Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. cd0 at ahcich6 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI device cd0: Serial Number BHYVE-E5BA-7EDF-596F cd0: 600.000MB/s transfers (SATA 3.x, UDMA6, ATAPI 12bytes, PIO 8192bytes) cd0: 808MB (413788 2048 byte sectors) ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-2 ATA SATA 3.x device ada0: Serial Number BHYVE-0DD8-8ED8-A4CE ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 32768MB (67108864 512 byte sectors) SMP: AP CPU #3 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #1 Launched! SMP: AP CPU #7 Launched! SMP: AP CPU #4 Launched! SMP: AP CPU #5 Launched! SMP: AP CPU #6 Launched! WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from cd9660:/dev/iso9660/11_0_CURRENT_AMD64_CD [ro]... lock order reversal: 1st 0xfffffe01efa22e40 bufwait (bufwait) @ /usr/src/sys/vm/vm_pager.c:380 2nd 0xfffff800098405f0 isofs (isofs) @ /usr/src/sys/kern/imgact_elf.c:877 stack backtrace: #0 0xffffffff80a80560 at witness_debugger+0x70 #1 0xffffffff80a80461 at witness_checkorder+0xe71 #2 0xffffffff80a01e6b at __lockmgr_args+0xd3b #3 0xffffffff80ac845c at vop_stdlock+0x3c #4 0xffffffff80fbb260 at VOP_LOCK1_APV+0x100 #5 0xffffffff80ae93aa at _vn_lock+0x9a #6 0xffffffff809c1f20 at exec_elf64_imgact+0xa50 #7 0xffffffff809e526d at kern_execve+0x42d #8 0xffffffff809e4aec at sys_execve+0x4c #9 0xffffffff809c891a at start_init+0x26a #10 0xffffffff809ec8a4 at fork_exit+0x84 #11 0xffffffff80e4fbae at fork_trampoline+0xe userret: returning with the following locks held: exclusive lockmgr bufwait (bufwait) r = 0 (0xfffffe01efa22c10) locked @ /usr/src/sys/vm/vm_pager.c:380 exclusive lockmgr bufwait (bufwait) r = 0 (0xfffffe01efa22e40) locked @ /usr/src/sys/vm/vm_pager.c:380 panic: witness_warn cpuid = 7 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe022f27d7f0 vpanic() at vpanic+0x182/frame 0xfffffe022f27d870 kassert_panic() at kassert_panic+0x126/frame 0xfffffe022f27d8e0 witness_warn() at witness_warn+0x3c6/frame 0xfffffe022f27d9b0 userret() at userret+0x98/frame 0xfffffe022f27d9e0 trap() at trap+0x3f4/frame 0xfffffe022f27dbf0 calltrap() at calltrap+0x8/frame 0xfffffe022f27dbf0 --- trap 0xc, rip = 0x4001c4, rsp = 0x7fffffffed80, rbp = 0x7fffffffedb0 --- KDB: enter: panic [ thread pid 1 tid 100002 ] Stopped at kdb_enter+0x3b: movq $0,kdb_why db> -- You are receiving this mail because: You are the assignee for the bug.