Re: panic: lock (uidinfo hash) rw does not match earlier (sleep mutex) lock

From: David Wolfskill <david_at_catwhisker.org>
Date: Mon, 17 Mar 2008 09:05:57 -0700
Oops -- I should have included the output from "show witness," I think:

db> show witness
Sleep locks:
0 kernel linker -- last acquired _at_ /usr/src/sys/kern/kern_linker.c:687
3  UMA zone -- last acquired _at_ /usr/src/sys/vm/uma_core.c:1830
0 module subsystem sx lock -- last acquired _at_ /usr/src/sys/kern/kern_module.c:143
3  UMA zone -- (already displayed)
1  system map -- last acquired _at_ /usr/src/sys/vm/vm_kern.c:296
3   vm page queue mutex -- last acquired _at_ /usr/src/sys/i386/i386/pmap.c:2313
4    vnode interlock -- last acquired _at_ order list:0
5     cdev -- last acquired _at_ order list:0
4    pmap -- last acquired _at_ /usr/src/sys/i386/i386/pmap.c:2314
2   kmem object -- last acquired _at_ /usr/src/sys/vm/vm_kern.c:410
3    vm page queue free mutex -- last acquired _at_ /usr/src/sys/vm/vm_page.c:1029
3    vm page queue mutex -- (already displayed)
3    SYSMAPS -- last acquired _at_ /usr/src/sys/i386/i386/pmap.c:2880
2   KMAP ENTRY -- last acquired _at_ /usr/src/sys/vm/uma_core.c:2257
3    UMA zone -- (already displayed)
3   UMA zone -- (already displayed)
2   kernel object -- last acquired _at_ /usr/src/sys/vm/vm_object.c:460
3    vm page queue mutex -- (already displayed)
3    vm page queue free mutex -- (already displayed)
3    SYSMAPS -- (already displayed)
3   vm page queue free mutex -- (already displayed)
3   SYSMAPS -- (already displayed)
2   UMA boot pages -- last acquired _at_ /usr/src/sys/vm/uma_core.c:916
0 user map -- last acquired _at_ /usr/src/sys/vm/vm_map.c:1429
3  UMA zone -- (already displayed)
2  UMA boot pages -- (already displayed)
0 kqueue -- last acquired _at_ order list:0
1  struct mount mtx -- last acquired _at_ order list:0
4   vnode interlock -- (already displayed)
0 ng_node -- last acquired _at_ order list:0
1  ng_worklist -- last acquired _at_ order list:0
0 network driver -- last acquired _at_ order list:0
0 802.11 com lock -- last acquired _at_ order list:0
0 nfsd_mtx -- last acquired _at_ order list:0
2  so_snd -- last acquired _at_ order list:0
3   so_rcv -- last acquired _at_ order list:0
4    sellck -- last acquired _at_ order list:0
4    radix node head -- last acquired _at_ order list:0
5     rtentry -- last acquired _at_ order list:0
6      ifaddr -- last acquired _at_ order list:0
0 bpf global lock -- last acquired _at_ order list:0
1  bpf interface lock -- last acquired _at_ order list:0
2   bpf cdev lock -- last acquired _at_ order list:0
0 ddp_list_mtx -- last acquired _at_ order list:0
1  ddp_mtx -- last acquired _at_ order list:0
0 slip_mtx -- last acquired _at_ order list:0
1  slip sc_mtx -- last acquired _at_ order list:0
0 tcp -- last acquired _at_ order list:0
1  tcpinp -- last acquired _at_ order list:0
2   so_snd -- (already displayed)
0 udp -- last acquired _at_ order list:0
1  udpinp -- last acquired _at_ order list:0
2   in_multi_mtx -- last acquired _at_ order list:0
3    igmp_mtx -- last acquired _at_ order list:0
4     if_addr_mtx -- last acquired _at_ order list:0
2   so_snd -- (already displayed)
0 unp -- last acquired _at_ order list:0
2  so_snd -- (already displayed)
0 accept -- last acquired _at_ order list:0
2  so_snd -- (already displayed)
0 Giant -- last acquired _at_ /usr/src/sys/kern/subr_witness.c:565
1  pipe mutex -- last acquired _at_ order list:0
2   sigio lock -- last acquired _at_ order list:0
3    process group -- last acquired _at_ order list:0
4     process lock -- last acquired _at_ order list:0
5      session -- last acquired _at_ order list:0
6       uidinfo hash -- last acquired _at_ order list:0
7        uidinfo struct -- last acquired _at_ order list:0
3  UMA zone -- (already displayed)
1  system map -- (already displayed)
1  UMA lock -- last acquired _at_ /usr/src/sys/vm/uma_core.c:1314
1  eventhandler -- last acquired _at_ /usr/src/sys/kern/subr_eventhandler.c:97
1  eventhandler list -- last acquired _at_ /usr/src/sys/kern/subr_eventhandler.c:132
2  UMA boot pages -- (already displayed)
1  kobj -- last acquired _at_ /usr/src/sys/kern/subr_kobj.c:307
1  kernel environment -- last acquired _at_ /usr/src/sys/kern/kern_environment.c:301
1  malloc -- last acquired _at_ /usr/src/sys/kern/kern_malloc.c:655
3  vm page queue free mutex -- (already displayed)
2  kernel object -- (already displayed)
0 proctree -- last acquired _at_ order list:0
1  allproc -- last acquired _at_ order list:0
2   allprison -- last acquired _at_ order list:0

Spin locks:

Locks which were never acquired:
p_peers
pbuf mutex
bufwait
bpin lock
bdone lock
buffer daemon lock
needsbuffer lock
runningbufspace lock
buf queue lock
ACPI lid
ACPI HPET support
ACPI embedded controller
ACPI root bus
ACPI PCI bus methods
ACPI power resources
ACPI CPU
ACPI PCI power methods
ACPI cmbat
ACPI generic battery
ACPI AC adapter
ACPI thermal zone
ACPI Smart Battery
ACPI PCI link
umtxql
fdesc
bounce pages lock
arc4_mtx
db_capture_sx
encapmtx
MSDOSFS fileno
mountlist
DEVFS ruleset lock
kqueue order
ip_id_mtx
firmware table
/dev/mem lock
Name Cache
net80211 instances
securelevel mutex lock
rtsock route_cb lock
rawcb
Softdep Lock
pfil_head_list lock
protect sysfilt_ops
knlist lock for lockless objects
acct_sx
so_glabel
fifo mutex
unit# allocation
devfs interlock
domain list
vm daemon
accept_filter_mtx
intr config
clone events drain lock
UUID generator mutex lock
db_script_mtx
ttylist
sleep mtxpool
sysctl lock
phys_pager list
dev_pager list
swapdev
swap_pager list
vm map sleep mutex
vm object_list
PMAP2
vm86 lock
db>  

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
I submit that "conspiracy" would be an appropriate collective noun for cats.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Mon Mar 17 2008 - 15:05:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:29 UTC