From owner-freebsd-i386@FreeBSD.ORG Wed Jul 20 20:40:20 2005 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1CC316A41F for ; Wed, 20 Jul 2005 20:40:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BFF443D48 for ; Wed, 20 Jul 2005 20:40:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6KKeKTO067949 for ; Wed, 20 Jul 2005 20:40:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6KKeKGa067948; Wed, 20 Jul 2005 20:40:20 GMT (envelope-from gnats) Resent-Date: Wed, 20 Jul 2005 20:40:20 GMT Resent-Message-Id: <200507202040.j6KKeKGa067948@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jonathan Buschmann Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 418C216A41F for ; Wed, 20 Jul 2005 20:30:48 +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 1061F43D46 for ; Wed, 20 Jul 2005 20:30:48 +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 j6KKUl2X009388 for ; Wed, 20 Jul 2005 20:30:47 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j6KKUlC5009387; Wed, 20 Jul 2005 20:30:47 GMT (envelope-from nobody) Message-Id: <200507202030.j6KKUlC5009387@www.freebsd.org> Date: Wed, 20 Jul 2005 20:30:47 GMT From: Jonathan Buschmann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: i386/83809: Problem with mutex or lock and if_xl. X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 20:40:20 -0000 >Number: 83809 >Category: i386 >Synopsis: Problem with mutex or lock and if_xl. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 20 20:40:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Jonathan Buschmann >Release: 6.0-BETA1 >Organization: >Environment: FreeBSD aore.actitude.net 6.0-BETA1 FreeBSD 6.0-BETA1 #0: Tue Jul 12 18:05:55 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 >Description: taskqueue_drain with the following non-sleepable locks held: exclusive sleep mutex xl0 (network driver) r = 0 (0xc1b030a4) locked @ /usr/src/ sys/pci/if_xl.c:2796 KDB: stack backtrace: x29 witness_warn(5,0,c0857d06,c1b01000,c1b01000) at witness_warn+0x18e taskqueue_drain(c19f7000,c1b030c8,c1b030a4,1,c086b04c,cc7) at taskqueue_drain+0x 1a xl_stop(c1b01000,c1b030a4,1,c086b04c,af9) at xl_stop+0x44 xl_init_locked(c1b01000,c1b030a4,0,c086b04c,aec) at xl_init_locked+0x33 xl_init(c1b01000) at xl_init+0x26 ether_ioctl(c1adbc00,8020690c,c1bf2c00,0,1) at ether_ioctl+0x64 xl_ioctl(c1adbc00,8020690c,c1bf2c00,0,c1bf2c00) at xl_ioctl+0x2be in6_ifinit(c1adbc00,c1bf2c00,da932b1c,1,40) at in6_ifinit+0x90 in6_update_ifa(c1adbc00,da932b0c,0) at in6_update_ifa+0x456 in6_ifattach_linklocal(c1adbc00,0) at in6_ifattach_linklocal+0xe5 in6_ifattach(c1adbc00,0,c1afe000,0,0) at in6_ifattach+0xb9 in6_if_up(c1adbc00,c1adbc00,80206910,c1d745a0,0) at in6_if_up+0x13 if_route(c1adbc00,1,0,da932c4c,c069676b) at if_route+0x55 if_up(c1adbc00) at if_up+0xf ifhwioctl(80206910,c1adbc00,c1d745a0,c1d90000,da932c80) at ifhwioctl+0x29b ifioctl(c1d7fb20,80206910,c1d745a0,c1d90000,0) at ifioctl+0xc3 soo_ioctl(c1d09a68,80206910,c1d745a0,c19bea80,c1d90000) at soo_ioctl+0x2db ioctl(c1d90000,da932d04,3,1,247) at ioctl+0x370 syscall(3b,3b,3b,4,1) at syscall+0x22f Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x280c6287, esp = 0xbfbfe56c, ebp = 0xbfbfe5b8 --- taskqueue_drain with the following non-sleepable locks held: exclusive sleep mutex xl0 (network driver) r = 0 (0xc1b030a4) locked @ /usr/src/ sys/pci/if_xl.c:2796 KDB: stack backtrace: kdb_backtrace(1,c1b030c8,c1b01000,c19f7000,da932b04) at kdb_backtrace+0x29 witness_warn(5,0,c0857d06,c1b01000,c1b01000) at witness_warn+0x18e taskqueue_drain(c19f7000,c1b030c8,c1b030a4,1,c086b04c,cc7) at taskqueue_drain+0x 1a xl_stop(c1b01000,c1b030a4,1,c086b04c,af9) at xl_stop+0x44 xl_init_locked(c1b01000,c1b030a4,0,c086b04c,aec) at xl_init_locked+0x33 xl_init(c1b01000,8020690c,c1d95500,c1b01000,da932bc0) at xl_init+0x26 ether_ioctl(c1adbc00,8020690c,c1d95500,0,c1d95500) at ether_ioctl+0x50 xl_ioctl(c1adbc00,8020690c,c1d95500,1,0) at xl_ioctl+0x2be in_ifinit(c1adbc00,c1d95500,c1ced210,0,da932c38) at in_ifinit+0x206 in_control(c1d7fb20,8040691a,c1ced200,c1adbc00,c1d90000) at in_control+0x882 ifioctl(c1d7fb20,8040691a,c1ced200,c1d90000,0) at ifioctl+0x198 soo_ioctl(c1d09a68,8040691a,c1ced200,c19bea80,c1d90000) at soo_ioctl+0x2db ioctl(c1d90000,da932d04,3,b,286) at ioctl+0x370 syscall(3b,3b,3b,8056880,1) at syscall+0x22f Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x280c6287, esp = 0xbfbfe5bc, ebp = 0xbfbfee08 --- >How-To-Repeat: At every reboot this problem appears three or four times and after there is no more this output and it seems to work fine. >Fix: >Release-Note: >Audit-Trail: >Unformatted: