--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: kfreebsd-9: lock order reversal (bufwait vs dirhash) in ufs_direnter
- From: Jonathan Nieder <jrnieder@gmail.com>
- Date: Fri, 17 Jun 2011 05:12:48 -0500
- Message-id: <20110617101247.GC24485@elie>
Package: kfreebsd-image-9.0-0-amd64
Version: 9.0~svn223109-0.1
Severity: minor
Justification: cosmetic
Hi,
Typical experimental kfreebsd-amd64 system. At bootup, I get this
scary message, with no other noticeable symptoms.
| lock order reversal:
| 1st 0xffffff803d300018 bufwait (bufwait) @ kern/vfs_bio.c:2658
| 2nd 0xfffffe000257e800 dirhash (dirhash) @ ufs/ufs/ufs_dirhash.c:284
| KDB: stack backtrace:
| db_trace_self_wrapper() at db_trace_self_wrapper+0x27
| kdb_backtrace() at kdb_backtrace+0x36
| _witness_debugger() at _witness_debugger+0x33
| _sx_xlock() at _sx_xlock+0x51
| ufsdirhash_acquire() at ufsdirhash_acquire+0x32
| ufsdirhash_add() at ufsdirhash_add+0x1f
| ufs_direnter() at ufs_direnter+0x6b5
| ufs_makeinode() at ufs_makeinode+0x2be
| VOP_CREATE_APV() at VOP_CREATE_APV+0x65
| vn_open_cred() at vn_open_cred+0x567
| kern_openat() at kern_openat+0x16d
| syscallenter() at syscallenter+0x1a4
| syscall() at syscall+0x3d
| Xfast_syscall() at Xfast_syscall+0xdd
| --- syscall (5, FreeBSD ELF64, open), rip = 0x800df1ec7, rsp = 0x7fffffffc9c8, rbp = 0x7fffffffcae0 ---
dmesg attached. I don't mind it, but thought you might like to know.
Copyright (c) 1992-2011 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.
#0 Thu Jun 16 10:52:07 CEST 2011 amd64
WARNING: WITNESS option enabled, expect reduced performance.
module ufs already present!
CPU: QEMU Virtual CPU version 0.14.1 (2294.33-MHz K8-class CPU)
Origin = "AuthenticAMD" Id = 0x623 Family = 6 Model = 2 Stepping = 3
Features=0x78bfbfd<FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
Features2=0x80802001<SSE3,CX16,POPCNT,HV>
AMD Features=0x20100800<SYSCALL,NX,LM>
AMD Features2=0x61<LAHF,ABM,SSE4A>
real memory = 1073729536 (1023 MB)
avail memory = 1010483200 (963 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <BOCHS BXPCAPIC>
ioapic0: Changing APIC ID to 1
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <BOCHS BXPCRSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci_link4: Unable to route IRQs: AE_NOT_FOUND
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc000-0xc00f at device 1.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <bridge> at device 1.3 (no driver attached)
vgapci0: <VGA-compatible display> mem 0xf0000000-0xf1ffffff,0xf2000000-0xf2000fff at device 2.0 on pci0
ed0: <RealTek 8029> port 0xc100-0xc1ff irq 11 at device 3.0 on pci0
ed0: ed_stop_hw RST never set
ed0: Ethernet address: 52:54:00:12:34:56
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 100000000 Hz quality 950
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> flags 0x100 irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
orm0: <ISA Option ROM> at iomem 0xcb800-0xdb7ff 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
attimer0: <AT timer> at port 0x40 on isa0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounters tick every 1.000 msec
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <QEMU QEMU DVD-ROM 0.14> Removable CD-ROM SCSI-0 device
cd0: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <QEMU HARDDISK 0.14.1> ATA-7 device
ada0: 16.700MB/s transfers (WDMA2, PIO 8192bytes)
ada0: 5120MB (10485760 512 byte sectors: 16H 63S/T 10402C)
ada0: Previously was known as ad0
xpt_action_default: CCB type 0xe not supported
Timecounter "TSC" frequency 2294329221 Hz quality 800
WARNING: WITNESS option enabled, expect reduced performance.
xpt_action_default: CCB type 0xe not supported
Trying to mount root from ufs:/dev/ad0s1 [rw]...
WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD.
WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD.
lock order reversal:
1st 0xffffff803d300018 bufwait (bufwait) @ kern/vfs_bio.c:2658
2nd 0xfffffe000257e800 dirhash (dirhash) @ ufs/ufs/ufs_dirhash.c:284
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x27
kdb_backtrace() at kdb_backtrace+0x36
_witness_debugger() at _witness_debugger+0x33
_sx_xlock() at _sx_xlock+0x51
ufsdirhash_acquire() at ufsdirhash_acquire+0x32
ufsdirhash_add() at ufsdirhash_add+0x1f
ufs_direnter() at ufs_direnter+0x6b5
ufs_makeinode() at ufs_makeinode+0x2be
VOP_CREATE_APV() at VOP_CREATE_APV+0x65
vn_open_cred() at vn_open_cred+0x567
kern_openat() at kern_openat+0x16d
syscallenter() at syscallenter+0x1a4
syscall() at syscall+0x3d
Xfast_syscall() at Xfast_syscall+0xdd
--- syscall (5, FreeBSD ELF64, open), rip = 0x800df1ec7, rsp = 0x7fffffffc9c8, rbp = 0x7fffffffcae0 ---
--- End Message ---