From owner-freebsd-bugs@FreeBSD.ORG Fri Aug 22 16:24:47 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 92BABD66 for ; Fri, 22 Aug 2014 16:24:47 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 78F063620 for ; Fri, 22 Aug 2014 16:24:47 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s7MGOlcO013740 for ; Fri, 22 Aug 2014 16:24:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 192923] Lock order reversal in vfs_bio.c bufwait Date: Fri, 22 Aug 2014 16:24:47 +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.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kate@elide.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2014 16:24:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192923 --- Comment #1 from Kate --- Full dmesg up to the LOR: Copyright (c) 1992-2014 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 r270176: Tue Aug 19 20:48:51 BST 2014 root@iona:/usr/obj/usr/src/sys/GENERIC i386 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 WARNING: WITNESS option enabled, expect reduced performance. CPU: Intel(R) Core(TM)2 Duo CPU P7550 @ 2.26GHz (2255.39-MHz 686-class CPU) Origin="GenuineIntel" Id=0x1067a Family=0x6 Model=0x17 Stepping=10 Features=0xbfebfbff Features2=0x408e3bd AMD Features=0x20100000 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 2834522112 (2703 MB) kbd0 at kbdmux0 random: initialized pcib0 pcibus 0 on motherboard pci0: on pcib0 pci0: at device 0.1 (no driver attached) isab0: port 0x2000-0x20ff at device 3.0 on pci0 isa0: on isab0 pci0: at device 3.1 (no driver attached) pci0: at device 3.3 (no driver attached) pci0: at device 3.4 (no driver attached) pci0: at device 3.5 (no driver attached) ohci0: mem 0xd3388000-0xd3388fff irq 11 at device 4.0 on pci0 usbus0 on ohci0 ehci0: mem 0xd3389200-0xd33892ff irq 10 at device 4.1 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 ohci1: mem 0xd3387000-0xd3387fff irq 7 at device 6.0 on pci0 usbus2 on ohci1 ehci1: mem 0xd3389100-0xd33891ff irq 5 at device 6.1 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci1 hdac0: mem 0xd3380000-0xd3383fff irq 15 at device 8.0 on pci0 pcib1: at device 9.0 on pci0 pci1: on pcib1 nfe0: port 0x21e0-0x21e7 mem 0xd3386000-0xd3386fff,0xd3389000-0xd33890ff,0xd3389300-0xd338930f irq 14 at device 10.0 on pci0 miibus0: on nfe0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow nfe0: Ethernet address: 34:15:9e:31:63:da ahci0: port 0x21d8-0x21df,0x21ec-0x21ef,0x21d0-0x21d7,0x21e8-0x21eb,0x21c0-0x21cf mem 0xd3384000-0xd3385fff irq 11 at device 11.0 on pci0 ahci0: AHCI v1.20 with 6 3Gbps ports, Port Multiplier supported ahci0: quirks=0x200 ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 pcib2: at device 16.0 on pci0 pci2: on pcib2 vgapci0: port 0x1000-0x107f mem 0xd2000000-0xd2ffffff,0xc0000000-0xcfffffff,0xd0000000-0xd1ffffff irq 11 at device 0.0 on pci2 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io vgapci0: Boot video device pcib3: at device 21.0 on pci0 pci3: on pcib3 pci3: at device 0.0 (no driver attached) cpu0 on motherboard coretemp0: on cpu0 est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 617482306004823 device_attach: est0 attach returned 6 pmtimer0 on isa0 attimer0: at port 0x40-0x5f irq 0 pnpid PNP0100 on isa0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 orm0: at iomem 0xc0000-0xce7ff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ata0: at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1: at port 0x170-0x177,0x376 irq 15 on isa0 atrtc0: at port 0x70 irq 8 on isa0 Event timer "RTC" frequency 32768 Hz quality 0 ppc0: parallel port not found. est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 617482306004823 device_attach: est0 attach returned 6 Timecounters tick every 1.000 msec hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 11,10 and 13 on hdaa0 pcm1: at nid 9 on hdaa0 pcm2: at nid 16 on hdaa0 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen3.1: at usbus3 uhub1: on usbus3 ugen2.1: at usbus2 uhub2: on usbus2 ugen1.1: at usbus1 uhub3: on usbus1 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-9 SATA 3.x device ada0: Serial Number S1DHNSBF638894T ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) ada0: quirks=0x1<4K> ada0: Previously was known as ad4 cd0 at ahcich1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: Serial Number UK25 112X5M cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray open random: unblocking device. Timecounter "TSC-low" frequency 1127694745 Hz quality 1000 WARNING: WITNESS option enabled, expect reduced performance. Root mount waiting for: usbus3 usbus2 usbus1 usbus0 uhub2: 5 ports with 5 removable, self powered uhub0: 7 ports with 7 removable, self powered Root mount waiting for: usbus3 usbus1 uhub1: 5 ports with 5 removable, self powered Root mount waiting for: usbus3 usbus1 uhub3: 7 ports with 7 removable, self powered Root mount waiting for: usbus3 usbus1 ugen2.2: at usbus2 uhub4: on usbus2 ugen3.2: at usbus3 ugen1.2: at usbus1 uhub4: 3 ports with 0 removable, self powered Trying to mount root from ufs:/dev/ada0s1a [rw]... lock order reversal: 1st 0xc8b317f8 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2137 2nd 0xe3d87fd8 bufwait (bufwait) @ /usr/src/sys/ufs/ffs/ffs_vnops.c:262 3rd 0xc8f9c6dc ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2137 KDB: stack backtrace: db_trace_self_wrapper(c118ebb4,a,ed2412a0,c0af79e0,c8cf22f8,...) at db_trace_self_wrapper+0x2d/frame 0xed241260 kdb_backtrace(c119281a,c8f9c6dc,c1179712,c85a3a20,c119be80,...) at kdb_backtrace+0x30/frame 0xed2412c4 witness_checkorder(c8f9c6dc,9,c119be80,859,c8f9c6fc,...) at witness_checkorder+0xd04/frame 0xed241310 __lockmgr_args(c8f9c6dc,80100,c8f9c6fc,0,0,...) at __lockmgr_args+0x8f3/frame 0xed2413f0 ffs_lock(ed241470,c1198f69,c859c110,c85a1b40,c859c110,...) at ffs_lock+0x87/frame 0xed24142c VOP_LOCK1_APV(c1425f7c,ed241470,234,3f7,c143b768,...) at VOP_LOCK1_APV+0x10a/frame 0xed241458 _vn_lock(c8f9c6a8,80100,c119be80,859,c119b0bd,...) at _vn_lock+0xa6/frame 0xed241498 vget(c8f9c6a8,80100,c8d08c40,57,0,...) at vget+0x74/frame 0xed2414d0 vfs_hash_get(c8d38d20,71e3d5,80000,c8d08c40,ed2415d0,...) at vfs_hash_get+0xfc/frame 0xed2414fc ffs_vgetf(c8d38d20,71e3d5,80000,ed2415d0,1,...) at ffs_vgetf+0x44/frame 0xed241558 softdep_sync_buf(c8b317c4,e3d87f80,1,0,0,...) at softdep_sync_buf+0xac7/frame 0xed2415e8 ffs_syncvnode(c8b317c4,1,0,c1400390,0,...) at ffs_syncvnode+0x2dd/frame 0xed241640 ffs_truncate(c8b317c4,200,0,880,c8702d80,...) at ffs_truncate+0x6eb/frame 0xed2417f0 ufs_direnter(c8b317c4,c8f9c6a8,ed2418b8,ed241bcc,0,...) at ufs_direnter+0x79e/frame 0xed241870 ufs_makeinode(ed241bb8,ed241bcc) at ufs_makeinode+0x534/frame 0xed2419f0 ufs_create(ed241ad8,669,c8d38d30,2,c8d38d74,...) at ufs_create+0x2f/frame 0xed241a04 VOP_CREATE_APV(c1425f7c,ed241ad8,ed241bcc,ed241a68,c0af79e0,...) at VOP_CREATE_APV+0xfe/frame 0xed241a30 vn_open_cred(ed241b70,ed241bfc,1a4,0,c8702d80,c8d5f738) at vn_open_cred+0x2f0/frame 0xed241b00 vn_open(ed241b70,ed241bfc,1a4,c8d5f738,2882a610,...) at vn_open+0x3d/frame 0xed241b28 kern_openat(c8d08c40,ffffff9c,2882a610,0,601,1b6) at kern_openat+0x310/frame 0xed241c1c sys_open(c8d08c40,ed241cc8,c134fe9a,e8,5,...) at sys_open+0x39/frame 0xed241c40 syscall(ed241d08) at syscall+0x30c/frame 0xed241cfc Xint0x80_syscall() at Xint0x80_syscall+0x21/frame 0xed241cfc --- syscall (5, FreeBSD ELF32, sys_open), eip = 0x28210923, esp = 0xbfbfddf4, ebp = 0xbfbfdea8 --- -- You are receiving this mail because: You are the assignee for the bug.