Subject: kern/27297: netbsd crashes when a mounted block device is removed from the system
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hramrach@centrum.cz>
List: netbsd-bugs
Date: 10/18/2004 19:42:56
>Number:         27297
>Category:       kern
>Synopsis:       netbsd crashes when a mounted block device is removed from the system
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 18 19:44:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michal Suchanek
>Release:        1.6.2 to 2.0RC2
>Organization:
>Environment:
NetBSD Dell 2.0_RC2 NetBSD 2.0_RC2 (Dell) #0: Sat Oct  2 23:46:21 CEST 2004  hramrach@Dell:/scratch/obj/usr/src/sys/arch/i386/compile/Dell i386
>Description:
When a mounted block device is removed (tested USB CF reader and PCMCIA CF reader) the kernel panics.
This time I mounted the CF readonly which may be the reason I got a core. I can try to extract something from it but this should be easily reproducible on any system.

Removing a floppy does not cause such problems but in that case only the medium is removed, the floppy drive stays in the system,
>How-To-Repeat:
Attach an USB mass storage device or PCMCIA to IDE bridge, mount a device from it, remove it (detach)from the system.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: