From nobody@FreeBSD.org  Sun Feb 15 17:48:40 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1F0AD106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Feb 2009 17:48:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 0DE768FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Feb 2009 17:48:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1FHmd2w087099
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Feb 2009 17:48:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n1FHmdhW087098;
	Sun, 15 Feb 2009 17:48:39 GMT
	(envelope-from nobody)
Message-Id: <200902151748.n1FHmdhW087098@www.freebsd.org>
Date: Sun, 15 Feb 2009 17:48:39 GMT
From: Rene Ladan <rene@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [lor] kern_sysctl.c / acpi_video.c
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131718
>Category:       kern
>Synopsis:       [lor] kern_sysctl.c / acpi_video.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 15 17:50:02 UTC 2009
>Closed-Date:    Fri Nov 02 22:22:39 UTC 2012
>Last-Modified:  Fri Nov 02 22:22:39 UTC 2012
>Originator:     Rene Ladan
>Release:        8.0-CURRENT i386 r188644
>Organization:
>Environment:
FreeBSD eee 8.0-CURRENT FreeBSD 8.0-CURRENT #1 r188644: Sun Feb 15 17:06:01 CET 2009  root@self.rene-ladan.nl:/usr/head/obj/i386/usr/head/src/sys/EEE_HEAD i386
>Description:
LOR, seen on Asus EEE 901:

lock order reversal:
 1st 0xc09b96e4 sysctl lock (sysctl lock) @ /usr/head/src/sys/kern/kern_sysctl.c:1510
 2nd 0xc09a4edc ACPI video (ACPI video) @ /usr/head/src/sys/dev/acpica/acpi_video.c:627
KDB: stack backtrace:
db_trace_self_wrapper(c0915f2b,e6791aac,c060f6a5,4,c091148e,...) at db_trace_self_wrapper+0x26
kdb_backtrace(4,c091148e,c4117ad0,c4118de8,e6791b08,...) at kdb_backtrace+0x29
_witness_debugger(c0918c84,c09a4edc,c08f008d,c4118de8,c08efce4,...) at _witness_debugger+0x25
witness_checkorder(c09a4edc,9,c08efce4,273,0,...) at witness_checkorder+0x839
_sx_xlock(c09a4edc,0,c08efce4,273,0,...) at _sx_xlock+0x85
acpi_video_vo_active_sysctl(c429ce40,c429d040,0,e6791ba4,e6791ba4,...) at acpi_video_vo_active_sysctl+0x47
sysctl_root(e6791ba4,0,c091388f,5e6,c459cb40,...) at sysctl_root+0x199
userland_sysctl(c459cb40,e6791c10,5,0,bfbfdc90,...) at userland_sysctl+0x115
__sysctl(c459cb40,e6791cf8,18,c0919a9d,c0968730,...) at __sysctl+0x94
syscall(e6791d38) at syscall+0x2a3
Xint0x80_syscall() at Xint0x80_syscall+0x20
--- syscall (202, FreeBSD ELF32, __sysctl), eip = 0x2816ff6f, esp = 0xbfbfdb9c, ebp = 0xbfbfdbc8 ---
>How-To-Repeat:
boot the Eee 901, running a kernel with

options VESA
device vga
device agp
device drm
device i195drm
device acpi_asus
device acpi_video
>Fix:
Committed as r216060 in CURRENT.


>Release-Note:
>Audit-Trail:

From: "Bjoern A. Zeeb" <bzeeb+freebsd+lor@zabbadoz.net>
To: bug-followup@FreeBSD.org, rene@FreeBSD.org
Cc:  
Subject: Re: kern/131718: [lor] kern_sysctl.c / acpi_video.c
Date: Sun, 15 Feb 2009 19:00:00 +0000 (UTC)

 Added to the LOR list with LOR #283:
 http://sources.zabbadoz.net/freebsd/lor/283.html
 
 -- 
 Bjoern A. Zeeb                      The greatest risk is not taking one.
State-Changed-From-To: open->patched 
State-Changed-By: mdf 
State-Changed-When: Tue Nov 30 19:04:55 UTC 2010 
State-Changed-Why:  
r216060 in CURRENT should fix the issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131718 
State-Changed-From-To: patched->closed 
State-Changed-By: eadler 
State-Changed-When: Fri Nov 2 22:22:39 UTC 2012 
State-Changed-Why:  
MFCed/fixed by now or it will never be MFCed 

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