Subject: kern/12366: unplugging usb kbd locks up kernel
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 03/09/2001 08:53:24
>Number:         12366
>Category:       kern
>Synopsis:       unplugging usb kbd locks up kernel
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 09 08:54:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Release:        NetBSD-current Mar 7, 2001
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Environment:
	
System: NetBSD capsicum.wsrcc.com 1.5S NetBSD 1.5S (WSRCC_ATHLON) #1: Fri Mar 9 04:52:53 PST 2001 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/src/sys/arch/i386/compile/WSRCC_ATHLON i386
Architecture: i386
Machine: i386

>Description:
	Unplugging a usb kbd while running XFree86 4.02 locks up the kernel.

>How-To-Repeat:
	configure a usb kbd and run X.  I used the following 
	in /etc/X11/XF86Config:

	    Section "InputDevice"
		    Identifier  "Keyboard0"
		    Driver      "keyboard"
		    Option	    "XkbModel"	"pc104"
		    Option      "Protocol" "wskbd"
		    Option      "Device" "/dev/wskbd"
	    EndSection

	unplug kbd.  plug back in.  Pound on keys screeming "AAAAAAARRRHHH 
	another 15minute fsck!"  The last step is optional.

	The machine is locked up and doesn't repond to any keys, mouse
	or pings from the net.

	(Other info that may or may not influence the hang.  I also
	had a ps/2 kbd connected at the time.  The ps/2 kbd was not
	disconnected and reconnected.  Both keyboards were "active"
	via the keyboard mux.)

>Fix:
	superglue the kbd connector in.  (There may be another solution 
	involving only code...)
>Release-Note:
>Audit-Trail:
>Unformatted: