VFS unlink LOR

From: Maxim Maximov <mcsi_at_mcsi.pp.ru>
Date: Wed, 22 Jun 2005 22:52:14 +0400
Hello.

	Just caught this on freshest CURRENT:

FreeBSD ultra.domain 6.0-CURRENT FreeBSD 6.0-CURRENT #2: Wed Jun 22 
22:09:12 MSD 2005     mcsi_at_ultra.domain:/usr/obj/usr/src/sys/ULTRA  i386


lock order reversal
  1st 0xc26547ec vnode interlock (vnode interlock) _at_ 
/usr/src/sys/kern/vfs_subr.c:2122
  2nd 0xc1159144 system map (system map) _at_ /usr/src/sys/vm/vm_kern.c:295
KDB: stack backtrace:
kdb_backtrace(0,ffffffff,c09af168,c09af1b8,c0933164) at kdb_backtrace+0x29
witness_checkorder(c1159144,9,c08e1670,127) at witness_checkorder+0x55c
_mtx_lock_flags(c1159144,0,c08e1670,127) at _mtx_lock_flags+0x5b
_vm_map_lock(c11590c0,c08e1670,127) at _vm_map_lock+0x26
kmem_malloc(c11590c0,1000,101,e2e62b18,c07d9a71) at kmem_malloc+0x32
page_alloc(c1163840,1000,e2e62b0b,101,c09ebd00) at page_alloc+0x1a
slab_zalloc(c1163840,101,c1163840,c096e064,c1164460) at slab_zalloc+0xa1
uma_zone_slab(c1163840,1,c1164468,0,c08e0929,894) at uma_zone_slab+0xe8
uma_zalloc_internal(c1163840,0,1,0,c11422f8) at uma_zalloc_internal+0x29
bucket_alloc(80,1,c113c0a0,0,c263276c) at bucket_alloc+0x2c
uma_zfree_arg(c11422c0,c263276c,0) at uma_zfree_arg+0x23e
mac_labelzone_free(c263276c,c2654770,c2654770,e2e62bd4,c07acdfa) at 
mac_labelzone_free+0x13
mac_vnode_label_free(c263276c,c2654770,e2e62be4,c06d2ffa,c2654770) at 
mac_vnode_label_free+0x72
mac_destroy_vnode(c2654770) at mac_destroy_vnode+0x12
vdestroy(c2654770,0,e2e62c2c,c06d513d,c2654770) at vdestroy+0x1a6
vdropl(c2654770,c097d900,c2654770,0,c238b900) at vdropl+0x3e
vput(c2654770) at vput+0x181
kern_unlink(c238b900,80678a8,0,e2e62d30,c0856843) at kern_unlink+0x1bd
unlink(c238b900,e2e62d04,1,7,296) at unlink+0x12
syscall(3b,3b,3b,1,804d000) at syscall+0x22b
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (10, FreeBSD ELF32, unlink), eip = 0x280c165f, esp = 
0xbfbfeb7c, ebp = 0xbfbfeba8 --

-- 
Maxim Maximov
Received on Wed Jun 22 2005 - 16:52:25 UTC

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