lock order reversel

From: Sven Esbjerg <esbjerg_at_xbsd.net>
Date: Mon, 12 May 2003 23:03:47 +0200
I just updated my machine to current this weekend. Today I built a new kernel
based on GERNERIC with on thing added:  device pcm
After a reboot I get a lock order reversal when starting X.
==
lock order reversal
 1st 0xc2916a18 vm object (vm object) _at_ vm/vm_object.c:512
 2nd 0xc082f110 system map (system map) _at_ vm/vm_kern.c:325
Stack backtrace:
backtrace(c0529f09,c082f110,c053b5b7,c053b5b7,c053b45f) at backtrace+0x17
witness_lock(c082f110,8,c053b45f,145,0) at witness_lock+0x697
_mtx_lock_flags(c082f110,0,c053b456,145,3) at _mtx_lock_flags+0xb1
_vm_map_lock(c082f0b0,c053b456,145,d2515ab8,c0344904) at _vm_map_lock+0x36
kmem_malloc(c082f0b0,1000,101,d2515b24,c0489140) at kmem_malloc+0x66
page_alloc(c083a240,1000,d2515b17,101,c0595dac) at page_alloc+0x27
slab_zalloc(c083a240,101,c053cdf4,66f,c083a924) at slab_zalloc+0x150
uma_zone_slab(c083a240,101,c053cdeb,66f,0) at uma_zone_slab+0xd8
uma_zalloc_internal(c083a240,0,101,6ef,0) at uma_zalloc_internal+0x55
uma_zfree_arg(c083a900,c292d000,0,d2515bcc,c0470f28) at uma_zfree_arg+0x2cb
dev_pager_putfake(c292d000,0,c053ac85,bc,c2916a18) at dev_pager_putfake+0x3a
dev_pager_dealloc(c2916a18,1,c053ccfa,10b,0) at dev_pager_dealloc+0xc8
vm_pager_deallocate(c2916a18,0,c053bee8,25e,c05e04e8) at
vm_pager_deallocate+0x3
d
vm_object_terminate(c2916a18,0,c053bee8,200,c28d77f8) at
vm_object_terminate+0x1
f4
vm_object_deallocate(c2916a18,c28d77f8,c2916a18,c28d77f8,d2515c9c) at
vm_object_
deallocate+0x217
vm_map_entry_delete(c0ed3400,c28d77f8,c053b625,86e,c0525945) at
vm_map_entry_del
ete+0x3b
vm_map_delete(c0ed3400,282d4000,282d5000,1000,282d4000) at
vm_map_delete+0x453
vm_map_remove(c0ed3400,282d4000,282d5000,0,c29127e8) at vm_map_remove+0x58
munmap(c2816000,d2515d10,c0540dcc,3fb,2) at munmap+0x9e
syscall(2f,2f,2f,f8000,1000) at syscall+0x26e
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (73), eip = 0x28245153, esp = 0xbfbff97c, ebp = 0xbfbff9a8 ---

It starts just before the Matrox mga modules is loaded.

Also note from the dmesg that something wicked is happening with the USB
controller. This 'port error' started after I upgraded from RELEASE to
current. However my usb-mouse keeps working.

Regards
Sven Esbjerg

dmesg:
Copyright (c) 1992-2003 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.1-BETA #1: Mon May 12 21:23:56 CEST 2003
    root_at_enzo.home.xbsd.net:/usr/src/sys/i386/compile/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0746000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc07461f4.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 467730823 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (467.73-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x665  Stepping = 5
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 268369920 (255 MB)
avail memory = 252833792 (241 MB)
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AWARD  AWRDACPI> on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00fdca0
acpi_bus_number: root bus has no _BBN, assuming 0
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-safe"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port
0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 82C691 (Apollo Pro) host to PCI bridge> mem 0xe0000000-0xe3ffffff
at device 0.0 on pci0
pcib1: <PCIBIOS PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C596B UDMA66 controller> port 0xa000-0xa00f at device 2.1 on
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xa400-0xa41f irq 10 at device 2.2 on
pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub0: port error, restarting port 1
uhub0: port error, giving up port 1
uhub0: port error, restarting port 2
uhub0: port error, giving up port 2
ums0: Logitech USB Mouse, rev 1.10/6.10, addr 2, iclass 3/1
ums0: 4 buttons and Z dir.
pci0: <bridge, HOST-PCI> at device 2.3 (no driver attached)
fxp0: <Intel 82557/8/9 EtherExpress Pro/100(B) Ethernet> port 0xa800-0xa81f
mem 0xec000000-0xec0fffff,0xec200000-0xec200fff irq 12 at device 13.0 on pci0
fxp0: Ethernet address 00:08:c7:39:8e:f0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
adv0: <AdvanSys ASC3030/50 SCSI controller> port 0xac00-0xacff mem
0xec201000-0xec2010ff irq 5 at device 14.0 on pci0
adv0: AdvanSys SCSI Host Adapter, SCSI ID 7, queue depth 16
pci0: <multimedia> at device 15.0 (no driver attached)
pcm0: <ESS Solo-1E> port
0xc000-0xc003,0xbc00-0xbc03,0xb800-0xb80f,0xb400-0xb40f,0xb000-0xb03f irq 5
at device 16.0 on pci0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port
0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: IEEE1284 device found /NIBBLE
Probing for PnP devices on ppbus0:
ppbus0: <Hewlett-Packard HP LaserJet 5L/0101.03> HP ENHANCED PCL5,PJL
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <Option ROMs> at iomem
0xcd000-0xd0fff,0xcc000-0xcc7ff,0xc8000-0xc9fff,0xc0000-0xc7fff 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
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
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
ad0: 76319MB <ST380023A> [155061/16/63] at ata0-master UDMA66
acd0: DVD-ROM <CREATIVE DVD-ROM DVD6240E> at ata1-master PIO4
Waiting 15 seconds for SCSI devices to settle
Mounting root from ufs:/dev/ad0s3a
cd0 at adv0 bus 0 target 4 lun 0
cd0: <PLEXTOR CD-R   PX-W1210S 1.00> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present -
tray closed
lock order reversal
 1st 0xc2916a18 vm object (vm object) _at_ vm/vm_object.c:512
 2nd 0xc082f110 system map (system map) _at_ vm/vm_kern.c:325
Stack backtrace:
drm0: <Matrox G400/G450 (AGP)> mem
0xe5000000-0xe57fffff,0xe4000000-0xe4003fff,0xe8000000-0xe9ffffff irq 11 at
device 0.0 on pci1
info: [drm] AGP at 0xe0000000 64MB
info: [drm] Initialized mga 3.1.0 20021029 on minor 0



-- 
 Fight Internet Censorship! http://www.eff.org
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Mon May 12 2003 - 12:04:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:07 UTC