From owner-freebsd-usb@FreeBSD.ORG Mon Aug 27 11:19:58 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B52A616A417 for ; Mon, 27 Aug 2007 11:19:58 +0000 (UTC) (envelope-from rsidd120@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id 6A57213C465 for ; Mon, 27 Aug 2007 11:19:58 +0000 (UTC) (envelope-from rsidd120@gmail.com) Received: by wa-out-1112.google.com with SMTP id m33so1906447wag for ; Mon, 27 Aug 2007 04:19:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eRx29qZdtuFT5Cb/5c27cC5wCkeP6yLrPKUnZ2Q7b4bgFXymCKjs7lnPqYynW1VSrJnCDpthjLrD426HYn9Qhe0ztvQd22vgQL8FLmnsV2kEstqrsywvb9BDoeBfmBZcjtFIYMk/yrMkrHFrXWRMDYpqiL8GDLW83kiZh0Pik2Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mYE8yQ/U7yaphpab66PXdspc6XXjhjij3Pc7Je8BObNqh+WMYqX8pAJmQ2q+dDcR3MWBaEWG5NMayv0HgcNDmRBsAqeUukv62e5GAX8xp0/4lLnN2x6Pec58hc7+k/nVBKdk7P1Wgu6CqiLt2oe2MiLQpGNNVF7IumuMyXgrNRc= Received: by 10.114.76.1 with SMTP id y1mr576356waa.1188213597703; Mon, 27 Aug 2007 04:19:57 -0700 (PDT) Received: by 10.114.147.17 with HTTP; Mon, 27 Aug 2007 04:19:57 -0700 (PDT) Message-ID: <6a506d980708270419v561ad40ap1b73dd73e2bf87c7@mail.gmail.com> Date: Mon, 27 Aug 2007 16:49:57 +0530 From: "Rahul Siddharthan" To: "M. Warner Losh" In-Reply-To: <6a506d980708250932q7843f3a0u17240d7fb9033164@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200708241010.l7OAA7bl066026@freefall.freebsd.org> <20070824.212230.-957833176.imp@bsdimp.com> <6a506d980708242103j6d34449exadf3debc1275656f@mail.gmail.com> <20070825.093151.2040712281.imp@bsdimp.com> <6a506d980708250932q7843f3a0u17240d7fb9033164@mail.gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: usb/105361: [panic] Kernel panic during unmounting mass storage (Creative mp3 player) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rsidd120@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2007 11:19:58 -0000 I wrote: > However, I take back what I said about the problem being fixed by > commenting out the clear endpoint stall thing. It's not working any > more -- and, moreover, the hard disk light stays on after I insert the > USB stick. And if I remove it, there's an instant panic. > > I have now reverted that change to usb_subr.c. Now it lets me insert the > stick and remove it, but if I do that 2-3 times (not in quick succession), > it panics. Below is a backtrace. Let me reiterate that nothing is being mounted here -- the device is not even being registered as a SCSI drive. Digging further in the archives, I just came across a long thread on unmount panics in freebsd-stable in July, including posts from you (Warner) acknowledging that it's a serious problem but saying fixing it will be horrendously difficult because of historical assumptions at all levels in the VM/buffer-cache/etc that "devices don't go away". But this doesn't seem to be that problem. I can't believe I'm the only one seeing it. If you can't reproduce it, I'm happy to mail you the device in question (which works nicely on linux and windows). Rahul