From owner-freebsd-usb@FreeBSD.ORG Sat Aug 25 03:25:14 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 8754D16A417 for ; Sat, 25 Aug 2007 03:25:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 44F0113C457 for ; Sat, 25 Aug 2007 03:25:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l7P3MRq8055245; Fri, 24 Aug 2007 21:22:27 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 24 Aug 2007 21:22:30 -0600 (MDT) Message-Id: <20070824.212230.-957833176.imp@bsdimp.com> To: rsidd@online.fr From: "M. Warner Losh" In-Reply-To: <200708241010.l7OAA7bl066026@freefall.freebsd.org> References: <200708241010.l7OAA7bl066026@freefall.freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 24 Aug 2007 21:22:28 -0600 (MDT) 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 List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 03:25:14 -0000 In message: <200708241010.l7OAA7bl066026@freefall.freebsd.org> "Rahul Siddharthan" writes: : The following reply was made to PR usb/105361; it has been noted by GNATS. : : From: "Rahul Siddharthan" : To: bug-followup@freebsd.org, linimon@freebsd.org : Cc: : Subject: Re: usb/105361: [panic] Kernel panic during unmounting mass storage (Creative mp3 player) : Date: Fri, 24 Aug 2007 15:11:36 +0530 : : linimon wrote: : > Does this panic occur if you umnount the device before removal? (We are : > aware of the problem if a device is removed before unmounting). : : I am experimenting with FreeBSD (7.0-CURRENT) after a few years. My : USB stick was not initialised by the system: it was recognised but no : device node was created. When I inserted and removed it a few times, : the system panicked. (As I said, there was no device node, so no mounting.) : : I can submit a backtrace for this if anyone is interested. : : I followed the suggested change to usb_subr.c here: : http://lists.freebsd.org/pipermail/freebsd-questions/2006-February/112698.html : and, after this, the system creates a da0 device, and : mount -t msdosfs /dev/da0s1 /mnt : works. I haven't yet got a panic by unmounting and removing, but removing : without unmounting does cause a panic still (as you say you are aware). : : Other than this issue FreeBSD-7 seems remarkably stable so far. But this : problem with removable media has been around since floppy disk days, and : really seems to preclude using FreeBSD on any desktop machine where : uptime is important (eg, a compute workstation where long-term jobs : are running). We only do the clear endpoint stall in FreeBSD 7 when the device has been quirked to do a clearstall. Is your device one that has this quirk? Warner