From owner-freebsd-current Thu May 24 9:37:19 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 4673837B422 for ; Thu, 24 May 2001 09:37:17 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4OGbCG01638; Thu, 24 May 2001 09:37:12 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <86vgmqvlkb.fsf@mharnois.workgroup.net> Date: Thu, 24 May 2001 09:37:15 -0700 (PDT) From: John Baldwin To: Michael Harnois Subject: Re: Tonights panic: free_newdirblk+0x73: movl %eax,0x10(%e Cc: freebsd-current@FreeBSD.org, The Hermit Hacker Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 24-May-01 Michael Harnois wrote: > On Wed, 23 May 2001 22:10:09 -0300 (ADT), The Hermit Hacker > said: > > > Oops ... neat, now it just locked up solid and ctl-alt-esc > > doesn't even get me to debugger :( > > This has been my experience for about a week on the -current kernel > ... I held out high hopes that these changes by John and Alfred over > the past 24 hours or so would fix it, but no go ... I had a epiphany this morning, and will be committing a bandaid to get current workign again on SMP systems. The problem occurs when we take a fault while hold the vm lock already. In that case, the VM was in an inconsistent state when we faulted. That's why we were holding the lock when we faulted. Well, there are places in the fault handler where we release the vm lock to sleep or acquire Giant or some such. When we do so, we allow another thread to try and dink with the VM, which can lead to threads trying to use free'd pages, etc. on SMP systems. The bandaid is to stick all the VM related syscalls that were marked MPSAFE back under Giant for the time being, which I will do shortly. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message