From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 9 02:40:24 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13F3416A4CE for ; Wed, 9 Feb 2005 02:40:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C3AF43D2F for ; Wed, 9 Feb 2005 02:40:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j192eMY9075481 for ; Wed, 9 Feb 2005 02:40:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j192eM6K075477; Wed, 9 Feb 2005 02:40:22 GMT (envelope-from gnats) Resent-Date: Wed, 9 Feb 2005 02:40:22 GMT Resent-Message-Id: <200502090240.j192eM6K075477@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Björn König Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A5A316A4CE for ; Wed, 9 Feb 2005 02:32:10 +0000 (GMT) Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CDC343D46 for ; Wed, 9 Feb 2005 02:32:09 +0000 (GMT) (envelope-from bkoenig@mail.alpha-tierchen.de) Received: from mail.alpha-tierchen.de (port-212-202-38-15.dynamic.qsc.de [212.202.38.15]) by mail.efacilitas.de (Postfix) with ESMTP id 097F1123961 for ; Wed, 9 Feb 2005 03:31:33 +0100 (CET) Received: from localhost (localhost.local [127.0.0.1]) by mail.alpha-tierchen.de (Postfix) with ESMTP id C451FCCD818 for ; Wed, 9 Feb 2005 03:32:01 +0100 (CET) Received: from mail.alpha-tierchen.de ([127.0.0.1]) by localhost (mail.efacilitas.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 85718-09 for ; Wed, 9 Feb 2005 03:31:59 +0100 (CET) Received: by mail.alpha-tierchen.de (Postfix, from userid 2000) id DFEF6CCD816; Wed, 9 Feb 2005 03:31:59 +0100 (CET) Message-Id: <20050209023159.DFEF6CCD816@mail.alpha-tierchen.de> Date: Wed, 9 Feb 2005 03:31:59 +0100 (CET) From: Björn König To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/77289: system hangs while trying to unmount previously removed media X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Björn König List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 02:40:24 -0000 >Number: 77289 >Category: kern >Synopsis: system hangs while trying to unmount previously removed media >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 09 02:40:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Björn König >Release: FreeBSD 5.3-RELEASE-p4 i386 >Organization: >Environment: System: FreeBSD hoppel.local 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #0: Mon Jan 10 10:02:44 CET 2005 root@hoppel.local:/usr/obj/usr/branch/RELENG_5_3/src/sys/HOPPEL i386 >Description: The system hangs while trying to unmount a filesystem of a removable media which was already physically removed and also if it was inserted again before. This concerns floppy disks. I also noticed similar odd behaviour with usb pen drives, but the system reboots instead and there is lot of console output. >How-To-Repeat: mount a floppy disk % mount /dev/fd0 /mnt remove media now and unmount the file system % umount /mnt the following message appears on console: fsync: giving up on dirty: 0xc1ec5420: tag devfs, type VCHR, usecount 4, writecount 0, refcount 4, flags (VV_OBJBUF), lock type devfs: EXCL (count 1) by thread 0xc19adaf0 (pid 590) dev fd0 and mount shows that the filesystem is still mounted. trying to unmount it twice let the system stop working immediately. a similar case occurs if you mount a floppy disk, remove media, insert disk again and then unmount the file system: umount: unmount of /mnt failed: Device not configured try to unmount it twice - system hangs. >Fix: >Release-Note: >Audit-Trail: >Unformatted: