Re: VM-related lock order reversal

From: Alexey Neyman <alex.neyman_at_auriga.ru>
Date: Thu, 22 May 2003 13:51:46 +0400
hi, there!

On Thursday 22 May 2003 12:11, Tim Robbins wrote:
TR> vm_map.c:2148 is in vm_map_delete():
TR> vm_kern.c:325 is in kmem_malloc():

Got similar one, with the kernel about 1 week old (14 May 2003):
(kernel is customized, config available upon request)

lock order reversal
 1st 0xc355dab0 vm object (vm object) _at_ /usr/src/sys/vm/vm_object.c:512
 2nd 0xc082f110 system map (system map) _at_ /usr/src/sys/vm/vm_kern.c:325
Stack backtrace:
backtrace(c03a02c9,c082f110,c03add39,c03add39,c03adbd4) at backtrace+0x17
witness_lock(c082f110,8,c03adbd4,145,c023f66b) at witness_lock+0x6b7
_mtx_lock_flags(c082f110,0,c03adbd4,145,c3558000) at _mtx_lock_flags+0xbe
_vm_map_lock(c082f0b0,c03adbd4,145,c021156d,246) at _vm_map_lock+0x36
kmem_malloc(c082f0b0,1000,101,d79e8b20,c031ee55) at kmem_malloc+0x65
page_alloc(c083a240,1000,d79e8b13,101,60c) at page_alloc+0x27
slab_zalloc(c083a240,101,c03af59d,66f,c083a924) at slab_zalloc+0x155
uma_zone_slab(c083a240,101,c03af59d,66f,0) at uma_zone_slab+0xd8
uma_zalloc_internal(c083a240,0,101,6ef,0) at uma_zalloc_internal+0x55
uma_zfree_arg(c083a900,c37e7000,0,c355dab0,d79e8bcc) at uma_zfree_arg+0x2c7
dev_pager_putfake(c37e7000,0,c03ad407,bc,c355dab0) at dev_pager_putfake+0x3d
dev_pager_dealloc(c355dab0,1,c03af4a0,10b,0) at dev_pager_dealloc+0xc8
vm_pager_deallocate(c355dab0,0,c03ae676,25e,c0421508) at vm_pager_deallocate+0x3d
vm_object_terminate(c355dab0,0,c03ae676,200,c370a8ac) at vm_object_terminate+0x1f4
vm_object_deallocate(c355dab0,c370a8ac,c355dab0,c370a8ac,d79e8c9c) at vm_object_deallocate+0x217
vm_map_entry_delete(c3703b00,c370a8ac,c03adda7,86e,c039bb28) at vm_map_entry_delete+0x3b
vm_map_delete(c3703b00,282e1000,282e2000,1000,282e1000) at vm_map_delete+0x453
vm_map_remove(c3703b00,282e1000,282e2000,0,c372f7e8) at vm_map_remove+0x55
munmap(c3558000,d79e8d10,c03b3885,3fb,2) at munmap+0x9e
syscall(2f,2f,2f,f8000,1000) at syscall+0x26e
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (73), eip = 0x28252163, esp = 0xbfbffa6c, ebp = 0xbfbffa98 ---

Regards,
Alexey.

-- 
A quoi ca sert d'etre sur la terre
Si c'est pour faire nos vies a genoux?
Received on Thu May 22 2003 - 00:51:50 UTC

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