From nobody@FreeBSD.org  Fri Aug 26 04:41:28 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DB9BB16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Aug 2005 04:41:28 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 945EE43D6E
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Aug 2005 04:41:25 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j7Q4fP0C045844
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Aug 2005 04:41:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j7Q4fPJv045843;
	Fri, 26 Aug 2005 04:41:25 GMT
	(envelope-from nobody)
Message-Id: <200508260441.j7Q4fPJv045843@www.freebsd.org>
Date: Fri, 26 Aug 2005 04:41:25 GMT
From: Kyle Brooks <captinsmock@columbus.rr.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: witness lock detects lock order reversal
X-Send-Pr-Version: www-2.3

>Number:         85302
>Category:       i386
>Synopsis:       [lor] witness lock detects lock order reversal
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 26 04:50:13 GMT 2005
>Closed-Date:    Fri Aug 26 10:04:23 GMT 2005
>Last-Modified:  Sun Feb 15 19:08:35 UTC 2009
>Originator:     Kyle Brooks
>Release:        -current Fri Aug 26 01:03:23 UTC 2005
>Organization:
Student
>Environment:
FreeBSD arbitor.homelinux.com 6.0-BETA3 FreeBSD 6.0-BETA3 #1: Fri Aug 26 01:03:23 UTC 2005     kyle@arbitor.homelinux.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
lock order reversal
 1st 0xc0a167c0 UMA lock (UMA lock) @ /usr/src/sys/vm/uma_core.c:1494
 2nd 0xc1060144 system map (system map) @ /usr/src/sys/vm/vm_kern.c:295
KDB: stack backtrace:
witness_checkorder(c1060144,9,c090bad8,127,e6a39acc) at witness_checkorder+0x3af
_mtx_lock_flags(c1060144,0,c090bad8,127,c106cc80) at _mtx_lock_flags+0x54
_vm_map_lock(c10600c0,c090bad8,127,0,c106b000) at _vm_map_lock+0x37
kmem_malloc(c10600c0,1000,1,1,c090ad91) at kmem_malloc+0x3a
slab_zalloc(c3f1de00,e6a39b90,c08099fb,c104a5a0,c3d0bac0) at slab_zalloc+0x7d
uma_zone_slab(c106cc88,8,c090ad91,76a,10) at uma_zone_slab+0xac
uma_zalloc_arg(c104a5a0,0,1,c106cc80,e6a39c38) at uma_zalloc_arg+0x39f
malloc(200,c0990700,1,40,c1044b40) at malloc+0x87
hash_alloc(c1044b48,0,c090ad91,1ab,c0a083d0) at hash_alloc+0x39
zone_timeout(c38533c0,8,c090ad91,5d6,16) at zone_timeout+0xc9
zone_foreach(c3552c00,e6a39c90,80246,16,e6a39cd0) at zone_foreach+0x43
uma_timeout(0,0,c08f1e81,105,c0809405) at uma_timeout+0x15
softclock(0,0,c08ee70e,251,2) at softclock+0x25d
ithread_loop(c3535580,e6a39d38,c08ee4e3,30d,c3535580) at ithread_loop+0x1e9
fork_exit(c066ea7d,c3535580,e6a39d38) at fork_exit+0xa1
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xe6a39d6c, ebp = 0 ---
>How-To-Repeat:
Not sure, possible kldload already existing wi driver
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bz 
State-Changed-When: Fri Aug 26 10:03:06 GMT 2005 
State-Changed-Why:  
Now documented at 
http://sources.zabbadoz.net/freebsd/lor.html#138 

Please see this page for where to better report LORs. 


Responsible-Changed-From-To: freebsd-i386->bz 
Responsible-Changed-By: bz 
Responsible-Changed-When: Fri Aug 26 10:03:06 GMT 2005 
Responsible-Changed-Why:  
I am documenting LORs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=85302 
>Unformatted:
