lock order reversal - in many places

Christoph Kukulies kuku at physik.rwth-aachen.de
Mon Aug 11 02:52:48 PDT 2003


I get this often now with 5.1-current on my
Dell Inspiron 8000 notebook but I tend to believe it's not
notebook related:

This seemed to occur when the nvidia.ko module is loaded:


Aug 11 11:15:58 kukubook kernel: nvidia0: <GeForce2 Go> mem 0xe0000000-0xe7ffffff,0xfc000000-0xfcffffff irq 11 at device 0.0 on pci1
Aug 11 11:16:02 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:02 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:02 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:02 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:02 kukubook kernel: malloc() of "4096" with the following non-sleepable locks held:
Aug 11 11:16:02 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:03 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:03 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:03 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:03 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:03 kukubook kernel: malloc() of "4096" with the following non-sleepable locks held:
Aug 11 11:16:03 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "4096" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "VM OBJECT" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "DP fakepg" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex ctl.mtx_api r = 0 (0xc2c1e18c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "4096" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "32768" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex dev.mtx_api r = 0 (0xc2a6818c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:04 kukubook kernel: malloc() of "DP fakepg" with the following non-sleepable locks held:
Aug 11 11:16:04 kukubook kernel: exclusive sleep mutex ctl.mtx_api r = 0 (0xc2c1e18c) locked @ /home/home/kuku/NVIDIA-FreeBSD-x86-1.0-4365/src/nvidia_subr.c:753
Aug 11 11:16:52 kukubook kernel: lock order reversal
Aug 11 11:16:52 kukubook kernel: 1st 0xc2a80afc vm object (vm object) @ vm/vm_object.c:434
Aug 11 11:16:52 kukubook kernel: 2nd 0xc082f110 system map (system map) @ vm/vm_kern.c:327
Aug 11 11:16:52 kukubook kernel: Stack backtrace:

lock order reversal
 1st 0xc2a80afc vm object (vm object) @ vm/vm_object.c:434
 2nd 0xc082f110 system map (system map) @ vm/vm_kern.c:327
Stack backtrace:
backtrace(c0530ff9,c082f110,c0543779,c0543779,c0543621) at backtrace+0x17
witness_lock(c082f110,8,c0543621,147,d24c2adc) at witness_lock+0x672
_mtx_lock_flags(c082f110,0,c0543618,147,3) at _mtx_lock_flags+0xba
_vm_map_lock(c082f0b0,c0543618,147,2b3,c05f9e00) at _vm_map_lock+0x36
kmem_malloc(c082f0b0,1000,101,d24c2b14,c048ef42) at kmem_malloc+0x3a
page_alloc(c083a1c0,1000,d24c2b07,101,c05f38b8) at page_alloc+0x27
slab_zalloc(c083a1c0,101,c0544f0c,682,c083a714) at slab_zalloc+0xc2
uma_zone_slab(c083a1c0,101,c0544f03,682,0) at uma_zone_slab+0xe8
uma_zalloc_internal(c083a1c0,0,101,706,0) at uma_zalloc_internal+0x4f
uma_zfree_arg(c083a700,c2cb8a68,0,d24c2bc0,c04768e8) at uma_zfree_arg+0x2c2
dev_pager_putfake(c2cb8a68,0,c0542d2d,bd,c2a80afc) at dev_pager_putfake+0x39
dev_pager_dealloc(c2a80afc,1,c0544ebc,104,0) at dev_pager_dealloc+0xc8
vm_pager_deallocate(c2a80afc,0,c05440aa,261,2a800000) at vm_pager_deallocate+0x3
d
vm_object_terminate(c2a80afc,0,c05440aa,1b2,c2a00618) at vm_object_terminate+0x1
f3
vm_object_deallocate(c2a80afc,c2d1bd5c,c2a80afc,c2d1bd5c,d24c2c9c) at vm_object_
deallocate+0x371


The stack backtrace can have happened some time later when I ran X11
and unplugged the PS/2 mouse or even later when I CTRL-BS'ed X11.


--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de


More information about the freebsd-hackers mailing list