Subject: Re: kern/31906 (ral(4) panics kernel when unplugging ASUS card from Apple USB keyboard)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Geert Hendrickx <ghen@NetBSD.org>
List: netbsd-bugs
Date: 01/16/2006 20:25:01
The following reply was made to PR kern/31906; it has been noted by GNATS.

From: Geert Hendrickx <ghen@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/31906 (ral(4) panics kernel when unplugging ASUS card from Apple USB keyboard)
Date: Mon, 16 Jan 2006 21:23:01 +0100

 I can reproduce this crash with other (non-keyboard) USB hubs as well.  As
 before, other USB devices (mice, storage, ...) work fine with this hub.
 Below is a transcript.  
 
 When plugged into an USB port directly, the ASUS card works fine: 
 > ral0: ASUS 802.11g WLAN Drive, rev 2.00/0.01, addr 2
 > ral0: MAC/BBP RT2570 (rev 0x03), RF RT2526, address 00:11:d8:c1:ea:48
 > ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
 > ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
 
 I can configure and use the ral0 network device without problems: 
 > ral0: link state changed to UP
 
 No problem disconnecting the card either: 
 > ral0: link state changed to DOWN
 > ral0: at uhub4 port 5 (addr 2) disconnected
 > ral0 detached
 
 Now with the USB hub: 
 > uhub5 at uhub2 port 1
 > uhub5: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2
 > uhub5: 4 ports with 4 removable, bus powered
 
 Plug card into USB hub: 
 > ral0 at uhub5 port 3
 > ral0: ASUS 802.11g WLAN Drive, rev 2.00/0.01, addr 3
 > ral0: could not set configuration no
 
 Card is not configured, ifconfig -a doesn't show ral0.  
 
 When disconnecting, the kernel crashes: 
 > ral0: at uhub5 port 3 (addr 3) disconnected
 > uvm_fault (0xc062bf60, 0, 0, 1) -> 0xe
 > kernel: supervisor trap page fault, code=0
 > Stopped in pid 6.1 (usb2) at netbsd:ieee80211_remove_vap+0x31: movl 0 (%eax),%ebx
 > db> 
 
 I can compile a debugging kernel and provide a backtrace too, if anyone is
 interested (keyboard still works).  
 
 	Geert