================================ WARNING: inconsistent lock state 5.13.0-rc7-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor293/8425 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88802d5fe0a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88802d5fe0a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: sco_sock_timeout+0x33/0x1b0 net/bluetooth/sco.c:83 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5512 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5477 __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+0x134/0x2b0 net/bluetooth/sco.c:176 sco_disconn_cfm+0x74/0xb0 net/bluetooth/sco.c:1189 hci_disconn_cfm include/net/bluetooth/hci_core.h:1499 [inline] hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1608 hci_dev_do_close+0x569/0x1110 net/bluetooth/hci_core.c:1785 hci_unregister_dev+0x263/0x1130 net/bluetooth/hci_core.c:3999 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:340 __fput+0x288/0x920 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xbfc/0x2a60 kernel/exit.c:826 do_group_exit+0x125/0x310 kernel/exit.c:923 get_signal+0x47f/0x2150 kernel/signal.c:2835 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:789 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+0x180/0x290 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae irq event stamp: 8330586 hardirqs last enabled at (8330586): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (8330586): [] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:199 hardirqs last disabled at (8330585): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (8330585): [] _raw_spin_lock_irq+0x41/0x50 kernel/locking/spinlock.c:167 softirqs last enabled at (8330332): [] memcpy include/linux/fortify-string.h:191 [inline] softirqs last enabled at (8330332): [] fpu__copy+0x16c/0x660 arch/x86/kernel/fpu/core.c:241 softirqs last disabled at (8330579): [] invoke_softirq kernel/softirq.c:433 [inline] softirqs last disabled at (8330579): [] __irq_exit_rcu+0x136/0x200 kernel/softirq.c:637 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 *** 2 locks held by syz-executor293/8425: #0: ffffffff8bc0a098 (tasklist_lock){.+.+}-{2:2}, at: do_wait+0x2de/0xd40 kernel/exit.c:1505 #1: ffffc90000dc0d70 ((&sk->sk_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:35 [inline] #1: ffffc90000dc0d70 ((&sk->sk_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1421 stack backtrace: CPU: 1 PID: 8425 Comm: syz-executor293 Not tainted 5.13.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:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 print_usage_bug kernel/locking/lockdep.c:203 [inline] valid_state kernel/locking/lockdep.c:3820 [inline] mark_lock_irq kernel/locking/lockdep.c:4023 [inline] mark_lock.cold+0x61/0x8e kernel/locking/lockdep.c:4480 mark_usage kernel/locking/lockdep.c:4375 [inline] __lock_acquire+0x11aa/0x5230 kernel/locking/lockdep.c:4856 lock_acquire kernel/locking/lockdep.c:5512 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5477 __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/0x1b0 net/bluetooth/sco.c:83 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1431 expire_timers kernel/time/timer.c:1476 [inline] __run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1745 __run_timers kernel/time/timer.c:1726 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1758 __do_softirq+0x29b/0x9f6 kernel/softirq.c:559 invoke_softirq kernel/softirq.c:433 [inline] __irq_exit_rcu+0x136/0x200 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 RIP: 0010:check_kcov_mode kernel/kcov.c:163 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0xd/0x60 kernel/kcov.c:197 Code: ff ba 08 00 00 00 4d 8b 03 48 0f bd ca 49 8b 45 00 48 63 c9 e9 64 ff ff ff 0f 1f 40 00 65 8b 05 c9 12 8d 7e 89 c1 48 8b 34 24 <81> e1 00 01 00 00 65 48 8b 14 25 00 f0 01 00 a9 00 01 ff 00 74 0e RSP: 0018:ffffc9000168fc40 EFLAGS: 00000246 RAX: 0000000080000001 RBX: ffff888148c61c40 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff81455492 RDI: 0000000000000003 RBP: ffffc9000168fd18 R08: 0000000000000000 R09: ffffffff8bc0a083 R10: ffffffff814554e0 R11: 0000000000000000 R12: dffffc0000000000 R13: ffff88802801d4c0 R14: 0000000000000000 R15: ffff88802801da38 do_wait_thread kernel/exit.c:1397 [inline] do_wait+0x6e2/0xd40 kernel/exit.c:1515 kernel_wait4+0x14c/0x260 kernel/exit.c:1678 __do_sys_wait4+0x13f/0x150 kernel/exit.c:1706 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x44e057 Code: 89 7c 24 10 48 89 4c 24 18 e8 35 41 02 00 4c 8b 54 24 18 8b 54 24 14 41 89 c0 48 8b 74 24 08 8b 7c 24 10 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 89 44 24 10 e8 65 41 02 00 8b 44 RSP: 002b:00007ffd3a0d09f0 EFLAGS: 00000293 ORIG_RAX: 000000000000003d RAX: ffffffffffffffda RBX: 00000000000c2933 RCX: 000000000044e057 RDX: 0000000040000001 RSI: 00007ffd3a0d0a44 RDI: 00000000ffffffff RBP: 00000000000030c2 R08: 0000000000000000 R09: 00007ffd3a1e3080 R10: 0000000000000000 R11: 0000000000000293 R12: 00007ffd3a0d0a44 R13: 00007ffd3a0d0aa0 R14: 0000000000000a97 R15: 00007ffd3a0d0a80