Subject: port-i386/29050: USB unplug makes kernel panic
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <fab@gnux.info>
List: netbsd-bugs
Date: 01/23/2005 13:43:00
>Number:         29050
>Category:       port-i386
>Synopsis:       USB unplug makes kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 23 13:43:00 +0000 2005
>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: