================================ WARNING: inconsistent lock state 5.14.0-rc7-syzkaller #0 Not tainted -------------------------------- inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. syz-executor.5/12246 [HC0[0]:SC0[0]:HE1:SE1] takes: ffff88806715a0a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88806715a0a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: sco_conn_del+0x113/0x2a0 net/bluetooth/sco.c:176 {IN-SOFTIRQ-W} state was registered at: lock_acquire+0x182/0x4a0 kernel/locking/lockdep.c:5625 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] sco_sock_timeout+0x33/0x170 net/bluetooth/sco.c:83 call_timer_fn+0xf6/0x210 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers+0x703/0x8f0 kernel/time/timer.c:1734 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1747 __do_softirq+0x372/0x783 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x21b/0x260 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xbc/0x120 kernel/locking/spinlock.c:191 spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] __wake_up_common_lock kernel/sched/wait.c:140 [inline] __wake_up_sync_key+0x134/0x1f0 kernel/sched/wait.c:205 tipc_data_ready+0x101/0x1f0 net/tipc/socket.c:2113 tipc_sk_filter_rcv+0x10fb/0x45d0 net/tipc/socket.c:2365 tipc_sk_backlog_rcv+0x118/0x230 net/tipc/socket.c:2384 sk_backlog_rcv include/net/sock.h:1023 [inline] __release_sock+0x1d8/0x4c0 net/core/sock.c:2655 release_sock+0x5d/0x1c0 net/core/sock.c:3179 tipc_wait_for_rcvmsg+0x310/0x660 net/tipc/socket.c:1846 tipc_recvmsg+0x427/0x12e0 net/tipc/socket.c:1908 sock_recvmsg_nosec net/socket.c:943 [inline] sock_recvmsg net/socket.c:961 [inline] ____sys_recvmsg+0x293/0x5c0 net/socket.c:2611 ___sys_recvmsg net/socket.c:2653 [inline] __sys_recvmsg+0x2a3/0x7e0 net/socket.c:2683 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae irq event stamp: 3699 hardirqs last enabled at (3699): [] kasan_quarantine_put+0xc0/0x210 mm/kasan/quarantine.c:220 hardirqs last disabled at (3698): [] kasan_quarantine_put+0x31/0x210 mm/kasan/quarantine.c:193 softirqs last enabled at (2010): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last enabled at (2010): [] __irq_exit_rcu+0x21b/0x260 kernel/softirq.c:636 softirqs last disabled at (1989): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last disabled at (1989): [] __irq_exit_rcu+0x21b/0x260 kernel/softirq.c:636 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(slock-AF_BLUETOOTH-BTPROTO_SCO); lock(slock-AF_BLUETOOTH-BTPROTO_SCO); *** DEADLOCK *** 3 locks held by syz-executor.5/12246: #0: ffff8880133acff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x4c/0x1010 net/bluetooth/hci_core.c:1728 #1: ffff8880133ac078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_do_close+0x2c6/0x1010 net/bluetooth/hci_core.c:1765 #2: ffffffff8d8938a8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1498 [inline] #2: ffffffff8d8938a8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xb8/0x240 net/bluetooth/hci_conn.c:1608 stack backtrace: CPU: 0 PID: 12246 Comm: syz-executor.5 Not tainted 5.14.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1ae/0x29f lib/dump_stack.c:105 print_usage_bug+0xd5e/0x1210 kernel/locking/lockdep.c:3921 mark_lock_irq kernel/locking/lockdep.c:3933 [inline] mark_lock+0x1708/0x1eb0 kernel/locking/lockdep.c:4593 mark_usage kernel/locking/lockdep.c:4506 [inline] __lock_acquire+0xd71/0x6100 kernel/locking/lockdep.c:4969 lock_acquire+0x182/0x4a0 kernel/locking/lockdep.c:5625 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] sco_conn_del+0x113/0x2a0 net/bluetooth/sco.c:176 hci_disconn_cfm include/net/bluetooth/hci_core.h:1501 [inline] hci_conn_hash_flush+0x112/0x240 net/bluetooth/hci_conn.c:1608 hci_dev_do_close+0x905/0x1010 net/bluetooth/hci_core.c:1778 hci_unregister_dev+0x2a2/0x510 net/bluetooth/hci_core.c:4015 vhci_release+0x73/0xc0 drivers/bluetooth/hci_vhci.c:340 __fput+0x352/0x7b0 fs/file_table.c:280 task_work_run+0x146/0x1c0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0x72b/0x2510 kernel/exit.c:825 do_group_exit+0x168/0x2d0 kernel/exit.c:922 get_signal+0x16b0/0x2080 kernel/signal.c:2808 arch_do_signal_or_restart+0x8e/0x6d0 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x191/0x220 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:302 do_syscall_64+0x4c/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 Code: Unable to access opcode bytes at RIP 0x4665bf. RSP: 002b:00007f778aefc218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000056bf88 RCX: 00000000004665e9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000056bf88 RBP: 000000000056bf80 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf8c R13: 00007fff302e09ef R14: 00007f778aefc300 R15: 0000000000022000 device syz_tun left promiscuous mode