Date: Fri, 22 Aug 2014 16:24:47 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 192923] Lock order reversal in vfs_bio.c bufwait Message-ID: <bug-192923-8-aaCGfHuU4H@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-192923-8@https.bugs.freebsd.org/bugzilla/> References: <bug-192923-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192923 --- Comment #1 from Kate <kate@elide.org> --- 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x408e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE> AMD Features=0x20100000<NX,LM> AMD Features2=0x1<LAHF> TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 2834522112 (2703 MB) kbd0 at kbdmux0 random: <Software, Yarrow> initialized pcib0 pcibus 0 on motherboard pci0: <PCI bus> on pcib0 pci0: <memory, RAM> at device 0.1 (no driver attached) isab0: <PCI-ISA bridge> port 0x2000-0x20ff at device 3.0 on pci0 isa0: <ISA bus> on isab0 pci0: <memory, RAM> at device 3.1 (no driver attached) pci0: <memory, RAM> at device 3.3 (no driver attached) pci0: <memory, RAM> at device 3.4 (no driver attached) pci0: <processor> at device 3.5 (no driver attached) ohci0: <nVidia nForce MCP79 USB Controller> mem 0xd3388000-0xd3388fff irq 11 at device 4.0 on pci0 usbus0 on ohci0 ehci0: <NVIDIA nForce MCP79 USB 2.0 controller> mem 0xd3389200-0xd33892ff irq 10 at device 4.1 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 ohci1: <nVidia nForce MCP79 USB Controller> mem 0xd3387000-0xd3387fff irq 7 at device 6.0 on pci0 usbus2 on ohci1 ehci1: <NVIDIA nForce MCP79 USB 2.0 controller> mem 0xd3389100-0xd33891ff irq 5 at device 6.1 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci1 hdac0: <NVIDIA MCP79 HDA Controller> mem 0xd3380000-0xd3383fff irq 15 at device 8.0 on pci0 pcib1: <PCI-PCI bridge> at device 9.0 on pci0 pci1: <PCI bus> on pcib1 nfe0: <NVIDIA nForce MCP79 Networking Adapter> port 0x21e0-0x21e7 mem 0xd3386000-0xd3386fff,0xd3389000-0xd33890ff,0xd3389300-0xd338930f irq 14 at device 10.0 on pci0 miibus0: <MII bus> on nfe0 rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> 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: <NVIDIA MCP79 AHCI SATA controller> 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<NOAA> ahcich0: <AHCI channel> at channel 0 on ahci0 ahcich1: <AHCI channel> at channel 1 on ahci0 pcib2: <PCI-PCI bridge> at device 16.0 on pci0 pci2: <PCI bus> on pcib2 vgapci0: <VGA-compatible display> port 0x1000-0x107f mem 0xd2000000-0xd2ffffff,0xc0000000-0xcfffffff,0xd0000000-0xd1ffffff irq 11 at device 0.0 on pci2 nvidia0: <GeForce 9400M> on vgapci0 vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io vgapci0: Boot video device pcib3: <PCI-PCI bridge> at device 21.0 on pci0 pci3: <PCI bus> on pcib3 pci3: <network> at device 0.0 (no driver attached) cpu0 on motherboard coretemp0: <CPU On-Die Thermal Sensors> on cpu0 est0: <Enhanced SpeedStep Frequency Control> 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 timer> 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: <ISA Option ROM> at iomem 0xc0000-0xce7ff pnpid ORM0000 on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ata0: <ATA channel> at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1: <ATA channel> at port 0x170-0x177,0x376 irq 15 on isa0 atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0 Event timer "RTC" frequency 32768 Hz quality 0 ppc0: parallel port not found. est0: <Enhanced SpeedStep Frequency Control> 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: <Cirrus Logic CS4206 HDA CODEC> at cad 0 on hdac0 hdaa0: <Cirrus Logic CS4206 Audio Function Group> at nid 1 on hdacc0 pcm0: <Cirrus Logic CS4206 (Internal Analog 3.1/2.0)> at nid 11,10 and 13 on hdaa0 pcm1: <Cirrus Logic CS4206 (Rear Analog Headphones)> at nid 9 on hdaa0 pcm2: <Cirrus Logic CS4206 (Rear Digital)> 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: <nVidia> at usbus0 uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen3.1: <nVidia> at usbus3 uhub1: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3 ugen2.1: <nVidia> at usbus2 uhub2: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2 ugen1.1: <nVidia> at usbus1 uhub3: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <Samsung SSD 840 EVO 500GB EXT0BB6Q> 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: <MATSHITA DVD-R UJ-898 HD09> 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: <Apple Inc.> at usbus2 uhub4: <Apple Inc. BRCM2070 Hub, class 9/0, rev 2.00/1.00, addr 2> on usbus2 ugen3.2: <vendor 0x0bda> at usbus3 ugen1.2: <Apple Inc.> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192923-8-aaCGfHuU4H>