Bug#583082: kernel: khubd crash
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 25 May 2010, Ben Hutchings wrote:
> We need more information than this. What USB devices and drivers are you
> using? (lsusb, lsmod)
# uname -a
Linux mailq.aaaaaaaa.net 2.6.26-2-sparc64 #1 Wed May 12 20:39:46 UTC 2010 sparc64 GNU/Linux
# cat /proc/cpuinfo
cpu : TI UltraSparc IIi (Sabre)
fpu : UltraSparc IIi integrated FPU
prom : OBP 3.15.2 1998/11/10 10:35
type : sun4u
ncpus probed : 1
ncpus active : 1
D$ parity tl1 : 0
I$ parity tl1 : 0
Cpu0ClkTck : 0000000013d92d40
MMU Type : Spitfire
# free
total used free shared buffers cached
Mem: 510432 461736 48696 0 232 133048
- -/+ buffers/cache: 328456 181976
Swap: 5465216 0 5465216
# lsmod
Module Size Used by
tun 10820 1
ipv6 296924 16
nf_nat_ftp 3264 0
nf_conntrack_ftp 9192 1 nf_nat_ftp
nf_conntrack_netbios_ns 3008 0
iptable_nat 6352 0
nf_nat 19786 2 nf_nat_ftp,iptable_nat
xt_length 2368 1
xt_MARK 3776 2
xt_CONNMARK 4288 2
iptable_mangle 3520 1
nf_conntrack_ipv4 16536 25 iptable_nat,nf_nat
ipt_LOG 6464 14
xt_limit 3328 16
ipt_REJECT 3712 5
xt_state 2688 20
nf_conntrack 71696 8 nf_nat_ftp,nf_conntrack_ftp,nf_conntrack_netbios_n s,iptable_nat,nf_nat,xt_CONNMARK,nf_conntrack_ipv4 ,xt_state
xt_tcpudp 3776 78
xt_mark 3200 4
iptable_filter 3456 1
ip_tables 18000 3 iptable_nat,iptable_mangle,iptable_filter
x_tables 22024 11 iptable_nat,xt_length,xt_MARK,xt_CONNMARK,ipt_LOG, xt_limit,ipt_REJECT,xt_state,xt_tcpudp,xt_mark,ip_ tables
ext3 138256 1
jbd 44264 1 ext3
sha256_generic 13888 0
aes_generic 33640 6
cbc 3968 3
dm_crypt 13960 1
crypto_blkcipher 18116 5 cbc,dm_crypt
dm_mod 56840 7 dm_crypt
evdev 10880 0
xfs 483512 4
raid1 21120 4
md_mod 84704 5 raid1
ide_cd_mod 35528 0
cdrom 38752 1 ide_cd_mod
ide_disk 13184 12
ata_generic 6148 0
libata 168400 1 ata_generic
scsi_mod 164896 1 libata
ide_pci_generic 5380 0 [permanent]
cmd64x 6592 0 [permanent]
sunhme 29872 0
ehci_hcd 33676 0
ohci_hcd 20868 0
# lsusb
- - command get stuck and cannot be killed.
# ps auxww | grep lsusb | grep -v grep
root 3150 0.0 0.2 2808 1336 pts/0 D+ 09:46 0:00 lsusb
Attached to usb port is an ps2-to-usb convertor for a d-link 2 port KVM,
DKVM-2K (keyboard cable). The idea is to use the same monitor for 2
different computers - sparc/intel) and this way I can trick the KVM switch
to enable vga output.
# dmesg
[ 553.669333] usb 2-1: new low speed USB device using ohci_hcd and address 2
[ 1420.563261] INFO: task khubd:124 blocked for more than 120 seconds.
[ 1420.563612] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1420.563959] khubd D 00000000005d88f4 0 124 2
[ 1420.563987] Call Trace:
[ 1420.564000] [00000000005d7dfc] usb_kill_urb+0xb8/0xf0
[ 1420.564043] [00000000005d88f4] usb_start_wait_urb+0x6c/0xa8
[ 1420.564072] [00000000005d8b0c] usb_control_msg+0xd8/0xf4
[ 1420.564098] [00000000005d376c] hub_port_init+0x284/0x678
[ 1420.564123] [00000000005d4c18] hub_thread+0x64c/0xca0
[ 1420.564147] [0000000000469490] kthread+0x4c/0x78
[ 1420.564177] [0000000000426df8] kernel_thread+0x38/0x48
[ 1420.564203] [0000000000469328] kthreadd+0x98/0x11c
[ 1420.564310] INFO: task lsusb:3150 blocked for more than 120 seconds.
[ 1420.564597] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1420.564929] lsusb D 000000000068a674 0 3150 3129
[ 1420.564954] Call Trace:
[ 1420.564966] [0000000000689d40] schedule_timeout+0x20/0xa4
[ 1420.564992] [000000000068a674] __down+0x54/0x84
[ 1420.565014] [000000000046d004] down+0x30/0x50
[ 1420.565047] [00000000005dece8] usbdev_ioctl+0x28/0x16b8
[ 1420.565074] [00000000004bc854] vfs_ioctl+0x64/0x70
[ 1420.565102] [00000000004bcb2c] do_vfs_ioctl+0x2cc/0x2e4
[ 1420.565127] [00000000004bcb9c] SyS_ioctl+0x58/0x7c
[ 1420.565149] [00000000004e18a0] do_ioctl32_pointer+0x14/0x20
[ 1420.565186] [00000000004e1844] compat_sys_ioctl+0x3c8/0x410
[ 1420.565212] [0000000000406114] linux_sparc_syscall+0x3c/0x44
/var/log/messages:
May 28 09:44:11 mailq kernel: [ 553.669333] usb 2-1: new low speed USB device using ohci_hcd and address 2
Without kvm cable attached lsusb list the following entries:
# lsusb
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Output is not consistent and sometimes I only get (between reboots):
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Anyway, I only have this problem for the last 2 kernels. Everything was
working fine before. I did not had any kernel crash before (not sure
about lsusb).
Today for the first time I tried to connect a memory stick and the result
was complete blockage of the computer.
The usb board works fine on computers using intel processors.
Output for "strace -f -ff -o lsusb.log lsusb" attached. Also attached
output for dmesg.
Sincerely,
Gabriel
- --
// Gabriel VLASIU
//
// OpenGPG-KeyID : 0xE684206E
// OpenGPG-Fingerprint: 0C3D 9F8B 725D E243 CB3C 8428 796A DB1F E684 206E
// OpenGPG-URL : http://www.vlasiu.net/public.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFL/3R7eWrbH+aEIG4RAkglAJ0aXaTXuZH3d9MZAPu6rEm2AphpbwC fcvLn
wtJA8V1gD2/S0/K5+29wBIo=
=Lm+D
-----END PGP SIGNATURE-----execve("/usr/sbin/lsusb", ["lsusb"], [/* 12 vars */]) = 0
brk(0) = 0x32000
uname({sys="Linux", node="mailq.vlasiu.net", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25086, ...}) = 0
mmap(NULL, 25086, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7f70000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = 0
open("/usr/lib/libz.so.1", O_RDONLY) = 3
read(3, "177ELF121 3 22 1 32230 004 "... , 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=81184, ...}) = 0
mmap(NULL, 145408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf7f24000
mprotect(0xf7f38000, 57344, PROT_NONE) = 0
mmap(0xf7f46000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0xf7f46000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = 0
open("/lib/libusb-0.1.so.4", O_RDONLY) = 3
read(3, "177ELF121 3 22 1 25330 004 "... , 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=32000, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7f7c000
mmap(NULL, 96472, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf7f0c000
mprotect(0xf7f12000, 65536, PROT_NONE) = 0
mmap(0xf7f22000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0xf7f22000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "177ELF121 3 22 1 1374300 004 ".. ., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1443964, ...}) = 0
mmap(NULL, 1513872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf7d98000
mprotect(0xf7ef2000, 65536, PROT_NONE) = 0
mmap(0xf7f02000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15a000) = 0xf7f02000
mmap(0xf7f08000, 6544, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf7f08000
close(3) = 0
munmap(0xf7f70000, 25086) = 0
brk(0) = 0x32000
brk(0x54000) = 0x54000
open("./usb.ids", O_RDONLY) = -1 ENOENT (No such file or directory)
open("./usb.ids.gz", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/lib/usbutils/usb.ids", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=382646, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7f76000
read(3, "#
# List of USB ID's
#
# Maintain"..., 16384) = 16384
_llseek(3, 0, [16384], SEEK_CUR) = 0
read(3, "88c Expert mouseCLOCK USB II HBG"..., 8192) = 8192
read(3, "WinFast PalmTop/Novo TV Video
60"..., 8192) = 8192
read(3, "stems, Inc.
0100 Mouse-Trak 3-b"..., 8192) = 8192
read(3, "c VideoCAM Web V3
700d G-Shot "..., 8192) = 8192
read(3, "2003
04db Windows Powered Smart"..., 8192) = 8192
read(3, "
c291 WingMan Formula Force
c2"..., 8192) = 8192
read(3, "f101 Atlas Modem
047f Plantroni"..., 8192) = 8192
read(3, " W6400PG
1405 W8400PG
150f BI"..., 8192) = 8192
brk(0x76000) = 0x76000
read(3, "olpix 2000 (ptp)
0402 DSC D100 "..., 8192) = 8192
read(3, "evio C2 Mass Storage Device
0729"..., 8192) = 8192
read(3, "tor Interface
0071 Touchmonitor"..., 8192) = 8192
read(3, "C
01bd MFC-8660DN
01be DCP-75"..., 8192) = 8192
read(3, "ISDN TA
0541 Sirf Technology, In"..., 8192) = 8192
read(3, "PC CAM 300A
c200 gSmart 300
c2"..., 8192) = 8192
read(3, "UA-101
0080 G-70
0081 G-70
0"..., 8192) = 8192
read(3, " HCF V.90 Data/Fax Modem
8203 "..., 8192) = 8192
read(3, " a701 JumpDrive FireFly
b002 U"..., 8192) = 8192
read(3, "55 Space Shuttle Hi-Tech Co., Lt"..., 8192) = 8192
read(3, "P3 Player
5557 RCA CDS6300
069d"..., 8192) = 8192
read(3, "00 Internet Phone
c201 Interne"..., 8192) = 8192
brk(0x98000) = 0x98000
read(3, "o DFU
2881 M-Audio DFU
0764 Cy"..., 8192) = 8192
read(3, "P-S100 port
0203 Digital Voice "..., 8192) = 8192
read(3, "2 MOTU Audio for 64 bit
07ff Un"..., 8192) = 8192
read(3, "martdio Reader/Writer
0897 Laute"..., 8192) = 8192
read(3, "d Programmer
21a5 etrex Cx (msc"..., 8192) = 8192
read(3, " 0006 Optical Mouse WOP-35 / Tru"..., 8192) = 8192
read(3, "ative mode), TH210
0302 POS Pri"..., 8192) = 8192
read(3, "., Ltd, Technology Center
0b89 A"..., 8192) = 8192
read(3, "01 Fujitsu Pocket Loox 600 PDA
0"..., 8192) = 8192
read(3, "10 PC/SC Smart Card Reader
0ca7 "..., 8192) = 8192
read(3, "vice
0551 V-551 Composite Devic"..., 8192) = 8192
read(3, "UMS mode)
0801 Cowon D2 (MTP mo"..., 8192) = 8192
read(3, "0001 Blackberry Handheld
0fce S"..., 8192) = 8192
brk(0xba000) = 0xba000
read(3, "ls Corp.
10a9 SK Teletech Co., L"..., 8192) = 8192
read(3, "000 Demodulator
0080 SkyEye Wea"..., 8192) = 8192
read(3, "Neo1973 u-boot usbtty generic ser"..., 8192) = 8192
read(3, "80 1 port to Serial
8081 1 por"..., 8192) = 8192
read(3, "
18d9 Kaba
01a0 B-Net 91 07
18"..., 8192) = 8192
read(3, "HEN) CO., LTD.
1c87 2N TELEKOMUN"..., 8192) = 8192
read(3, " Tripp-Lite
2008 U209-000-R Ser"..., 8192) = 8192
read(3, "Stick Reader
595a IRTOUCHSYSTEMS"..., 8192) = 8192
read(3, "one
AT 0500 Telephony Undefined
"..., 8192) = 8192
read(3, "64 and | (Backslash and Bar, U"..., 8192) = 8192
read(3, " Exit
205 AC Maximize
206 AC "..., 8192) = 8192
read(3, "
014 Optional Mfg. Function 5
"..., 8192) = 5814
brk(0xdc000) = 0xdc000
read(3, ""..., 8192) = 0
close(3) = 0
munmap(0xf7f76000, 8192) = 0
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOE XEC|0x4) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=100, ...}) = 0
fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
getdents(3, /* 5 entries */, 8192) = 80
close(3) = 0
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOE XEC|0x4) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=100, ...}) = 0
getdents(3, /* 5 entries */, 8192) = 80
getdents(3, /* 0 entries */, 8192) = 0
close(3) = 0
open("/dev/bus/usb/003", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOE XEC|0x4) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
getdents(3, /* 3 entries */, 8192) = 48
open("/dev/bus/usb/003/001", O_RDWR) = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xffffd948) = 0
read(4, "221120 @35k 1263211"..., 18) = 18
read(4, " 231 11 340"..., 8) = 8
read(4, " |