lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <81b0412b0908020940l3fcb2c2ds184fa87df82b5730@mail.gmail.com>
Date:	Sun, 2 Aug 2009 18:40:56 +0200
From:	Alex Riesen <raa.lkml@...il.com>
To:	linux-usb@...r.kernel.org
Cc:	Oliver Neukum <oliver@...kum.name>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Greg Kroah-Hartman <greg@...ah.com>,
	Alan Cox <alan@...rguk.ukuu.org.uk>
Subject: Oops in CDC ACM after an Openmoko phone (neo1973) changes its usb 
	interface from ACM to Ethernet

Starting since about 2.6.31-rc2, kernel oopses when I boot a kernel from
Openmoko's bootloader. The bootloader is connected through CDC ACM,
and when the kernel boots, the usb device changes to usb ethernet.
Shortly after that kernel oopses:

[   29.346931] usb 5-1: USB disconnect, address 2
[   29.347343] usb0: unregister 'cdc_ether' usb-0000:00:1d.0-1, CDC
Ethernet Device
[   30.573530] usb 5-1: new full speed USB device using uhci_hcd and address 4
[   30.750689] usb 5-1: New USB device found, idVendor=1457, idProduct=5119
[   30.750795] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   30.750923] usb 5-1: Product: Neo1973 Bootloader U-Boot 1.3.2-rc2
[   30.751005] usb 5-1: Manufacturer: OpenMoko, Inc
[   30.751071] usb 5-1: SerialNumber: 0000000
[   30.752032] usb 5-1: configuration #1 chosen from 2 choices
[   30.793924] cdc_acm 5-1:1.0: This device cannot do calls on its
own. It is not a modem.
[   30.794103] cdc_acm 5-1:1.0: ttyACM0: USB ACM device
[   30.799509] usbcore: registered new interface driver cdc_acm
[   30.799610] cdc_acm: v0.26:USB Abstract Control Model driver for
USB modems and ISDN adapters
[   47.346852] usb 5-1: USB disconnect, address 4
[   47.352989] tty_port_close_start: count = -1
[   48.358107] tty_port_close_start: count = -1
[   49.362088] tty_port_close_start: count = -1
[   50.365975] tty_port_close_start: count = -1
[   51.369831] tty_port_close_start: count = -1
[   52.373640] tty_port_close_start: count = -1
[   53.377348] tty_port_close_start: count = -1
[   54.381038] tty_port_close_start: count = -1
[   55.384717] tty_port_close_start: count = -1
[   56.388336] tty_port_close_start: count = -1
[   57.391932] tty_port_close_start: count = -1
[   58.395485] tty_port_close_start: count = -1
[   59.399000] tty_port_close_start: count = -1
[   60.400401] tty_port_close_start: count = -1
[   61.401795] tty_port_close_start: count = -1
[   62.405239] tty_port_close_start: count = -1
[   63.408676] tty_port_close_start: count = -1
[   64.412031] tty_port_close_start: count = -1
[   65.415241] tty_port_close_start: count = -1
[   66.418339] tty_port_close_start: count = -1
[   67.421433] tty_port_close_start: count = -1
[   68.424520] tty_port_close_start: count = -1
[   69.427630] tty_port_close_start: count = -1
[   70.430787] tty_port_close_start: count = -1
[   71.433903] tty_port_close_start: count = -1
[   72.437040] tty_port_close_start: count = -1
[   73.440171] tty_port_close_start: count = -1
[   74.441520] tty_port_close_start: count = -1
[   75.073519] usb 5-1: new full speed USB device using uhci_hcd and address 5
[   75.271699] usb 5-1: New USB device found, idVendor=1457, idProduct=5122
[   75.271709] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   75.271716] usb 5-1: Product: RNDIS/Ethernet Gadget
[   75.271722] usb 5-1: Manufacturer: Linux 2.6.24/s3c2410_udc
[   75.272788] usb 5-1: configuration #1 chosen from 2 choices
[   75.288865] usb0: register 'cdc_ether' at usb-0000:00:1d.0-1, CDC
Ethernet Device, 1a:e0:cd:b1:57:c0
[   75.442858] tty_port_close_start: count = -1
[   75.442881] general protection fault: 0000 [#1] SMP
[   75.444775] last sysfs file:
/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-1/uevent
[   75.446041] CPU 0
[   75.446041] Modules linked in: cdc_acm uvcvideo cdc_ether usbnet
ohci1394 wmi videodev v4l1_compat v4l2_compat_ioctl32 ieee1394 mii
[   75.446041] Pid: 2127, comm: minicom Not tainted 2.6.31-rc2-t #64
XPS M1330
[   75.446041] RIP: 0010:[<ffffffff812a76e1>]  [<ffffffff812a76e1>]
usb_autopm_do_interface+0x35/0xeb
[   75.453444] RSP: 0018:ffff88007d05faf8  EFLAGS: 00010292
[   75.453444] RAX: 656369766564646a RBX: 00000000ffffffed RCX: 0000000000000000
[   75.453444] RDX: ffffffffa00755b8 RSI: 0000000000000001 RDI: 656369766564646a
[   75.453444] RBP: ffff88007d05fb28 R08: 0000000000000001 R09: 0000000000000000
[   75.453444] R10: ffffffff810594a7 R11: 0000000000000082 R12: ffff88007c527800
[   75.453444] R13: 6563697665645ed2 R14: 6563697665645f62 R15: 0000000000000001
[   75.453444] FS:  00007fe65d7916f0(0000) GS:ffff880001e56000(0000)
knlGS:0000000000000000
[   75.453444] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   75.453444] CR2: 00007f83ba6c3ce0 CR3: 000000007d0e1000 CR4: 00000000000006f0
[   75.453444] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   75.453444] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   75.453444] Process minicom (pid: 2127, threadinfo
ffff88007d05e000, task ffff88007dd33da0)
[   75.453444] Stack:
[   75.453444]  656369766564646a 0000000000000000 ffff88007dead000
ffff88007dead000
[   75.453444] <0> 0000000000000000 0000000000000010 ffff88007d05fb38
ffffffff812a77b2
[   75.453444] <0> ffff88007d05fbc8 ffffffffa0072e19 0000000000000282
ffff88007d2f7000
[   75.453444] Call Trace:
[   75.453444]  [<ffffffff812a77b2>] usb_autopm_get_interface+0xe/0x10
[   75.453444]  [<ffffffffa0072e19>] acm_port_down+0x3f/0x1bb [cdc_acm]
[   75.453444]  [<ffffffff811f0af1>] ? tty_port_close_start+0xc1/0x153
[   75.453444]  [<ffffffffa0073258>] acm_tty_close+0x3d/0x83 [cdc_acm]
[   75.453444]  [<ffffffff811eaca7>] tty_release_dev+0x1bf/0x4e8
[   75.453444]  [<ffffffffa00732c3>] ? acm_tty_open+0x25/0x2ae [cdc_acm]
[   75.453444]  [<ffffffff8141e0f2>] ? mutex_unlock+0x9/0xb
[   75.453444]  [<ffffffffa00734fc>] ? acm_tty_open+0x25e/0x2ae [cdc_acm]
[   75.453444]  [<ffffffff811e8346>] ? check_tty_count+0x21/0xac
[   75.453444]  [<ffffffff811eb55d>] tty_open+0x33c/0x427
[   75.453444]  [<ffffffff810c3a81>] chrdev_open+0x150/0x16f
[   75.453444]  [<ffffffff8141fba7>] ? _spin_unlock+0x26/0x2a
[   75.453444]  [<ffffffff810c1a44>] ? file_move+0x1e/0x50
[   75.453444]  [<ffffffff810c3931>] ? chrdev_open+0x0/0x16f
[   75.453444]  [<ffffffff810bf594>] __dentry_open+0x150/0x26f
[   75.453444]  [<ffffffff810bf780>] nameidata_to_filp+0x41/0x52
[   75.453444]  [<ffffffff810cc55e>] do_filp_open+0x4ee/0x9ce
[   75.453444]  [<ffffffff810d5700>] ? alloc_fd+0x11d/0x12e
[   75.453444]  [<ffffffff810bf359>] do_sys_open+0x5d/0x10b
[   75.453444]  [<ffffffff810bf430>] sys_open+0x1b/0x1d
[   75.453444]  [<ffffffff8100baab>] system_call_fastpath+0x16/0x1b
[   75.453444] Code: 56 41 55 41 54 49 89 fc 53 bb ed ff ff ff 48 83
ec 08 4c 8b 77 30 49 8d 86 08 05 00 00 4d 8d ae 70 ff ff ff 48 89 45
d0 48 89 c7 <41> 0f b6 b5 6b 03 00 00 e8 00 6e 17 00 41 83 7c 24 24 00
0f 84
[   75.453444] RIP  [<ffffffff812a76e1>] usb_autopm_do_interface+0x35/0xeb
[   75.453444]  RSP <ffff88007d05faf8>
[   75.455529] ---[ end trace 03be7af14b545501 ]---


Full dmesg attached.
The later kernels have multiple oopses in a row and lock hard, so I
could not get
the oopses for something more recent than "something past 2.6.31-rc2".
I'll try to bisect, by it'll take some time.

Download attachment "crash" of type "application/octet-stream" (54524 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ