From owner-freebsd-smp Wed Feb 20 14:46: 4 2002 Delivered-To: freebsd-smp@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 0280537B402; Wed, 20 Feb 2002 14:46:01 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id CD41DAE2E0; Wed, 20 Feb 2002 14:46:00 -0800 (PST) Date: Wed, 20 Feb 2002 14:46:00 -0800 From: Alfred Perlstein To: John Baldwin Cc: Bob Van Valzah , FreeBSD-SMP@FreeBSD.Org Subject: Re: Lock order reversal Message-ID: <20020220224600.GK12136@elvis.mu.org> References: <3C6FC888.9040003@BGPBook.Com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * John Baldwin [020220 14:31] wrote: > > On 17-Feb-02 Bob Van Valzah wrote: > > Sorry if this isn't the right place to report this. Maybe I should > > sendpr this kind of > > thing? Sorry, I don't know the protocol. > > > > I shutdown my laptop (running -CURRENT as of Tuesday afternoon) and saw > > this: > > > > syncing disks.. 6 5 4 3 2 2 1 1 > > done > > lock order reversal > > 1st 0xc03a9d40 allproc @ /usr/src/sys/kernvfs_syscalls.c:452 > > 2nd 0xc2880234 filedesc structure @ /usr/src/sys/kern/vfs_syscalls.c:457 > > Uptime: 1d14h10m48s > > /dev/vmmon: Module vmmon: unloaded > > > > The operating system has halted. > > Please press any key to reboot. > > Yes, this one is a bit tough to fix. It will probably involve some changes to > selwakeup() and possibly struct selinfo as well. The pfind() in selwakeup() is > what ends up being the root cause here. Where is selwakeup being called with a filedesc held? -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message