Crash when resuming system (related to USB?) with 4.4

From: Frederik Himpe
Date: Fri Mar 18 2016 - 05:46:06 EST


Half of the time when resuming my system, it completely hangs. I managed to find this trace in pstore:


==./dmesg-efi-145829002001001==
Oops#1 Part1
<4>[20505.738344]ÂÂ[<ffffffffa0086e8d>] ? hub_event+0x75d/0x14f0 [usbcore]
<4>[20505.738413]ÂÂ[<ffffffff8108ed67>] ? process_one_work+0x157/0x410
<4>[20505.738474]ÂÂ[<ffffffff8108f06d>] ? worker_thread+0x4d/0x450
<4>[20505.738555]ÂÂ[<ffffffff8108f020>] ? process_one_work+0x410/0x410
<4>[20505.738617]ÂÂ[<ffffffff81094dfd>] ? kthread+0xcd/0xf0
<4>[20505.738691]ÂÂ[<ffffffff81094d30>] ? kthread_create_on_node+0x190/0x190
<4>[20505.738784]ÂÂ[<ffffffff8158ed8f>] ? ret_from_fork+0x3f/0x70
<4>[20505.738843]ÂÂ[<ffffffff81094d30>] ? kthread_create_on_node+0x190/0x190
<4>[20505.738932] Code: 89 c2 48 0f 42 15 80 3c 85 00 48 01 ca 48 c1 ea 0c 48 c1 e2 06 48 01 fa 48 8b 72 20 4c 8d 46 ff 83 e6 01 49 0f 45 d0 4c 8b 6a 30 <4d> 8b 65 00 65 4c 03 25 23 ce e4 7e 83 3d a0 56 94 00 01 7e 2eÂ
<1>[20505.739337] RIPÂÂ[<ffffffff811bd3b1>] kfree+0x91/0x250
<4>[20505.739402]ÂÂRSP <ffff8801225cfc98>
<4>[20505.739438] CR2: 0000000000000000
<4>[20505.756194] ---[ end trace 34cacb43f9f2617d ]---
==./dmesg-efi-145829002002001==
Oops#1 Part2
<4>[20505.737432] R13: 0000000000000000 R14: 0000000000000001 R15: ffff8800b7121218
<4>[20505.737501] FS:ÂÂ0000000000000000(0000) GS:ffff88023ea00000(0000) knlGS:0000000000000000
<4>[20505.737588] CS:ÂÂ0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4>[20505.737656] CR2: 0000000000000000 CR3: 00000000b481b000 CR4: 00000000001406f0
<4>[20505.737726] Stack:
<4>[20505.737752]ÂÂ0000000000000001 ffff88023220f9a0 ffff880231ec4000 000000001bdb7108
<4>[20505.737836]ÂÂffff880231ec4000 ffff880231ec4000 ffff8800368a2000 ffff880231ec40a0
<4>[20505.737913]ÂÂ0000000000000001 ffffffffa00935ad ffff880231ec4090 ffffffffa0080347
<4>[20505.737994] Call Trace:
<4>[20505.738048]ÂÂ[<ffffffffa00935ad>] ? usb_release_bos_descriptor+0x1d/0x40 [usbcore]
<4>[20505.738134]ÂÂ[<ffffffffa0080347>] ? usb_release_dev+0x27/0x60 [usbcore]
<4>[20505.738206]ÂÂ[<ffffffff8140bf1d>] ? device_release+0x2d/0x90
<4>[20505.738270]ÂÂ[<ffffffff812ecab5>] ? kobject_release+0x75/0x1a0
==./dmesg-efi-145829002003001==
Oops#1 Part3
<4>[20505.736636] CPU: 0 PID: 11975 Comm: kworker/0:3 Not tainted 4.4.0-1-amd64 #1 Debian 4.4.4-2
<4>[20505.736723] Hardware name: Hewlett-Packard HP EliteBook 8470p/179B, BIOS 68ICF Ver. F.31 09/24/2012
<4>[20505.736839] Workqueue: usb_hub_wq hub_event [usbcore]
<4>[20505.736896] task: ffff8801390a6380 ti: ffff8801225cc000 task.ti: ffff8801225cc000
<4>[20505.736969] RIP: 0010:[<ffffffff811bd3b1>]ÂÂ[<ffffffff811bd3b1>] kfree+0x91/0x250
<4>[20505.737051] RSP: 0018:ffff8801225cfc98ÂÂEFLAGS: 00010046
<4>[20505.737120] RAX: 000077ff80000000 RBX: 0000000000000286 RCX: ffff880080000000
<4>[20505.737212] RDX: ffffea0000000000 RSI: 0000000000000000 RDI: ffffea0000000000
<4>[20505.737292] RBP: ffff880000000000 R08: ffffea000000001f R09: 0000000000000000
<4>[20505.737361] R10: 0000000000010000 R11: 0000000000000000 R12: ffffffffa00935ad
==./dmesg-efi-145829002004001==
Oops#1 Part4
Âbluetooth rfkill crc16 lpc_ich mfd_core tpm_infineon uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common videodev media snd_hda_intel snd_hda_codec snd_hda_core shpchp snd_hwdep snd_pcm snd_timer snd soundcore evdev i915 drm_kms_helper drm mei_me i2c_algo_bit mei wmi 8250_fintek hp_accel tpm_tis lis3lv02d tpm input_polldev video battery button ac hp_wireless processor coretemp loop parport_pc ppdev lp parport efivarfs autofs4 btrfs xor raid6_pq dm_mod sr_mod cdrom sd_mod hid_generic usbhid hid crc32c_intel xhci_pci xhci_hcd psmouse ahci libahci libata scsi_mod sdhci_pci sdhci firewire_ohci mmc_core firewire_core crc_itu_t ehci_pci ehci_hcd e1000e usbcore ptp usb_common pps_core thermal fjes
==./dmesg-efi-145829002005001==
Oops#1 Part5
Ânf_conntrack_netlink nfnetlink nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack iptable_filter ip_tables ip6table_filter ip6_tables x_tables cpufreq_userspace cpufreq_powersave cpufreq_stats cpufreq_conservative bnep binfmt_misc arc4 iwldvm mac80211 iTCO_wdt iTCO_vendor_support snd_hda_codec_hdmi iwlwifi intel_rapl iosf_mbi snd_hda_codec_idt hp_wmi x86_pkg_temp_thermal cfg80211 sparse_keymap intel_powerclamp snd_hda_codec_generic kvm_intel efi_pstore kvm irqbypass crct10dif_pclmul crc32_pclmul jitterentropy_rng nls_utf8 nls_cp437 vfat fat sha256_ssse3 sha256_generic hmac ext4 drbg mbcache ansi_cprng jbd2 aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd joydev serio_raw efivars btusb btrtl btbcm btintel sg==./dmesg-efi-145829002006001==
Oops#1 Part6
<1>[20505.733529] IP: [<ffffffff811bd3b1>] kfree+0x91/0x250
<4>[20505.733619] PGD 0Â
<4>[20505.733667] Oops: 0000 [#1] SMPÂ
<4>[20505.733727] Modules linked in: ctr ccm fuse ip6table_nat nf_nat_ipv6 ip6t_REJECT nf_reject_ipv6 ip6table_mangle xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun bridge stp llc ebtable_filter ebtables xt_recent ip6table_raw ipt_REJECT nf_reject_ipv4 xt_comment nf_log_ipv4 xt_multiport xt_addrtype xt_mark nf_conntrack_ipv6 iptable_mangle nf_defrag_ipv6 xt_conntrack iptable_nat nf_nat_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_tcpudp xt_CT iptable_raw nf_log_ipv6 nf_log_common xt_NFLOG nfnetlink_log xt_LOG nf_nat_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda nf_nat nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_proto_udplite nf_conntrack_proto_sctp nf_conntrack_pptp nf_conntrack_proto_gre==./dmesg-efi-145829002007001==
Oops#1 Part7
<6>[20505.111400] ata1.00: configured for UDMA/100
<6>[20505.134242] usb 3-1: device firmware changed
<5>[20505.294224] firewire_core 0000:23:00.0: rediscovered device fw0
<6>[20505.298494] usb 4-1.2: reset SuperSpeed USB device number 3 using xhci_hcd
<6>[20505.594495] usb 4-1.2.4: reset SuperSpeed USB device number 4 using xhci_hcd
<6>[20505.720513] PM: resume of devices complete after 989.791 msecs
<7>[20505.721289] PM: Finishing wakeup.
<6>[20505.721291] Restarting tasks ...Â
<6>[20505.721434] usb 3-1: USB disconnect, device number 2
<6>[20505.721441] usb 3-1.1: USB disconnect, device number 3
<4>[20505.726556] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
<4>[20505.726747] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
<6>[20505.731969] usb 3-1.2: USB disconnect, device number 4
<6>[20505.731978] usb 3-1.2.4: USB disconnect, device number 5
<1>[20505.733386] BUG: unable to handle kernel NULL pointer dereference atÂÂÂÂÂÂÂÂÂÂÂ(null)

Here is my lsusb:
# lsusb
Bus 002 Device 003: ID 0a5c:21e1 Broadcom Corp. HP Portable SoftSailing
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b230 Chicony Electronics Co., Ltd Integrated HP HD Webcam
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 0451:8140 Texas Instruments, Inc.Â
Bus 004 Device 003: ID 0451:8140 Texas Instruments, Inc.Â
Bus 004 Device 002: ID 0424:5434 Standard Microsystems Corp. Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 003 Device 004: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 003 Device 003: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 003 Device 002: ID 0424:5434 Standard Microsystems Corp. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


--
Frederik Himpe <fhimpe@xxxxxxxxx>
Vrije Universiteit Brussel