====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.6.3181/19155 is trying to acquire lock: ffff88808256d130 ( sk_lock-AF_BLUETOOTH-BTPROTO_ISO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline] sk_lock-AF_BLUETOOTH-BTPROTO_ISO){+.+.}-{0:0}, at: iso_connect_cis+0x26f/0x6d0 net/bluetooth/iso.c:379 but task is already holding lock: ffff888035660428 (&hdev->lock){+.+.}-{3:3}, at: iso_connect_cis+0x74/0x6d0 net/bluetooth/iso.c:340 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&hdev->lock){+.+.}-{3:3} : __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12d/0xae0 kernel/locking/mutex.c:747 iso_listen_bis net/bluetooth/iso.c:910 [inline] iso_sock_listen+0x495/0x870 net/bluetooth/iso.c:959 __sys_listen+0x19d/0x220 net/socket.c:1845 __do_sys_listen net/socket.c:1854 [inline] __se_sys_listen net/socket.c:1852 [inline] __x64_sys_listen+0x56/0x60 net/socket.c:1852 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #0 (sk_lock-AF_BLUETOOTH-BTPROTO_ISO){+.+.}-{0:0}: check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a03/0x7ea0 kernel/locking/lockdep.c:5171 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 lock_sock_nested+0x44/0x100 net/core/sock.c:3504 lock_sock include/net/sock.h:1805 [inline] iso_connect_cis+0x26f/0x6d0 net/bluetooth/iso.c:379 iso_sock_connect+0x2a3/0x4f0 net/bluetooth/iso.c:868 __sys_connect_file net/socket.c:2011 [inline] __sys_connect+0x3cb/0x450 net/socket.c:2028 __do_sys_connect net/socket.c:2038 [inline] __se_sys_connect net/socket.c:2035 [inline] __x64_sys_connect+0x76/0x80 net/socket.c:2035 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&hdev->lock); lock(sk_lock-AF_BLUETOOTH-BTPROTO_ISO); lock(&hdev->lock); lock(sk_lock-AF_BLUETOOTH-BTPROTO_ISO); *** DEADLOCK *** 1 lock held by syz.6.3181/19155: #0: ffff888035660428 (&hdev->lock){+.+.}-{3:3}, at: iso_connect_cis+0x74/0x6d0 net/bluetooth/iso.c:340 stack backtrace: CPU: 0 PID: 19155 Comm: syz.6.3181 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 check_noncircular+0x2f8/0x400 kernel/locking/lockdep.c:2215 check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a03/0x7ea0 kernel/locking/lockdep.c:5171 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 lock_sock_nested+0x44/0x100 net/core/sock.c:3504 lock_sock include/net/sock.h:1805 [inline] iso_connect_cis+0x26f/0x6d0 net/bluetooth/iso.c:379 iso_sock_connect+0x2a3/0x4f0 net/bluetooth/iso.c:868 __sys_connect_file net/socket.c:2011 [inline] __sys_connect+0x3cb/0x450 net/socket.c:2028 __do_sys_connect net/socket.c:2038 [inline] __se_sys_connect net/socket.c:2035 [inline] __x64_sys_connect+0x76/0x80 net/socket.c:2035 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7ed699e559 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:00007f7ed78c2028 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f7ed6c26090 RCX: 00007f7ed699e559 RDX: 000000000000000a RSI: 0000200000000900 RDI: 0000000000000004 RBP: 00007f7ed6a358b0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7ed6c26128 R14: 00007f7ed6c26090 R15: 00007fff26272d98 conn ffff88802997e400 sock ffff88808256d000 state 3 hci0 orig refcnt 15 sock ffff888072598c00, sk ffff88808256d000 sock ffff88808256d000 state 5 sk ffff88808256d000 state 5 socket ffff888072598c00 hci0 hcon ffff888079174000 handle 3840 hcon ffff888079174000 hci0: handle 0x00 hci0: conn ffff888079174000 kobject: '(null)' (ffff888079174618): kobject_cleanup, parent 0000000000000000 kobject: '(null)' (ffff888079174618): calling ktype release hci0 orig refcnt 14 sk ffff88808256d000, conn ffff88802997e400, err 104 kcov: kcov_task_exit: t = ffff888024e43c00, kcov->t = ffff888024e43c00