Bluetooth: hci0: Timed out waiting for suspend events Bluetooth: hci0: Suspend timeout bit: 4 ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.4.103/4655 is trying to acquire lock: ffff88807bf68478 (&hdev->lock){+.+.}-{3:3}, at: hci_clear_wake_reason net/bluetooth/hci_core.c:3710 [inline] ffff88807bf68478 (&hdev->lock){+.+.}-{3:3}, at: hci_suspend_notifier+0x3ce/0x670 net/bluetooth/hci_core.c:3763 but task is already holding lock: ffffffff8cff4f70 ((pm_chain_head).rwsem){++++}-{3:3}, at: blocking_notifier_call_chain_robust+0x55/0x90 kernel/notifier.c:282 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 ((pm_chain_head).rwsem){++++}-{3:3}: down_write+0x38/0x60 kernel/locking/rwsem.c:1551 blocking_notifier_chain_register+0x5a/0x250 kernel/notifier.c:234 hci_register_dev+0x7b0/0x980 net/bluetooth/hci_core.c:4024 __vhci_create_device drivers/bluetooth/hci_vhci.c:129 [inline] vhci_create_device+0x32e/0x5c0 drivers/bluetooth/hci_vhci.c:153 vhci_get_user drivers/bluetooth/hci_vhci.c:210 [inline] vhci_write+0x389/0x440 drivers/bluetooth/hci_vhci.c:290 call_write_iter include/linux/fs.h:2179 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x748/0xd70 fs/read_write.c:594 ksys_write+0x153/0x260 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #1 (&data->open_mutex){+.+.}-{3:3}: __mutex_lock_common+0x1e5/0x2400 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743 vhci_send_frame+0x88/0x100 drivers/bluetooth/hci_vhci.c:71 hci_send_frame+0x1a9/0x2e0 net/bluetooth/hci_core.c:4288 hci_sched_acl_pkt net/bluetooth/hci_core.c:4815 [inline] hci_sched_acl net/bluetooth/hci_core.c:4902 [inline] hci_tx_work+0x9c6/0x1720 net/bluetooth/hci_core.c:4972 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 -> #0 (&hdev->lock){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3120 [inline] check_prevs_add kernel/locking/lockdep.c:3239 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x38f7/0x7d40 kernel/locking/lockdep.c:5120 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 __mutex_lock_common+0x1e5/0x2400 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743 hci_clear_wake_reason net/bluetooth/hci_core.c:3710 [inline] hci_suspend_notifier+0x3ce/0x670 net/bluetooth/hci_core.c:3763 notifier_call_chain kernel/notifier.c:83 [inline] notifier_call_chain_robust+0xe1/0x2c0 kernel/notifier.c:118 blocking_notifier_call_chain_robust+0x66/0x90 kernel/notifier.c:283 pm_notifier_call_chain_robust+0x28/0x60 kernel/power/main.c:87 suspend_prepare kernel/power/suspend.c:353 [inline] enter_state kernel/power/suspend.c:575 [inline] pm_suspend+0x22e/0x7c0 kernel/power/suspend.c:612 state_store+0x202/0x290 kernel/power/main.c:661 kernfs_fop_write_iter+0x3a8/0x500 fs/kernfs/file.c:296 call_write_iter include/linux/fs.h:2179 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x748/0xd70 fs/read_write.c:594 ksys_write+0x153/0x260 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 other info that might help us debug this: Chain exists of: &hdev->lock --> &data->open_mutex --> (pm_chain_head).rwsem Possible unsafe locking scenario: CPU0 CPU1 ---- ---- rlock((pm_chain_head).rwsem); lock( &data->open_mutex); lock((pm_chain_head).rwsem); lock(&hdev->lock); *** DEADLOCK *** 6 locks held by syz.4.103/4655: #0: ffff888020750870 (&f->f_pos_lock ){+.+.}-{3:3} , at: __fdget_pos+0x2bf/0x370 fs/file.c:1056 #1: ffff88807b6f4460 (sb_writers #8){.+.+}-{0:0}, at: vfs_write+0x296/0xd70 fs/read_write.c:590 #2: ffff88802b025888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1dc/0x500 fs/kernfs/file.c:287 #3: ffff888144bfeda0 (kn->active#587){.+.+}-{0:0} , at: kernfs_fop_write_iter+0x1fd/0x500 fs/kernfs/file.c:288 #4: ffffffff8cfd7be8 (system_transition_mutex){+.+.}-{3:3}, at: enter_state kernel/power/suspend.c:561 [inline] (system_transition_mutex){+.+.}-{3:3}, at: pm_suspend+0x31f/0x7c0 kernel/power/suspend.c:612 #5: ffffffff8cff4f70 ((pm_chain_head).rwsem ){++++}-{3:3}, at: blocking_notifier_call_chain_robust+0x55/0x90 kernel/notifier.c:282 stack backtrace: CPU: 1 PID: 4655 Comm: syz.4.103 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 check_noncircular+0x2f8/0x400 kernel/locking/lockdep.c:2178 check_prev_add kernel/locking/lockdep.c:3120 [inline] check_prevs_add kernel/locking/lockdep.c:3239 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x38f7/0x7d40 kernel/locking/lockdep.c:5120 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 __mutex_lock_common+0x1e5/0x2400 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743 hci_clear_wake_reason net/bluetooth/hci_core.c:3710 [inline] hci_suspend_notifier+0x3ce/0x670 net/bluetooth/hci_core.c:3763 notifier_call_chain kernel/notifier.c:83 [inline] notifier_call_chain_robust+0xe1/0x2c0 kernel/notifier.c:118 blocking_notifier_call_chain_robust+0x66/0x90 kernel/notifier.c:283 pm_notifier_call_chain_robust+0x28/0x60 kernel/power/main.c:87 suspend_prepare kernel/power/suspend.c:353 [inline] enter_state kernel/power/suspend.c:575 [inline] pm_suspend+0x22e/0x7c0 kernel/power/suspend.c:612 state_store+0x202/0x290 kernel/power/main.c:661 kernfs_fop_write_iter+0x3a8/0x500 fs/kernfs/file.c:296 call_write_iter include/linux/fs.h:2179 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x748/0xd70 fs/read_write.c:594 ksys_write+0x153/0x260 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f07ffdc24d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f07fdfee028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f080003f090 RCX: 00007f07ffdc24d9 RDX: 0000000000000004 RSI: 0000200000000480 RDI: 0000000000000005 RBP: 00007f07ffe5104e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f080003f128 R14: 00007f080003f090 R15: 00007ffc504bc698 channel 3 len 7 Bluetooth: hci0: Suspend notifier action (3) failed: -110 hci0 orig refcnt 7 hci1 orig refcnt 12 Bluetooth: hci1: Timed out waiting for suspend events Bluetooth: hci1: Suspend timeout bit: 4 Bluetooth: hci1: Suspend timeout bit: 6 channel 3 len 7 Bluetooth: hci1: Suspend notifier action (3) failed: -110 hci1 orig refcnt 13 hci2 orig refcnt 12 hci2 orig refcnt 13 hci3 orig refcnt 12 hci3 orig refcnt 13 hci4 orig refcnt 12 hci4 orig refcnt 13 Freezing user space processes ...