Bluetooth: hci0: Suspend timeout bit: 4 Bluetooth: hci0: Suspend timeout bit: 6 ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.2.290/5185 is trying to acquire lock: ffff8880633d0478 (&hdev->lock){+.+.}-{3:3}, at: hci_clear_wake_reason net/bluetooth/hci_core.c:3586 [inline] ffff8880633d0478 (&hdev->lock){+.+.}-{3:3}, at: hci_suspend_notifier+0x3ce/0x670 net/bluetooth/hci_core.c:3639 but task is already holding lock: ffffffff8cff5230 ((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:3900 __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:2181 [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:4164 hci_sched_acl_pkt net/bluetooth/hci_core.c:4691 [inline] hci_sched_acl net/bluetooth/hci_core.c:4778 [inline] hci_tx_work+0x9c6/0x1720 net/bluetooth/hci_core.c:4848 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:3125 [inline] check_prevs_add kernel/locking/lockdep.c:3244 [inline] validate_chain kernel/locking/lockdep.c:3860 [inline] __lock_acquire+0x39b7/0x7e20 kernel/locking/lockdep.c:5134 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5751 __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:3586 [inline] hci_suspend_notifier+0x3ce/0x670 net/bluetooth/hci_core.c:3639 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:2181 [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.2.290/5185: #0: ffff888077a50d70 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2bf/0x370 fs/file.c:1056 #1: ffff88807a652460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x296/0xd70 fs/read_write.c:590 #2: ffff888060228888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1dc/0x500 fs/kernfs/file.c:287 #3: ffff888144bffda0 (kn->active#558){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1fd/0x500 fs/kernfs/file.c:288 #4: ffffffff8cfd7f68 (system_transition_mutex){+.+.}-{3:3}, at: enter_state kernel/power/suspend.c:561 [inline] #4: ffffffff8cfd7f68 (system_transition_mutex){+.+.}-{3:3}, at: pm_suspend+0x31f/0x7c0 kernel/power/suspend.c:612 #5: ffffffff8cff5230 ((pm_chain_head).rwsem){++++}-{3:3}, at: blocking_notifier_call_chain_robust+0x55/0x90 kernel/notifier.c:282 stack backtrace: CPU: 0 PID: 5185 Comm: syz.2.290 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:3125 [inline] check_prevs_add kernel/locking/lockdep.c:3244 [inline] validate_chain kernel/locking/lockdep.c:3860 [inline] __lock_acquire+0x39b7/0x7e20 kernel/locking/lockdep.c:5134 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5751 __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:3586 [inline] hci_suspend_notifier+0x3ce/0x670 net/bluetooth/hci_core.c:3639 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:2181 [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:0x7f2f3ee95519 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:00007f2f3d0e2028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2f3f121fa0 RCX: 00007f2f3ee95519 RDX: 0000000000000003 RSI: 0000200000000a00 RDI: 0000000000000006 RBP: 00007f2f3ef25136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2f3f122038 R14: 00007f2f3f121fa0 R15: 00007ffeb7ebdf28 Bluetooth: hci0: Suspend notifier action (3) failed: -110 Bluetooth: hci1: Timed out waiting for suspend events Bluetooth: hci1: Suspend timeout bit: 4 Bluetooth: hci1: Suspend timeout bit: 6 Bluetooth: hci1: Suspend notifier action (3) failed: -110 Bluetooth: hci2: Timed out waiting for suspend events Bluetooth: hci2: Suspend timeout bit: 4 Bluetooth: hci2: Suspend timeout bit: 6 Bluetooth: hci2: Suspend notifier action (3) failed: -110 Bluetooth: hci3: Timed out waiting for suspend events Bluetooth: hci3: Suspend timeout bit: 4 Bluetooth: hci3: Suspend timeout bit: 6 Bluetooth: hci3: Suspend notifier action (3) failed: -110