From owner-freebsd-current@FreeBSD.ORG Sun Jul 27 08:49:08 2003 Return-Path: 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 1FA7937B404 for ; Sun, 27 Jul 2003 08:49:08 -0700 (PDT) Received: from godel.mtl.distributel.net (nat.MTL.distributel.NET [66.38.181.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED4B743F75 for ; Sun, 27 Jul 2003 08:49:06 -0700 (PDT) (envelope-from bmilekic@technokratis.com) Received: from godel.mtl.distributel.net (localhost [127.0.0.1]) h6RBriaA032875; Sun, 27 Jul 2003 11:53:44 GMT (envelope-from bmilekic@technokratis.com) Received: (from bmilekic@localhost) by godel.mtl.distributel.net (8.12.9/8.12.9/Submit) id h6RBriww032874; Sun, 27 Jul 2003 11:53:44 GMT X-Authentication-Warning: godel.mtl.distributel.net: bmilekic set sender to bmilekic@technokratis.com using -f Date: Sun, 27 Jul 2003 11:53:44 +0000 From: Bosko Milekic To: Lukas Ertl Message-ID: <20030727115344.GA32848@technokratis.com> References: <20030727163914.S698@korben.in.tern> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030727163914.S698@korben.in.tern> User-Agent: Mutt/1.4.1i cc: Gary Jennejohn cc: freebsd-current@freebsd.org cc: Mark Blackman Subject: Re: device driver memory leak in 5.1-20030726? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2003 15:49:08 -0000 On Sun, Jul 27, 2003 at 04:43:32PM +0200, Lukas Ertl wrote: > On Sun, 27 Jul 2003, Mark Blackman wrote: > > > Perhaps it's a USB bug. There seems to be some correspondence between > > the use of the USB Speedtouch ADSL modem and the out-of-control > > devbuf allocations. > > I'm too seeing these annoying kmem_malloc panics on recent -current > kernels. The laptop I'm using is way off of being overloaded at all, the > only thing I do is going online using a Bluetooth USB dongle. As soon as I > generate some network traffic, devbuf allocations go up, until at some > point the machine panics randomly in kmem_malloc. > > I have different core dumps and backtraces available, but they don't seem > to be of much use in this case. I really suspect the USB stuff to be > leaking. > > regards, > le There are two problems. 1) The USB code never frees the stuff it allocates; 2) The USB code places the stuff it allocates into a couple of lists unprotected by any mutexes. It should at a minimum assert that Giant is held coming in, at all times. > -- > Lukas Ertl eMail: l.ertl@univie.ac.at > UNIX Systemadministrator Tel.: (+43 1) 4277-14073 > Vienna University Computer Center Fax.: (+43 1) 4277-9140 > University of Vienna http://mailbox.univie.ac.at/~le/ -- Bosko Milekic * bmilekic@technokratis.com * bmilekic@FreeBSD.org TECHNOkRATIS Consulting Services * http://www.technokratis.com/