NetBSD Problem Report #36676

From martin@duskware.de  Sun Jul 22 11:06:50 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9E3CC63B874
	for <gnats-bugs@gnats.netbsd.org>; Sun, 22 Jul 2007 11:06:50 +0000 (UTC)
Message-Id: <20070722103610.D7CBF63B874@narn.NetBSD.org>
Date: Sun, 22 Jul 2007 10:36:10 +0000 (UTC)
From: shadi.ammouri@gmail.com
Reply-To: shadi.ammouri@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: USB stops responding after disconnect while active
X-Send-Pr-Version: www-1.0

>Number:         36676
>Category:       kern
>Synopsis:       USB stops responding after disconnect while active
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 22 11:10:00 +0000 2007
>Originator:     Shadi Ammouri
>Release:        NetBSD-portarm-current, NetBSD-i386-current
>Organization:
>Environment:
NetBSD 4.0_BETA2 evbarm
NetBSD 4.0_BETA2 (GENERIC) i386

>Description:
When disconnecting a USB mass storage device, while the system is performing a write to it, the device becomes unusable (or the system crashes).
On i386 the system crashes.
On ARM systems the device becomes unusable, the drive cannot be unmounted or remounted.
I get the following error: "umount: /dev/sd0c: Input/output error".

When trying to force unmount the device, the system hangs (umount -f).

The USB drive is formatted with FFS.

>How-To-Repeat:
- mount the USB drive. (mount /dev/sd0c /mnt/disk")
- run dd to write some file to the disk. (dd if=/dev/zero
of=/mnt/disk/test_file")
- disconnect the disk while the write operation is in progress.

Now try to unmount the device.
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.