Bug 216742

Summary: [REGRESSION] HCI_QUIRK_NO_SUSPEND_NOTIFIER causes kernel panic on fake CSR 5.0 clones
Product: Drivers Reporter: JustANormalTinkererMihir (justanormaltinkerermihir)
Component: BluetoothAssignee: linux-bluetooth (linux-bluetooth)
Status: RESOLVED DUPLICATE    
Severity: high CC: justanormaltinkerermihir
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 6.0.10 Subsystem:
Regression: Yes Bisected commit-id:

Description JustANormalTinkererMihir 2022-11-26 16:10:47 UTC
[   71.985884] ------------[ cut here ]------------
[   71.985887] notifier callback hci_suspend_notifier [bluetooth] already registered
[   71.985945] WARNING: CPU: 1 PID: 268 at kernel/notifier.c:28 notifier_chain_register+0x3e/0x70
[   71.985955] Modules linked in: rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device qrtr bnep ccm algif_aead cbc des_generic libdes ecb algif_skcipher cmac md4 algif_hash af_alg btusb(OE) btrtl btbcm btintel btmtk bluetooth(OE) intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp cfg80211 kvm_intel kvm irqbypass vfat fat crct10dif_pclmul crc32_pclmul snd_hda_codec_realtek polyval_clmulni polyval_generic snd_hda_codec_generic gf128mul ghash_clmulni_intel ledtrig_audio aesni_intel snd_hda_codec_hdmi crypto_simd cryptd rapl intel_cstate intel_uncore hp_wmi snd_hda_intel snd_intel_dspcfg sparse_keymap ecdh_generic platform_profile snd_intel_sdw_acpi snd_hda_codec rfkill iTCO_wdt intel_pmc_bxt mei_wdt iTCO_vendor_support psmouse wmi_bmof snd_hda_core pkcs8_key_parser at24 mei_hdcp gpio_ich mei_pxp snd_hwdep snd_pcm mousedev joydev tpm_infineon snd_timer nvidia_drm(POE) tpm_tis nvidia_modeset(POE) wmi snd nvidia_uvm(POE) e1000e soundcore tpm_tis_core i2c_i801
[   71.986060]  mei_me tpm mei i2c_smbus rng_core mac_hid lpc_ich nvidia(POE) fuse crypto_user bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 raid0 uas usb_storage usbhid md_mod serio_raw atkbd libps2 vivaldi_fmap crc32c_intel i8042 serio
[   71.986093] CPU: 1 PID: 268 Comm: kworker/1:3 Tainted: P           OE      6.0.7-arch1-1 #1 54734d35253fb4c526adcfdfa2e7225be9ec4a9a
[   71.986096] Hardware name: Hewlett-Packard HP Compaq 8200 Elite SFF PC/1495, BIOS J01 v02.33 04/12/2019
[   71.986098] Workqueue: usb_hub_wq hub_event
[   71.986103] RIP: 0010:notifier_chain_register+0x3e/0x70
[   71.986107] Code: 10 7f 33 75 04 84 d2 75 3b 48 8d 78 08 48 8b 40 08 48 85 c0 74 20 48 39 c6 75 e0 48 8b 36 48 c7 c7 08 c6 d1 b9 e8 92 6d ac 00 <0f> 0b b8 ef ff ff ff c3 cc cc cc cc 48 89 46 08 31 c0 48 89 37 c3
[   71.986108] RSP: 0018:ffffa676005fb810 EFLAGS: 00010286
[   71.986110] RAX: 0000000000000000 RBX: ffffffffba45b000 RCX: 0000000000000027
[   71.986112] RDX: ffff895fa5ca1668 RSI: 0000000000000001 RDI: ffff895fa5ca1660
[   71.986113] RBP: ffff895e8341eb78 R08: 0000000000000000 R09: ffffa676005fb698
[   71.986114] R10: 0000000000000003 R11: ffffffffba4cb508 R12: ffffffffba45b028
[   71.986115] R13: ffff895e8341e030 R14: ffff895e8341ed08 R15: ffffffffc35e9ca0
[   71.986117] FS:  0000000000000000(0000) GS:ffff895fa5c80000(0000) knlGS:0000000000000000
[   71.986118] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   71.986120] CR2: 000055dffc48e078 CR3: 0000000029010006 CR4: 00000000000606e0
[   71.986122] Call Trace:
[   71.986124]  <TASK>
[   71.986125]  blocking_notifier_chain_register+0x33/0x60
[   71.986130]  hci_register_dev+0x316/0x3d0 [bluetooth 99b5497ea3d09708fa1366c1dc03288bf3cca8da]
[   71.986154]  btusb_probe+0x979/0xd85 [btusb e1e0605a4f4c01984a4b9c8ac58c3666ae287477]
[   71.986159]  ? __pm_runtime_set_status+0x1a9/0x300
[   71.986162]  ? ktime_get_mono_fast_ns+0x3e/0x90
[   71.986167]  usb_probe_interface+0xe3/0x2b0
[   71.986171]  really_probe+0xdb/0x380
[   71.986174]  ? pm_runtime_barrier+0x54/0x90
[   71.986177]  __driver_probe_device+0x78/0x170
[   71.986180]  driver_probe_device+0x1f/0x90
[   71.986183]  __device_attach_driver+0x89/0x110
[   71.986186]  ? driver_allows_async_probing+0x70/0x70
[   71.986189]  bus_for_each_drv+0x8c/0xe0
[   71.986192]  __device_attach+0xb2/0x1e0
[   71.986195]  bus_probe_device+0x92/0xb0
[   71.986198]  device_add+0x422/0x9a0
[   71.986201]  ? sysfs_merge_group+0xd4/0x110
[   71.986205]  usb_set_configuration+0x57a/0x820
[   71.986208]  usb_generic_driver_probe+0x4f/0x70
[   71.986211]  usb_probe_device+0x3a/0x110
[   71.986213]  really_probe+0xdb/0x380
[   71.986216]  ? pm_runtime_barrier+0x54/0x90
[   71.986219]  __driver_probe_device+0x78/0x170
[   71.986221]  driver_probe_device+0x1f/0x90
[   71.986224]  __device_attach_driver+0x89/0x110
[   71.986227]  ? driver_allows_async_probing+0x70/0x70
[   71.986230]  bus_for_each_drv+0x8c/0xe0
[   71.986232]  __device_attach+0xb2/0x1e0
[   71.986235]  bus_probe_device+0x92/0xb0
[   71.986237]  device_add+0x422/0x9a0
[   71.986239]  ? _dev_info+0x7d/0x98
[   71.986242]  ? blake2s_update+0x4c/0xc0
[   71.986246]  usb_new_device.cold+0x148/0x36d
[   71.986250]  hub_event+0xa8a/0x1910
[   71.986255]  process_one_work+0x1c4/0x380
[   71.986259]  worker_thread+0x51/0x390
[   71.986262]  ? rescuer_thread+0x3b0/0x3b0
[   71.986264]  kthread+0xdb/0x110
[   71.986266]  ? kthread_complete_and_exit+0x20/0x20
[   71.986268]  ret_from_fork+0x1f/0x30
[   71.986273]  </TASK>
[   71.986274] ---[ end trace 0000000000000000 ]---
[   71.986284] btusb: probe of 2-1.6:1.0 failed with error -17

Steps to reproduce: plug in your bluetooth dongle and unplug it, do it till this appears in the dmesg, this also makes the computer pretty much useless unless I force restart it.

Please note I have applied this patchset to the kernel 6.0.10: https://patchwork.kernel.org/project/bluetooth/list/?series=690177&state=*
Comment 1 JustANormalTinkererMihir 2022-11-26 16:30:20 UTC

*** This bug has been marked as a duplicate of bug 216683 ***