From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 2 18:10:22 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 8917516A4CF for ; Wed, 2 Feb 2005 18:10:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44ABB43D46 for ; Wed, 2 Feb 2005 18:10:22 +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 j12IAMww006503 for ; Wed, 2 Feb 2005 18:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j12IAMWj006502; Wed, 2 Feb 2005 18:10:22 GMT (envelope-from gnats) Resent-Date: Wed, 2 Feb 2005 18:10:22 GMT Resent-Message-Id: <200502021810.j12IAMWj006502@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, Mikhail Teterin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE57316A4CE for ; Wed, 2 Feb 2005 18:02:15 +0000 (GMT) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 515FA43D2D for ; Wed, 2 Feb 2005 18:02:15 +0000 (GMT) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (mi@localhost [127.0.0.1]) by aldan.algebra.com (8.13.1/8.13.1) with ESMTP id j12I2EQr092942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 2 Feb 2005 13:02:14 -0500 (EST) (envelope-from mi@aldan.algebra.com) Received: (from mi@localhost) by aldan.algebra.com (8.13.1/8.13.1/Submit) id j12I2EdM092941; Wed, 2 Feb 2005 13:02:14 -0500 (EST) (envelope-from mi) Message-Id: <200502021802.j12I2EdM092941@aldan.algebra.com> Date: Wed, 2 Feb 2005 13:02:14 -0500 (EST) From: Mikhail Teterin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/77026: umount-ing non-existent device panics system X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 18:10:22 -0000 >Number: 77026 >Category: kern >Synopsis: umount-ing non-existent device panics system >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 02 18:10:21 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 5.3-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: >Description: Every once in a while, a user forgets to umount the file system on a USB "flash-drive" before pulling the device out. The umass-device duly disappears upont the pull-out, but the mount-entry does not. Trying to umount such "fantom" devices results in "device not configured" errors. umount-ing with the `-f' switch crashes the system. I doubt, this is a USB-specific problem -- it is just the easiest way to reproduce the problem. CD-ROMs have hardware protection against this, but disconnecting a hard disk and rescanning the bus will, most probably, lead to the same situation. Note, that this happens even when no writes await and no files are open on the removed devices. `mount -oro -u', for example, succeds. >How-To-Repeat: See description. >Fix: Remember to umount. Still, panic is hardly a reasonable reaction. >Release-Note: >Audit-Trail: >Unformatted: