From owner-freebsd-usb@FreeBSD.ORG Sun Jun 24 09:30:07 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7ECA216A468 for ; Sun, 24 Jun 2007 09:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 3C8BB13C455 for ; Sun, 24 Jun 2007 09:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5O9U7NE058846 for ; Sun, 24 Jun 2007 09:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5O9U7xL058845; Sun, 24 Jun 2007 09:30:07 GMT (envelope-from gnats) Resent-Date: Sun, 24 Jun 2007 09:30:07 GMT Resent-Message-Id: <200706240930.l5O9U7xL058845@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nino Ivanov Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2D42516A400 for ; Sun, 24 Jun 2007 09:25:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 1DA7213C44C for ; Sun, 24 Jun 2007 09:25:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5O9PDbC027163 for ; Sun, 24 Jun 2007 09:25:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l5O9PDQk027147; Sun, 24 Jun 2007 09:25:13 GMT (envelope-from nobody) Message-Id: <200706240925.l5O9PDQk027147@www.freebsd.org> Date: Sun, 24 Jun 2007 09:25:13 GMT From: Nino Ivanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/113981: umount -f /mnt causing a crash if USB-stick is removed before umount 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: Sun, 24 Jun 2007 09:30:07 -0000 >Number: 113981 >Category: usb >Synopsis: umount -f /mnt causing a crash if USB-stick is removed before umount >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 24 09:30:06 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Nino Ivanov >Release: FreeBSD 6.2 >Organization: >Environment: FreeBSD .localdomain 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Dear Sir or Madam, umount -f /mnt causes a crash for me under the following circumstances: - Plug in a USB-Stick - Issue the command: sudo mount_msdosfs /dev/da0s1 /mnt - Plug out the USB-Stick - Issue the command: sudo umount -f /mnt My system then crashes, whether typing that in an xterm or from the command-line with no X started. I have been able to cause this behaviour on two different machines. I did the same with a floppy disk: No crash occured; I was instead returned to the command prompt. If I simply issue umount -f /mnt without mounting anything beforehand, no crash happens, either. I know this is not the way unmounting should be done; yet I mention it out of stability considerations. Kind Regards, Nino Ivanov >How-To-Repeat: - Plug in a USB-Stick - Issue the command: sudo mount_msdosfs /dev/da0s1 /mnt - Plug out the USB-Stick - Issue the command: sudo umount -f /mnt >Fix: Not a fix, but it does not happen with floppies for me. >Release-Note: >Audit-Trail: >Unformatted: