From owner-freebsd-current@FreeBSD.ORG Mon Feb 17 22:32:57 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 96353DCD for ; Mon, 17 Feb 2014 22:32:57 +0000 (UTC) Received: from btw.pki2.com (btw.pki2.com [IPv6:2001:470:a:6fd::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2B9BD190C for ; Mon, 17 Feb 2014 22:32:57 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by btw.pki2.com (8.14.8/8.14.8) with ESMTP id s1HMWiD1089892 for ; Mon, 17 Feb 2014 14:32:45 -0800 (PST) (envelope-from freebsd@penx.com) Subject: LOR r262009 From: Dennis Glatting To: freebsd-current@freebsd.org Content-Type: text/plain; charset="us-ascii" Date: Mon, 17 Feb 2014 14:32:44 -0800 Message-ID: <1392676364.45152.12.camel@btw.pki2.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-SoftwareMunitions-MailScanner-Information: Dennis Glatting X-SoftwareMunitions-MailScanner-ID: s1HMWiD1089892 X-SoftwareMunitions-MailScanner: Found to be clean X-MailScanner-From: freebsd@penx.com X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 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: Mon, 17 Feb 2014 22:32:57 -0000 Decided to try clang 3.4 under CURRENT and got a LOR under ESXi: Feb 17 14:13:10 Head kernel: lock order reversal: Feb 17 14:13:10 Head kernel: 1st 0xfffffe00f6868548 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3081 Feb 17 14:13:10 Head kernel: 2nd 0xfffff800035d3c00 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:284 Feb 17 14:13:10 Head kernel: KDB: stack backtrace: Feb 17 14:13:10 Head kernel: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00f67ea2d0 Feb 17 14:13:10 Head kernel: kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe00f67ea380 Feb 17 14:13:10 Head kernel: witness_checkorder() at witness_checkorder +0xdc2/frame 0xfffffe00f67ea410 Feb 17 14:13:10 Head kernel: _sx_xlock() at _sx_xlock+0x75/frame 0xfffffe00f67ea450 Feb 17 14:13:10 Head kernel: ufsdirhash_add() at ufsdirhash_add +0x3a/frame 0xfffffe00f67ea490 Feb 17 14:13:10 Head kernel: ufs_direnter() at ufs_direnter+0x5e8/frame 0xfffffe00f67ea550 Feb 17 14:13:10 Head kernel: ufs_mkdir() at ufs_mkdir+0x89c/frame 0xfffffe00f67ea740 Feb 17 14:13:10 Head kernel: VOP_MKDIR_APV() at VOP_MKDIR_APV+0xf7/frame 0xfffffe00f67ea770 Feb 17 14:13:10 Head kernel: kern_mkdirat() at kern_mkdirat+0x209/frame 0xfffffe00f67ea9a0 Feb 17 14:13:10 Head kernel: amd64_syscall() at amd64_syscall +0x25a/frame 0xfffffe00f67eaab0 Feb 17 14:13:10 Head kernel: Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe00f67eaab0 Feb 17 14:13:10 Head kernel: --- syscall (136, FreeBSD ELF64, sys_mkdir), rip = 0x801d3220a, rsp = 0x7fffffffce08, rbp = 0x7fffffffce20 --- root@Head:/usr/share/sendmail/cf # uname -a FreeBSD Head 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r262009: Mon Feb 17 12:53:11 PST 2014 root@Head:/usr/obj/usr/src/sys/GENERIC amd64 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 r262009: Mon Feb 17 12:53:11 PST 2014 root@Head:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216 WARNING: WITNESS option enabled, expect reduced performance. CPU: AMD FX(tm)-8150 Eight-Core Processor (3616.16-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x600f12 Family=0x15 Model=0x1 Stepping=2 Features=0x1783fbff Features2=0x9e982203 AMD Features=0x2a500800 AMD Features2=0x10be9 TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 4100911104 (3910 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 4 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 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard random: initialized kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "HPET" frequency 14318180 Hz quality 950 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x10c0-0x10cf at device 7.1 on pci0 ata0: at channel 0 on atapci0 ata1: at channel 1 on atapci0 pci0: at device 7.3 (no driver attached) pci0: at device 7.7 (no driver attached) vgapci0: port 0x10d0-0x10df mem 0xd8000000-0xdbffffff,0xd0800000-0xd0ffffff irq 16 at device 15.0 on pci0 vgapci0: Boot video device pcib2: at device 17.0 on pci0 pci2: on pcib2 pcib3: at device 21.0 on pci0 pci3: on pcib3 mpt0: port 0x4000-0x40ff mem 0xd2410000-0xd2413fff,0xd2400000-0xd240ffff irq 18 at device 0.0 on pci3 mpt0: MPI Version=1.5.0.0 pcib4: at device 21.1 on pci0 pci4: on pcib4 pcib5: at device 21.2 on pci0 pci5: on pcib5 pcib6: at device 21.3 on pci0 pci6: on pcib6 pcib7: at device 21.4 on pci0 pci7: on pcib7 pcib8: at device 21.5 on pci0 pci8: on pcib8 pcib9: at device 21.6 on pci0 pci9: on pcib9 pcib10: at device 21.7 on pci0 pci10: on pcib10 pcib11: at device 22.0 on pci0 pci11: on pcib11 vmx0: port 0x5000-0x500f mem 0xd2504000-0xd2504fff,0xd2503000-0xd2503fff,0xd2500000-0xd2501fff irq 19 at device 0.0 on pci11 vmx0: Ethernet address: 00:0c:29:b1:e6:22 pcib12: at device 22.1 on pci0 pci12: on pcib12 pcib13: at device 22.2 on pci0 pci13: on pcib13 pcib14: at device 22.3 on pci0 pci14: on pcib14 pcib15: at device 22.4 on pci0 pci15: on pcib15 pcib16: at device 22.5 on pci0 pci16: on pcib16 pcib17: at device 22.6 on pci0 pci17: on pcib17 pcib18: at device 22.7 on pci0 pci18: on pcib18 pcib19: at device 23.0 on pci0 pci19: on pcib19 pcib20: at device 23.1 on pci0 pci20: on pcib20 pcib21: at device 23.2 on pci0 pci21: on pcib21 pcib22: at device 23.3 on pci0 pci22: on pcib22 pcib23: at device 23.4 on pci0 pci23: on pcib23 pcib24: at device 23.5 on pci0 pci24: on pcib24 pcib25: at device 23.6 on pci0 pci25: on pcib25 pcib26: at device 23.7 on pci0 pci26: on pcib26 pcib27: at device 24.0 on pci0 pci27: on pcib27 pcib28: at device 24.1 on pci0 pci28: on pcib28 pcib29: at device 24.2 on pci0 pci29: on pcib29 pcib30: at device 24.3 on pci0 pci30: on pcib30 pcib31: at device 24.4 on pci0 pci31: on pcib31 pcib32: at device 24.5 on pci0 pci32: on pcib32 pcib33: at device 24.6 on pci0 pci33: on pcib33 pcib34: at device 24.7 on pci0 pci34: on pcib34 acpi_acad0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 orm0: at iomem 0xc0000-0xc7fff,0xca000-0xcafff,0xdc000-0xdffff,0xe0000-0xe7fff 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 acpi_throttle0: on cpu0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 acpi_throttle2: on cpu2 acpi_throttle2: failed to attach P_CNT device_attach: acpi_throttle2 attach returned 6 acpi_throttle3: on cpu3 acpi_throttle3: failed to attach P_CNT device_attach: acpi_throttle3 attach returned 6 Timecounters tick every 10.000 msec random: unblocking device. da0 at mpt0 bus 0 scbus2 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 300.000MB/s transfers da0: Command Queueing enabled da0: 16384MB (33554432 512 byte sectors: 255H 63S/T 2088C) da1 at mpt0 bus 0 scbus2 target 1 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 300.000MB/s transfers da1: Command Queueing enabled da1: 8192MB (16777216 512 byte sectors: 255H 63S/T 1044C) cd0 at ata1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: Serial Number 10000000000000000001 cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present Netvsc initializing... done! SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #2 Launched! WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/da0p2 [rw]... lock order reversal: 1st 0xfffffe00f6868548 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3081 2nd 0xfffff800035d3c00 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:284 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00f67ea2d0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe00f67ea380 witness_checkorder() at witness_checkorder+0xdc2/frame 0xfffffe00f67ea410 _sx_xlock() at _sx_xlock+0x75/frame 0xfffffe00f67ea450 ufsdirhash_add() at ufsdirhash_add+0x3a/frame 0xfffffe00f67ea490 ufs_direnter() at ufs_direnter+0x5e8/frame 0xfffffe00f67ea550 ufs_mkdir() at ufs_mkdir+0x89c/frame 0xfffffe00f67ea740 VOP_MKDIR_APV() at VOP_MKDIR_APV+0xf7/frame 0xfffffe00f67ea770 kern_mkdirat() at kern_mkdirat+0x209/frame 0xfffffe00f67ea9a0 amd64_syscall() at amd64_syscall+0x25a/frame 0xfffffe00f67eaab0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe00f67eaab0 --- syscall (136, FreeBSD ELF64, sys_mkdir), rip = 0x801d3220a, rsp = 0x7fffffffce08, rbp = 0x7fffffffce20 ---