kern/50348: On usb.ko unload usb and usbN devices are not destroyed.
Nicolai Petri
nicolai at catpipe.net
Thu Mar 27 07:20:09 PST 2003
>Number: 50348
>Category: kern
>Synopsis: On usb.ko unload usb and usbN devices are not destroyed.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 27 07:20:05 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Nicolai Petri
>Release: FreeBSD 5.0-CURRENT i386
>Organization:
catpipe Systems ApS, Denmark
>Environment:
System: FreeBSD d-montest.catpipe.net 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sun Mar 23 21:34:13 CET 2003 root at d-montest.catpipe.net:/data/obj/data/5.0-src/sys/MYKERN i386
>Description:
When loading usb.ko 2 devices is created for each found usb controller,
these devices are not destroyed on usb.ko unload. This leads to
a kernel panic when accessing /dev/usb* using tools like usbdevs.
>How-To-Repeat:
kldload usb
kldunload usb
usbdevs -v; #instant panic
>Fix:
Register dev_t for each invocation of make_dev (in the softc ?)
and call destroy_dev on unload.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list