NetBSD Problem Report #29050

From www@netbsd.org  Sun Jan 23 13:42:00 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id C38CD63B843; Sun, 23 Jan 2005 13:42:00 +0000 (UTC)
Message-Id: <20050123134200.C38CD63B843@narn.netbsd.org>
Date: Sun, 23 Jan 2005 13:42:00 +0000 (UTC)
From: fab@gnux.info
Reply-To: fab@gnux.info
To: gnats-bugs@netbsd.org
Subject: USB unplug makes kernel panic
X-Send-Pr-Version: www-1.0

>Number:         29050
>Category:       kern
>Synopsis:       USB unplug makes kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 23 13:43:00 +0000 2005
>Closed-Date:    Mon Dec 12 01:49:16 +0000 2016
>Last-Modified:  Mon Dec 12 01:49:16 +0000 2016
>Originator:     Fabien Devaux
>Release:        2.0
>Organization:
>Environment:
NetBSD twin.localzone.fr 2.0 NetBSD 2.0 (MONKERN) #3: Mon Dec  6 23:38:39 CET 2004  root@twin:/usr/src/sys/arch/i386/compile/MONKERN i386

>Description:
When I plug an USB mass storage device and mount it, if I unplug it without umounting I get :

umass0: at uhub0 port 1 (addr 2) disconnected
sd(umass0:0:0:0): generic HBA error
kernel: page fault trap, code=0
stoped in pid 3.1 (usb0) at 0: invalid address
db> bt
uvm_fault(0xc0356140, 0, 0, 1) -> 0xe
kernel: page fault trap, code=0
Falted in DDB; continuing...
db> sync
syncing disks... done
unmounting /mnt/removable (/dev/sd0e)...


the system loops infinitely...
>How-To-Repeat:
Same as above
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: ad@narn.netbsd.org
State-Changed-When: Sat, 19 Jan 2008 22:49:28 +0000
State-Changed-Why:
This is a known limitation of the system.
File systems must be unmounted before the device is removed.
Fixing it properly is a large project.


From: Antti Kantee <pooka@cs.hut.fi>
To: gnats-bugs@NetBSD.org
Cc: ad@NetBSD.org, fab@gnux.info
Subject: Re: port-i386/29050 (USB unplug makes kernel panic)
Date: Sun, 20 Jan 2008 00:53:46 +0200

 On Sat Jan 19 2008 at 22:49:30 +0000, ad@NetBSD.org wrote:
 > Synopsis: USB unplug makes kernel panic
 > 
 > State-Changed-From-To: open->closed
 > State-Changed-By: ad@narn.netbsd.org
 > State-Changed-When: Sat, 19 Jan 2008 22:49:28 +0000
 > State-Changed-Why:
 > This is a known limitation of the system.
 > File systems must be unmounted before the device is removed.
 > Fixing it properly is a large project.

 Curiously enough, I tried it a couple of hours ago and it worked.

 -- 
 Antti Kantee <pooka@iki.fi>                     Of course he runs NetBSD
 http://www.iki.fi/pooka/                          http://www.NetBSD.org/
     "la qualité la plus indispensable du cuisinier est l'exactitude"

State-Changed-From-To: closed->suspended
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 30 Mar 2008 08:20:53 +0000
State-Changed-Why:
This is, however, a project we'd like to tackle sometime, so the PR should
be marked 'suspended' for future attention.


Responsible-Changed-From-To: port-i386-maintainer->kern-bug-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Sun, 30 Mar 2008 08:21:18 +0000
Responsible-Changed-Why:
Also, it's not i386-specific.


State-Changed-From-To: suspended->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 12 Dec 2016 01:49:16 +0000
State-Changed-Why:
We can (finally) do this fine (related: PR 50467)


>Unformatted:

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.