So I installed the latest upstream kernel (4.17-rc1) and the bug described above still occurs. It's frustrating because it means my bluetooth mouse stops working after about 5 minutes, and I can't get it to work again without rebooting. Code copied and pasted below [ 721.603218] xhci_hcd 0000:00:14.0: xHC is not running. [ 750.046445] xhci_hcd 0000:00:14.0: xHC is not running. [ 759.047364] xhci_hcd 0000:00:14.0: xHC is not running. [ 779.310499] xhci_hcd 0000:00:14.0: xHC is not running. [ 795.342998] xhci_hcd 0000:00:14.0: xHC is not running. [ 801.529731] xhci_hcd 0000:00:14.0: xHC is not running. [ 805.647450] xhci_hcd 0000:00:14.0: xHC is not running. [ 812.578673] xhci_hcd 0000:00:14.0: xHC is not running. [ 825.775154] xhci_hcd 0000:00:14.0: xHC is not running. [ 865.768631] xhci_hcd 0000:00:14.0: xHC is not running. [ 865.773773] xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead [ 865.773790] xhci_hcd 0000:00:14.0: HC died; cleaning up [ 865.892098] usb 1-4: USB disconnect, device number 2 [ 866.006922] usb 1-6: USB disconnect, device number 3 [ 866.010148] usb 1-8: USB disconnect, device number 4 [ 957.285300] xhci_hcd 0000:00:14.0: remove, state 4 [ 957.285314] usb usb2: USB disconnect, device number 1 [ 957.286028] xhci_hcd 0000:00:14.0: USB bus 2 deregistered [ 957.286045] xhci_hcd 0000:00:14.0: remove, state 4 [ 957.286058] usb usb1: USB disconnect, device number 1 [ 957.287117] BUG: unable to handle kernel NULL pointer dereference at 0000000000000034 [ 957.287132] PGD 0 P4D 0 [ 957.287145] Oops: 0000 [#1] SMP PTI [ 957.287151] Modules linked in: btrfs zstd_compress xor raid6_pq ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c hidp thunderbolt rfcomm ccm cmac bnep uvcvideo videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl btbcm videobuf2_common btintel videodev bluetooth media ecdh_generic msr joydev hid_sensor_als hid_sensor_accel_3d hid_sensor_trigger industrialio_triggered_buffer kfifo_buf hid_sensor_iio_common industrialio hid_sensor_custom snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic nls_iso8859_1 wacom usbhid hid_sensor_hub hid_multitouch hid_generic 8250_dw arc4 wmi_bmof intel_wmi_thunderbolt snd_hda_intel intel_rapl snd_hda_codec x86_pkg_temp_thermal snd_hda_core intel_powerclamp snd_hwdep coretemp snd_pcm snd_seq_midi kvm irqbypass snd_seq_midi_event crct10dif_pclmul [ 957.287291] iwlmvm crc32_pclmul ghash_clmulni_intel snd_rawmidi pcbc mac80211 snd_seq aesni_intel aes_x86_64 crypto_simd cryptd glue_helper intel_cstate intel_rapl_perf iwlwifi idma64 virt_dma snd_seq_device snd_timer input_leds cfg80211 serio_raw ucsi_acpi snd typec_ucsi mei_me intel_lpss_pci processor_thermal_device shpchp mei intel_lpss intel_pch_thermal intel_soc_dts_iosf typec soundcore ideapad_laptop sparse_keymap int3403_thermal int340x_thermal_zone wmi int3400_thermal acpi_pad mac_hid acpi_thermal_rel sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 i915 i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm i2c_hid hid pinctrl_sunrisepoint pinctrl_intel video [ 957.287418] CPU: 1 PID: 17454 Comm: sh Not tainted 4.17.0-041700rc1-generic #201804152230 [ 957.287423] Hardware name: LENOVO 80X7/LNVNB161216, BIOS 4MCN28WW(V2.00) 10/19/2017 [ 957.287436] RIP: 0010:tty_unregister_driver+0xd/0x70 [ 957.287442] RSP: 0018:ffffb5044418fc38 EFLAGS: 00010246 [ 957.287449] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 957.287455] RDX: ffff950057280000 RSI: ffff9500f79587b8 RDI: 0000000000000000 [ 957.287461] RBP: ffffb5044418fc40 R08: ffff9500f7d22810 R09: 0000000000000000 [ 957.287467] R10: ffffdaed8ab53400 R11: 0000000000000000 R12: ffff9500f7c4a230 [ 957.287473] R13: ffff9500f7c4a27c R14: ffff9500f7c4a398 R15: 0000000000000060 [ 957.287481] FS: 00007f66379a0540(0000) GS:ffff950101c40000(0000) knlGS:0000000000000000 [ 957.287488] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 957.287495] CR2: 0000000000000034 CR3: 00000002b7c20004 CR4: 00000000003606e0 [ 957.287501] Call Trace: [ 957.287518] xhci_dbc_tty_unregister_driver+0x15/0x30 [ 957.287529] xhci_dbc_exit+0x2e/0x50 [ 957.287538] xhci_stop+0x5b/0x1d0 [ 957.287550] usb_remove_hcd+0x105/0x230 [ 957.287560] usb_hcd_pci_remove+0x74/0x130 [ 957.287568] xhci_pci_remove+0x6b/0x70 [ 957.287578] pci_device_remove+0x3e/0xb0 [ 957.287588] device_release_driver_internal+0x15b/0x220 [ 957.287596] device_release_driver+0x12/0x20 [ 957.287606] unbind_store+0x87/0x150 [ 957.287616] drv_attr_store+0x27/0x40 [ 957.287625] sysfs_kf_write+0x3c/0x50 [ 957.287632] kernfs_fop_write+0x125/0x1a0 [ 957.287641] __vfs_write+0x3a/0x170 [ 957.287653] ? common_file_perm+0x4d/0x140 [ 957.287662] ? __alloc_fd+0x46/0x170 [ 957.287671] ? apparmor_file_permission+0x1a/0x20 [ 957.287686] ? security_file_permission+0x2f/0xb0 [ 957.287696] ? _cond_resched+0x19/0x40 [ 957.287704] vfs_write+0xb1/0x1a0 [ 957.287712] ksys_write+0x55/0xc0 [ 957.287721] __x64_sys_write+0x1a/0x20 [ 957.287731] do_syscall_64+0x5a/0x120 [ 957.287742] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 957.287750] RIP: 0033:0x7f66374b6154 [ 957.287756] RSP: 002b:00007ffcb2acadc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 957.287765] RAX: ffffffffffffffda RBX: 000055fc35806df0 RCX: 00007f66374b6154 [ 957.287771] RDX: 000000000000000c RSI: 000055fc35806df0 RDI: 0000000000000001 [ 957.287776] RBP: 000000000000000c R08: 000055fc35806757 R09: 000055fc35806c05 [ 957.287781] R10: 00000000000001b6 R11: 0000000000000246 R12: 0000000000000001 [ 957.287787] R13: 000000000000000c R14: 7fffffffffffffff R15: 00007ffcb2acbf12 [ 957.287794] Code: c2 c5 8e 55 a3 48 c7 c7 a8 74 a4 a3 e8 6d 7d ee ff 48 89 df e8 55 3a c6 ff 5b 5d c3 66 90 0f 1f 44 00 00 55 48 89 e5 53 48 89 fb <8b> 77 34 8b 7f 2c c1 e7 14 0b 7b 30 e8 e2 9c c9 ff 48 c7 c7 60 [ 957.287917] RIP: tty_unregister_driver+0xd/0x70 RSP: ffffb5044418fc38 [ 957.287921] CR2: 0000000000000034 [ 957.287929] ---[ end trace 1aaa850b2f90913c ]---