From owner-freebsd-current Fri Nov 22 8:46:44 2002 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 17C4537B430 for ; Fri, 22 Nov 2002 08:46:43 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE4AC43EAA for ; Fri, 22 Nov 2002 08:46:41 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 22601 invoked from network); 22 Nov 2002 16:44:38 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 22 Nov 2002 16:44:38 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id gAMGiX2D042892; Fri, 22 Nov 2002 11:44:33 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20021121185414.A83098@FreeBSD.org> Date: Fri, 22 Nov 2002 11:44:38 -0500 (EST) From: John Baldwin To: Juli Mallett Subject: Re: VM locking problem... And doscmd(8) Cc: freebsd-current@FreeBSD.org, Juli Mallett , Robert Watson 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 22-Nov-2002 Juli Mallett wrote: > * De: Robert Watson [ Data: 2002-11-21 ] > [ Subjecte: Re: VM locking problem... And doscmd(8) ] >> On Thu, 21 Nov 2002, Juli Mallett wrote: >> >> > I'm getting a giant owned assertion failure in the vm_map code, simply >> > by running "doscmd something.exe" where something.exe is a >> > self-extracting ZIP file (of BIOS upgrade stuff, FWIW), which leads >> > trivially to tripping over it. I still don't have a good way to get the >> > trace output from the box in question to here, but I've been able to >> > reproduce it every time, so it shouldn't be hard for someone else. >> > >> > I rebuilt my kernel today from CVSup, but hadn't tried before that. >> >> For those of us that don't frequently (ever) use doscmd -- can you provide >> a tarball of the necessary configuration files, executable, etc, >> somewhere? > > I don't (ever) either, and am doing this without a config file (as far as > I'm aware anyway), and using the following executable: > > http://people.freebsd.org/~jmallett/boom.exe There is some discussion on IRC, and Maxime is working on a fix. The problem is that if you use a TSS (for /dev/io or some such) then the TSS gets kmem_free()'d in cpu_thread_exit(). However, cpu_thread_exit() is a particularly bad time to be calling kmem_free() as you are holding sched_lock in a critical section w/o any sleep mutexes when it is called. :) The solution I've discussed with Maxime is to create a cpu_thread_dtor() callout called from thread_dtor() (which is called when a thread is free()'d) and to move the kmem_free() of the TSS into that function instead. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "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