From owner-freebsd-current@FreeBSD.ORG Wed Sep 14 01:48:14 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C767716A41F for ; Wed, 14 Sep 2005 01:48:14 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 403AF43D46 for ; Wed, 14 Sep 2005 01:48:13 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so46645nzd for ; Tue, 13 Sep 2005 18:48:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=afBeOZfhrYezcKH30UT6IrDmWsfEbxo3vDrXKb9hXsWxw2IGjEe0NLGTn1cdzg3w3RxI+rwrbmjtxTCMG4NOAEkxD3LbKBlPr6BbXbXBT2NO/Sj9G/XFLVmFodJuJRV23XYrvY/6TuMpRg+1rEloG4nGfKzZ3jVqPB2QfLKFEzo= Received: by 10.36.71.8 with SMTP id t8mr379867nza; Tue, 13 Sep 2005 18:48:13 -0700 (PDT) Received: from michelle.rndsoft.co.kr ( [211.32.202.211]) by mx.gmail.com with ESMTP id c12sm393369nzc.2005.09.13.18.48.12; Tue, 13 Sep 2005 18:48:13 -0700 (PDT) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id j8E1mYU2014071 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Sep 2005 10:48:34 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j8E1mUcX014070; Wed, 14 Sep 2005 10:48:30 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Wed, 14 Sep 2005 10:48:30 +0900 From: Pyun YongHyeon To: Ben Kaduk Message-ID: <20050914014830.GA13631@rndsoft.co.kr> References: <47d0403c05091121047a037946@mail.gmail.com> <20050912044212.GC5182@rndsoft.co.kr> <47d0403c05091122276fd0a231@mail.gmail.com> <20050913070149.GE9481@rndsoft.co.kr> <47d0403c0509131235ed58122@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47d0403c0509131235ed58122@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: panic upon kldunload snd_ich (lor # 159) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 01:48:15 -0000 On Tue, Sep 13, 2005 at 07:35:50PM +0000, Ben Kaduk wrote: [...] > Pyun, > > I was able to try your patch -- it did not apply cleanly, but was simple to > manually enter. > After building a new kernel, the panic is gone, but the LOR remains -- it Thanks for testing. Fix committed to HEAD(sndstat.c rev. 1.21) > does seem that they were unrelated. > For the records, the backtrace of the LOR (#159) is: > lock order reversal > 1st 0xc1716bc0 pcm0 (sound cdev) @ > /usr/src/sys/modules/sound/sound/../../../de > v/sound/pcm/sound.c:761 > 2nd 0xc196b540 sndstat (sndstat) @ > /usr/src/sys/modules/sound/sound/../../../de > v/sound/pcm/sndstat.c:256 > KDB: stack backtrace: > kdb_backtrace(c06ef80d,c196b540,c1965a62,c1965a62,c1965a6a) at > kdb_backtrace+0x2 > f > witness_checkorder(c196b540,9,c1965a6a,100,c0725260) at > witness_checkorder+0x68f > _sx_xlock(c196b540,c1965a6a,100,c197a380,c18fca00) at _sx_xlock+0x7f > sndstat_unregister(c171eb00,c197a380,c1965b77,2f9,c171eb00) at > sndstat_unregiste > r+0x27 > pcm_unregister(c171eb00,c761bbfc,c0557f32,c1943820,c171eb00) at > pcm_unregister+0 > x112 > ich_pci_detach(c171eb00,c18e0050,c0721ba8,961,c1909ab0) at > ich_pci_detach+0x13 > device_detach(c171eb00,c1942428,c171eb00,c1683400,c194380c) at > device_detach+0x8 > f > devclass_delete_driver(c1683400,c1943820,1,c1716280,c1716280) at > devclass_delete > _driver+0x8e > driver_module_handler(c1716280,1,c194380c) at driver_module_handler+0xe7 > module_unload(c1716280,0,1fb,0,0) at module_unload+0x61 > linker_file_unload(c193ca00,0,c06e9d40,327,0) at linker_file_unload+0x89 > kern_kldunload(c16ebaf0,5,0,c761bd30,c06afce5) at kern_kldunload+0x96 > kldunloadf(c16ebaf0,c761bd04,8,422,2) at kldunloadf+0x2c > syscall(3b,3b,3b,5,bfbfef12) at syscall+0x295 > Xint0x80_syscall() at Xint0x80_syscall+0x1f > --- syscall (444, FreeBSD ELF32, kldunloadf), eip = 0x280b700b, esp = > 0xbfbfe9dc > , ebp = 0xbfbfee48 --- > pcm0: detached > > AFAIK, the LOR is well known to sound developers. Though it's not real LOR(grabbing sx lock while holding mutex) it's difficult to fix. -- Regards, Pyun YongHyeon