Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2002 14:08:52 -0500 (EST)
From:      Herb McNew <herb@massdestruction.net>
To:        current@FreeBSD.ORG
Subject:   lock order reversal
Message-ID:  <20021222140447.M61973-100000@weaponsof.massdestruction.net>

next in thread | raw e-mail | index | archive | help
Hi all,

In a cursory search of the mailing list archives I didn't find this LOR
reported.  I apologize if it's a repeat.

lock order reversal
 1st 0xc0b9e800 pcm0:play:0 (pcm channel) @ /usr/src/sys/dev/sound/pcm/dsp.c:150
 2nd 0xc051ebe0 Giant (Giant) @ /usr/src/sys/kern/kern_synch.c:314

dmesg output (NEC VersaVX):

Copyright (c) 1992-2002 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 5.0-RC1 #0: Sat Dec  7 22:16:29 GMT 2002
    root@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc06b1000.
Preloaded elf module "/boot/kernel/vesa.ko" at 0xc06b10a8.
Preloaded elf module "/boot/kernel/linux.ko" at 0xc06b1154.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc06b1200.
Preloaded elf module "/boot/kernel/snd_ich.ko" at 0xc06b12ac.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 498273583 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (498.27-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x681  Stepping = 1
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 134152192 (127 MB)
avail memory = 123129856 (117 MB)
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
VESA: v2.0, 4096k memory, flags:0x0, mode table:0xc066eca2 (1000022)
VESA: ATI MACH64
npx0: <math processor> on motherboard
npx0: INT 16 interface
Using $PIR table, 5 entries at 0xc00f6030
pcib0: <Intel 82443MX host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcm0: <Intel 443MX> port 0xef00-0xef3f,0xe000-0xe0ff irq 10 at device 0.1 on pci0
pci0: <old, non-VGA display device> at device 0.2 (no driver attached)
cbb0: <TI1225 PCI-CardBus Bridge> at device 3.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pci_cfgintr: 0:3 INTA routed to irq 5
cbb1: <TI1225 PCI-CardBus Bridge> at device 3.1 on pci0
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pci_cfgintr: 0:3 INTB routed to irq 5
pci0: <display, VGA> at device 5.0 (no driver attached)
pci0: <simple comms> at device 6.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82443MX USB controller> port 0xef80-0xef9f irq 9 at device 7.2 on pci0
usb0: <Intel 82443MX USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
orm0: <Option ROM> at iomem 0xc0000-0xcefff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0320> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <AUI0200> can't assign resources (irq)
Timecounters tick every 10.000 msec
wi0: <WaveLAN/IEEE> at port 0x100-0x13f irq 5 function 0 config 1 on pccard0
wi0: 802.11 address: 00:60:1d:21:52:d7
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station 8.10.01
ata0-slave: ATA identify retries exceeded
ad0: DMA limited to UDMA33, non-ATA66 cable or device
ad0: 5729MB <TOSHIBA MK6014MAP> [12416/15/63] at ata0-master UDMA33
Mounting root from ufs:/dev/ad0s2a
/usr/src/sys/kern/kern_synch.c:152: sleeping with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:150
lock order reversal
 1st 0xc0b9e800 pcm0:play:0 (pcm channel) @ /usr/src/sys/dev/sound/pcm/dsp.c:150
 2nd 0xc051ebe0 Giant (Giant) @ /usr/src/sys/kern/kern_synch.c:314
/usr/src/sys/kern/kern_synch.c:152: sleeping with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:150
/usr/src/sys/kern/kern_synch.c:152: sleeping with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:150
/usr/src/sys/kern/kern_synch.c:152: sleeping with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:150
/usr/src/sys/kern/kern_synch.c:152: sleeping with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:150
/usr/src/sys/kern/kern_synch.c:152: sleeping with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:150

Herb McNew
========================================
Let He who taketh the Plunge Remember to return it by Tuesday.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021222140447.M61973-100000>