[usb_wwan] unable to handle kernel NULL pointer dereference

Bug #1308537 reported by Moez Bouhlel
90
This bug affects 16 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

As seen on: https://errors.ubuntu.com/problem/3f0d2482c07d31441d77a864477d8789a78b5e23

--

the lastest linux kernel update 3.13.0-24.46-generic 3.13.9 (maybe the previous one too) causes ModemManager to crash.

sometimes, when using my usb modem (Huawei E367), it disconnects, and it becomes no longer detected by networkManager
even lsusb command doesn't works (terminal waiting for command output) and shut-downing laptop doesn't complete

this happens rarely since last days (~6 days), i'm not sure if the 2 previous kernel update had the same problems.

note: some updates i did since last week:
  usb-modeswitch to 2.1.1+repack0-1ubuntu1
  usb-modemswitch-data to 20140327-1
  network-manager to 0.9.8.8-0ubuntu7
  modemmanager to 1.0.0-2ubuntu1

that's a part of dmesg:

[ 60.800205] usb 1-1.2: new high-speed USB device number 6 using ehci-pci
[ 60.894660] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1506
[ 60.894665] usb 1-1.2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
[ 60.894667] usb 1-1.2: Product: HUAWEI Mobile
[ 60.894670] usb 1-1.2: Manufacturer: Huawei Technologies
[ 60.995115] usb-storage 1-1.2:1.5: USB Mass Storage device detected
[ 60.995253] scsi9 : usb-storage 1-1.2:1.5
[ 60.995376] usb-storage 1-1.2:1.6: USB Mass Storage device detected
[ 60.995546] scsi10 : usb-storage 1-1.2:1.6
[ 61.496860] init: plymouth-stop pre-start process (2937) terminated with status 1
[ 61.670486] usbcore: registered new interface driver usbserial
[ 61.670497] usbcore: registered new interface driver usbserial_generic
[ 61.670504] usbserial: USB Serial support registered for generic
[ 61.745311] usbcore: registered new interface driver option
[ 61.745343] usbserial: USB Serial support registered for GSM modem (1-port)
[ 61.745440] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 61.745647] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 61.745708] option 1-1.2:1.3: GSM modem (1-port) converter detected
[ 61.745841] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 61.745854] option 1-1.2:1.4: GSM modem (1-port) converter detected
[ 61.745915] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 61.770270] usbcore: registered new interface driver cdc_wdm
[ 61.843039] qmi_wwan 1-1.2:1.1: cdc-wdm0: USB WDM device
[ 61.843302] qmi_wwan 1-1.2:1.1 wwan0: register 'qmi_wwan' at usb-0000:00:1a.0-1.2, WWAN/QMI device, ea:19:6a:61:bf:5c
[ 61.843444] usbcore: registered new interface driver qmi_wwan
[ 61.849565] init: Failed to spawn ufw pre-start process: unable to execute: No such file or directory
[ 61.851836] init: Failed to spawn ufw post-stop process: unable to execute: No such file or directory
[ 66.340565] audit_printk_skb: 225 callbacks suppressed
[ 66.340568] type=1400 audit(1397646973.192:87): apparmor="DENIED" operation="mkdir" profile="/usr/lib/telepathy/mission-control-5" name="/var/lib/gdm/.config/libaccounts-glib/" pid=3731 comm="mission-control" requested_mask="c" denied_mask="c" fsuid=124 ouid=124
[ 66.341982] type=1400 audit(1397646973.196:88): apparmor="DENIED" operation="open" profile="/usr/lib/telepathy/mission-control-5" name="/usr/share/dconf/profile/gdm" pid=3731 comm="mission-control" requested_mask="r" denied_mask="r" fsuid=124 ouid=0
[ 67.019714] scsi 9:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 67.022204] scsi 10:0:0:0: Direct-Access HUAWEI TF CARD Storage PQ: 0 ANSI: 2
[ 67.024330] sr1: scsi-1 drive
[ 67.024458] sr 9:0:0:0: Attached scsi CD-ROM sr1
[ 67.024520] sr 9:0:0:0: Attached scsi generic sg2 type 5
[ 67.025063] sd 10:0:0:0: Attached scsi generic sg3 type 0
[ 67.028154] sd 10:0:0:0: [sdb] Attached SCSI removable disk
[ 76.842946] usb 1-1.2: USB disconnect, device number 6
[ 76.845200] option1 ttyUSB0: option_instat_callback: error -108
[ 76.845383] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 76.845400] option 1-1.2:1.0: device disconnected
[ 76.847619] qmi_wwan 1-1.2:1.1 wwan0: unregister 'qmi_wwan' usb-0000:00:1a.0-1.2, WWAN/QMI device
[ 76.866208] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 76.866237] option 1-1.2:1.3: device disconnected
[ 76.866391] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 76.866407] option 1-1.2:1.4: device disconnected
[ 80.171902] type=1400 audit(1397646987.012:89): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=3868 comm="apparmor_parser"
[ 80.171910] type=1400 audit(1397646987.012:90): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=3868 comm="apparmor_parser"
[ 80.172321] type=1400 audit(1397646987.012:91): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=3868 comm="apparmor_parser"
[ 80.396920] usb 1-1.2: new high-speed USB device number 7 using ehci-pci
[ 80.491907] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1446
[ 80.491911] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 80.491913] usb 1-1.2: Product: HUAWEI Mobile
[ 80.491915] usb 1-1.2: Manufacturer: Huawei Technologies
[ 80.591412] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 80.591669] scsi11 : usb-storage 1-1.2:1.0
[ 80.591883] usb-storage 1-1.2:1.1: USB Mass Storage device detected
[ 80.592112] scsi12 : usb-storage 1-1.2:1.1
[ 82.223279] usb 1-1.2: USB disconnect, device number 7
[ 86.125760] usb 1-1.2: new high-speed USB device number 8 using ehci-pci
[ 86.220993] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1506
[ 86.220997] usb 1-1.2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
[ 86.220999] usb 1-1.2: Product: HUAWEI Mobile
[ 86.221001] usb 1-1.2: Manufacturer: Huawei Technologies
[ 86.320666] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 86.320844] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 86.321000] option 1-1.2:1.1: GSM modem (1-port) converter detected
[ 86.321184] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 86.321311] option 1-1.2:1.2: GSM modem (1-port) converter detected
[ 86.321395] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 86.321453] option 1-1.2:1.3: GSM modem (1-port) converter detected
[ 86.321493] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[ 86.321547] option 1-1.2:1.4: GSM modem (1-port) converter detected
[ 86.321609] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB4
[ 86.321663] usb-storage 1-1.2:1.5: USB Mass Storage device detected
[ 86.321732] scsi13 : usb-storage 1-1.2:1.5
[ 86.321848] usb-storage 1-1.2:1.6: USB Mass Storage device detected
[ 86.321886] scsi14 : usb-storage 1-1.2:1.6
[ 90.204704] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 90.204767] IP: [<ffffffffa099762f>] usb_wwan_write+0x12f/0x2e0 [usb_wwan]
[ 90.204796] PGD 23f48b067 PUD 21c653067 PMD 0
[ 90.204815] Oops: 0000 [#1] SMP
[ 90.204830] Modules linked in: qmi_wwan cdc_wdm option usbnet usb_wwan usbserial ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp bridge stp llc acpi_call(OF) nvram ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF) vboxdrv(OF) uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev ath3k btusb rfcomm bnep bluetooth binfmt_misc joydev snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc arc4 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp snd_seq_midi ath9k kvm_intel snd_seq_midi_event ath9k_common kvm ath9k_hw snd_rawmidi ath nls_iso8859_1 mac80211 snd_seq psmouse serio_raw snd_seq_device lpc_ich snd_timer cfg80211 mei_me snd mei soundcore sparse_keymap toshiba_bluetooth mac_hid parport_pc ppdev lp parport btrfs xor raid6_pq libcrc32c dm_crypt ums_realtek usb_storage radeon crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper i2c_algo_bit ablk_helper ttm cryptd drm_kms_helper drm ahci r8169 libahci mii wmi video
[ 90.205325] CPU: 4 PID: 1066 Comm: ModemManager Tainted: GF O 3.13.0-24-generic #46-Ubuntu
[ 90.205358] Hardware name: TOSHIBA SATELLITE L870-18Z/PLCSF8, BIOS 6.60 4/03/2013
[ 90.205385] task: ffff88021c6b8000 ti: ffff88023e616000 task.ti: ffff88023e616000
[ 90.205411] RIP: 0010:[<ffffffffa099762f>] [<ffffffffa099762f>] usb_wwan_write+0x12f/0x2e0 [usb_wwan]
[ 90.205446] RSP: 0018:ffff88023e617d58 EFLAGS: 00010283
[ 90.205471] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000001
[ 90.205500] RDX: 0000000000000000 RSI: 0000000000220020 RDI: 0000000000000202
[ 90.205524] RBP: ffff88023e617dd0 R08: 0000000000000000 R09: 0000000000000000
[ 90.205549] R10: 0000000000000011 R11: 0000000000000293 R12: 0000000000001000
[ 90.205574] R13: 0000000000000000 R14: 0000000000000000 R15: ffff8802189f0500
[ 90.205599] FS: 00007f2d2968a840(0000) GS:ffff88024ed00000(0000) knlGS:0000000000000000
[ 90.205627] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 90.205647] CR2: 0000000000000068 CR3: 000000023e2f6000 CR4: 00000000001407e0
[ 90.205672] Stack:
[ 90.205680] ffff88023f6182e8 ffff8802189f0500 00000001814498d9 ffff8802189f0590
[ 90.205709] dead000000100100 ffff88023f618000 00001c04ad65de28 ffff88023e743000
[ 90.205737] ffff8802189f0580 ffff880241e478e0 ffff8800ad65d000 ffff88023f618000
[ 90.205765] Call Trace:
[ 90.205779] [<ffffffffa095796d>] serial_write+0x4d/0xb0 [usbserial]
[ 90.205804] [<ffffffff814453a6>] n_tty_write+0x166/0x4e0
[ 90.205827] [<ffffffff8109a790>] ? wake_up_state+0x20/0x20
[ 90.205848] [<ffffffff81441ef8>] tty_write+0x148/0x2a0
[ 90.205868] [<ffffffff81445240>] ? process_echoes+0x70/0x70
[ 90.205891] [<ffffffff811b9534>] vfs_write+0xb4/0x1f0
[ 90.205910] [<ffffffff811b9f69>] SyS_write+0x49/0xa0
[ 90.205931] [<ffffffff8172663f>] tracesys+0xe1/0xe6
[ 90.205948] Code: 04 0f 85 28 01 00 00 48 8b 45 b0 48 8b 00 48 8b 78 10 e8 95 a0 ba e0 85 c0 0f 88 bd 00 00 00 81 fb 00 10 00 00 41 bc 00 10 00 00 <49> 8b 7d 68 44 0f 4e e3 48 8b 75 c0 49 63 c4 48 89 c2 48 89 45
[ 90.206064] RIP [<ffffffffa099762f>] usb_wwan_write+0x12f/0x2e0 [usb_wwan]
[ 90.206099] RSP <ffff88023e617d58>
[ 90.206108] CR2: 0000000000000068
[ 90.212715] ---[ end trace d5049c6feb598e80 ]---
[ 92.336441] scsi 13:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 92.336968] scsi 14:0:0:0: Direct-Access HUAWEI TF CARD Storage PQ: 0 ANSI: 2
[ 92.339241] sr1: scsi-1 drive
[ 92.339379] sr 13:0:0:0: Attached scsi CD-ROM sr1
[ 92.339437] sr 13:0:0:0: Attached scsi generic sg2 type 5
[ 92.339616] sd 14:0:0:0: Attached scsi generic sg3 type 0
[ 92.346739] sd 14:0:0:0: [sdb] Attached SCSI removable disk

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: linux-image-3.13.0-24-generic 3.13.0-24.46
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: lejenome 4177 F.... pulseaudio
 /dev/snd/controlC0: lejenome 4177 F.... pulseaudio
 /dev/snd/pcmC0D0p: lejenome 4177 F...m pulseaudio
CurrentDesktop: GNOME
Date: Wed Apr 16 13:42:00 2014
HibernationDevice: RESUME=UUID=f727c496-92fb-4b5c-9727-c977b063862a
InstallationDate: Installed on 2013-10-23 (174 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MachineType: TOSHIBA SATELLITE L870-18Z
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.13.0-24-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash intel_pstate=enable vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-24-generic N/A
 linux-backports-modules-3.13.0-24-generic N/A
 linux-firmware 1.127
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 4/03/2013
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: 6.60
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: PLCSF8
dmi.board.vendor: Intel
dmi.board.version: Type2 - Board Version
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: OEM Chassis Manufacturer
dmi.chassis.version: OEM Chassis Version
dmi.modalias: dmi:bvnInsydeCorp.:bvr6.60:bd4/03/2013:svnTOSHIBA:pnSATELLITEL870-18Z:pvrPSKFNE-00Q03QG4:rvnIntel:rnPLCSF8:rvrType2-BoardVersion:cvnOEMChassisManufacturer:ct10:cvrOEMChassisVersion:
dmi.product.name: SATELLITE L870-18Z
dmi.product.version: PSKFNE-00Q03QG4
dmi.sys.vendor: TOSHIBA

Revision history for this message
Moez Bouhlel (lejenome) wrote :
Revision history for this message
Moez Bouhlel (lejenome) wrote :
Revision history for this message
Moez Bouhlel (lejenome) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.15 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15-rc1-trusty/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Moez Bouhlel (lejenome) wrote :

ok, i'm currently running mainline kernel on recovery mode, i will need at least two days to check if this bug not fixed because it happens on Trusty kernel rarely (one or two times the whole day)

Revision history for this message
Moez Bouhlel (lejenome) wrote :

running linux 3.15-rc1 for along 2 days without having any trouble on the usb modem connection

tags: added: kernel-fixed-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Moez Bouhlel (lejenome) wrote :
Download full text (7.1 KiB)

just an hour later, i get the same bug :( it seems not fixed yet on linux 3.15-rc1

that's a part of dmesg with the lastest error:

[ 7640.417057] usb 1-1.2: new high-speed USB device number 9 using ehci-pci
[ 7640.511625] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1506
[ 7640.511629] usb 1-1.2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
[ 7640.511632] usb 1-1.2: Product: HUAWEI Mobile
[ 7640.511634] usb 1-1.2: Manufacturer: Huawei Technologies
[ 7640.611578] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 7640.611694] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 7640.611826] option 1-1.2:1.1: GSM modem (1-port) converter detected
[ 7640.611900] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 7640.611973] option 1-1.2:1.2: GSM modem (1-port) converter detected
[ 7640.612036] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 7640.612109] option 1-1.2:1.3: GSM modem (1-port) converter detected
[ 7640.612182] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[ 7640.612234] option 1-1.2:1.4: GSM modem (1-port) converter detected
[ 7640.612325] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB4
[ 7640.612380] usb-storage 1-1.2:1.5: USB Mass Storage device detected
[ 7640.612475] scsi16 : usb-storage 1-1.2:1.5
[ 7640.612595] usb-storage 1-1.2:1.6: USB Mass Storage device detected
[ 7640.612660] scsi17 : usb-storage 1-1.2:1.6
[ 7644.626036] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 7644.626041] IP: [<ffffffffa07edad4>] usb_wwan_write+0x124/0x2d0 [usb_wwan]
[ 7644.626046] PGD 23fc66067 PUD 23fc67067 PMD 0
[ 7644.626049] Oops: 0000 [#1] SMP
[ 7644.626051] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp bridge stp llc ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables nvram rfcomm bnep binfmt_misc nls_iso8859_1 parport_pc ppdev lp parport uvcvideo qmi_wwan videobuf2_vmalloc videobuf2_memops videobuf2_core cdc_wdm videodev usbnet option usb_wwan usbserial ath3k btusb bluetooth joydev snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi intel_rapl snd_hda_intel x86_pkg_temp_thermal intel_powerclamp snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi arc4 coretemp ath9k snd_seq snd_seq_device ath9k_common kvm_intel kvm ath9k_hw ath snd_timer mac80211 cfg80211 psmouse snd serio_raw soundcore mei_me mei microcode sparse_keymap toshiba_bluetooth mac_hid lpc_ich btrfs xor raid6_pq dm_crypt usb_storage radeon crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw i2c_algo_bit gf128mul ttm glue_helper ablk_helper drm_kms_helper cryptd ahci drm r8169 libahci mii wmi video
[ 7644.626099] CPU: 0 PID: 1977 Comm: ModemManager Not tainted 3.15.0-031500rc1-generic #201404131835
[ 7644.626101] Hardware name: TOSHIBA SATELLITE L870-18Z/PLCSF8, BIOS 6.60 4/03/2013
[ 7644.626102] task: ffff8800354a8000 ti: ffff880035496000 task.ti: ffff880035496000
[ 7644.626103] RIP: 0010:[<ffffffffa07edad4>...

Read more...

tags: added: kernel-bug-exists-upstream
removed: kernel-fixed-upstream
penalvch (penalvch)
tags: added: bios-outdated-6.80
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Luis Henriques (henrix) wrote :

Moez, looks like you're hitting a bug that hasn't been fixed upstream yet. I've took a look at the usb_wwan driver and it seems that function usb_wwan_write() is missing a NULL check to 'this_urb' variable.

I've added this check (see patch attached) and compiled a test kernel . Could you please give this kernel a try and report back after some good amount of testing? I would like you to run this test for a while and post the kernel logs -- if this patch actually solves the problem, you should see something like 'usb_wwan_write: Invalid URB' in the logs.

Here's the link to the test kernel:

http://people.canonical.com/~henrix/lp1308537/v1/

tags: added: patch
Revision history for this message
Moez Bouhlel (lejenome) wrote :

@henrix: ok, i'm going to try it
@penalvch: Toshiba Bios executable requires a running windows 8 system on the laptop (neither wine nor freedos nor virtual machine worked), so, i may not be able to update the bios anytime soon

Revision history for this message
Moez Bouhlel (lejenome) wrote :
Download full text (11.3 KiB)

@henrix: that's a part of the output after applying the patch:
now, the usb modem reconnect just fine

[ 5588.532572] usb 1-1.2: USB disconnect, device number 6
[ 5588.534775] option1 ttyUSB0: option_instat_callback: error -108
[ 5588.534896] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 5588.534910] option 1-1.2:1.0: device disconnected
[ 5588.535946] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5588.536195] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5588.536993] qmi_wwan 1-1.2:1.1 wwan0: unregister 'qmi_wwan' usb-0000:00:1a.0-1.2, WWAN/QMI device
[ 5588.540203] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5588.540448] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5588.544455] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5588.544701] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5588.548710] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5588.548955] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5588.565315] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 5588.565324] option 1-1.2:1.3: device disconnected
[ 5588.565431] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 5588.565438] option 1-1.2:1.4: device disconnected
[ 5593.449299] usb 1-1.2: new high-speed USB device number 7 using ehci-pci
[ 5593.544252] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1446
[ 5593.544263] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 5593.544269] usb 1-1.2: Product: HUAWEI Mobile
[ 5593.544275] usb 1-1.2: Manufacturer: Huawei Technologies
[ 5593.645087] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 5593.649366] scsi11 : usb-storage 1-1.2:1.0
[ 5593.649674] usb-storage 1-1.2:1.1: USB Mass Storage device detected
[ 5593.657369] scsi12 : usb-storage 1-1.2:1.1
[ 5595.452470] usb 1-1.2: USB disconnect, device number 7
[ 5599.354268] usb 1-1.2: new high-speed USB device number 8 using ehci-pci
[ 5599.448843] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1506
[ 5599.448847] usb 1-1.2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
[ 5599.448850] usb 1-1.2: Product: HUAWEI Mobile
[ 5599.448851] usb 1-1.2: Manufacturer: Huawei Technologies
[ 5599.548996] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 5599.549102] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 5599.549216] option 1-1.2:1.1: GSM modem (1-port) converter detected
[ 5599.549287] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 5599.549379] option 1-1.2:1.2: GSM modem (1-port) converter detected
[ 5599.549448] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 5599.549502] option 1-1.2:1.3: GSM modem (1-port) converter detected
[ 5599.549569] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[ 5599.549624] option 1-1.2:1.4: GSM modem (1-port) converter detected
[ 5599.549701] usb 1-1.2: GSM modem (1-port) converter now attached to ...

Revision history for this message
Luis Henriques (henrix) wrote :

Thanks a lot for testing. To be honest, I wasn't expecting the patch to be this verbose... so, I've modified the patch and uploaded v2 of the test kernel:

http://people.canonical.com/~henrix/lp1308537/v2/

The modified patch is also in this directory.

Changed in linux (Ubuntu):
status: Incomplete → Triaged
Moez Bouhlel (lejenome)
tags: removed: bios-outdated-6.80
Revision history for this message
Moez Bouhlel (lejenome) wrote :

I have deleted the bios-outdated-6.80 flag as this bug affects peoples with other BIOSs and it stills happens even after updating the BIOS as long as the patch posted by @henrix was not applied to the running kernel

penalvch (penalvch)
tags: added: bios-outdated-6.80
Revision history for this message
Moez Bouhlel (lejenome) wrote :

$ sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date
6.80
10/01/2013

I have updated the bios. but I'm still getting the same ACPI errors on dmesg output.

I noticed this error on dmesg output on both ubuntu and archlinux many times:
usb 1-3: device not accepting address 4, error -71
this error is a protocol error (-71: -EPROTO[0]) and it's mostly caused by hardware/firmware issues or some unknown errors[1]
On my archlinux, I'm using linux-lts 3.10.39 & connman/ofono, I didn't get this kernel bug, but, the connection is unstable and the usb modem disconnect many times

I have tested other usb devices and I got the same -EPROTO error message. So, the issue is on the host side. but I can not confirm if it's caused by the hardware or the firmware. Maybe if i got time in coming days, I will try to look into the ACPI DSDT code

[0] https://www.kernel.org/doc/Documentation/usb/error-codes.txt
[1] https://bugzilla.kernel.org/show_bug.cgi?id=6078

Revision history for this message
penalvch (penalvch) wrote :

Moez Bouhel, just to clarify, the patch noted in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1308537/comments/13 does prevent the problem?

tags: added: latest-bios-6.80
removed: bios-outdated-6.80
tags: added: kernel-bug-exists-upstream-3.15-rc1
removed: kernel-bug-exists-upstream
Revision history for this message
Moez Bouhlel (lejenome) wrote :

yes, it solves the problem

penalvch (penalvch)
tags: added: cherry-pick
Chris J Arges (arges)
description: updated
Revision history for this message
Vincas Dargis (talkless) wrote :

Same problem on Dell Inspiron 6400, Ubuntu 14.04 i386 using HUAWEI USB GPRS/EDGE/3G modem. Problems started after upgrade from 12.04.

When we can expect path to be release? It's quite a few kernel upgrades passed since bug report....

Revision history for this message
penalvch (penalvch) wrote :

Vincas Dargis, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into the default Ubuntu kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

Revision history for this message
Vincas Dargis (talkless) wrote :

@Christopher M. Penalver (penalvch):
Are you assuming this is different problem? Sadly, I do not have access to that computer frequently, but I could try it some time later. Bug again, why new bug report? If I understand correctly, it's not currently fixed if official (not PPA) linux package, or is it? I do not see "fix released".

Revision history for this message
hirax (hennoh) wrote :

Dell Studio 1555
BIOS - latest version
Linux Mint 17 KDE 64bit
kernel release - 3.13.0-24-generic
kernel version - #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014

Same Huawei dongle, same symptoms with network manager after disconnecting and lsusb hanging in terminal. Only hard restart returns all to working state.
In my case it also happens sometimes when laptop wakes up from suspend.

Revision history for this message
penalvch (penalvch) wrote :

hirax, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu (not Linux Mint) by executing the following in a terminal while booted into the default Ubuntu kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

Revision history for this message
Vincas Dargis (talkless) wrote :

Looks like it's not problem any more on system I mentioned earlier. There are no long kernel crashes on resume.

Though, bug https://bugs.launchpad.net/ubuntu/+source/systemd-shim/+bug/1252121 now is in effect... But that's other story.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.