================================ WARNING: inconsistent lock state 5.10.0-rc5-syzkaller #0 Not tainted -------------------------------- inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. syz-executor.4/22085 [HC0[0]:SC0[0]:HE1:SE1] takes: ffff88815fa0c8a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88815fa0c8a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: sco_conn_del.isra.7+0x73/0x120 net/bluetooth/sco.c:176 {IN-SOFTIRQ-W} state was registered at: lock_acquire+0xf9/0x420 kernel/locking/lockdep.c:5437 __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+0x1d/0x80 net/bluetooth/sco.c:83 call_timer_fn+0xa5/0x300 kernel/time/timer.c:1410 expire_timers kernel/time/timer.c:1455 [inline] __run_timers kernel/time/timer.c:1747 [inline] run_timer_softirq+0x20d/0x570 kernel/time/timer.c:1760 __do_softirq+0xe9/0x52f kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x7c/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0xea/0x110 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x57/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631 arch_local_irq_restore arch/x86/include/asm/paravirt.h:653 [inline] lock_acquire+0x133/0x420 kernel/locking/lockdep.c:5440 __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] __d_add fs/dcache.c:2664 [inline] d_splice_alias+0x196/0x430 fs/dcache.c:3065 ext4_lookup+0x18d/0x230 fs/ext4/namei.c:1734 __lookup_hash+0x66/0x90 fs/namei.c:1445 filename_create+0xa4/0x180 fs/namei.c:3468 user_path_create fs/namei.c:3525 [inline] do_symlinkat+0x58/0xf0 fs/namei.c:3980 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 irq event stamp: 1895 hardirqs last enabled at (1895): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (1895): [] _raw_spin_unlock_irq+0x1f/0x50 kernel/locking/spinlock.c:199 hardirqs last disabled at (1894): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (1894): [] _raw_spin_lock_irq+0x68/0x70 kernel/locking/spinlock.c:167 softirqs last enabled at (0): [] copy_process+0x9a7/0x1d20 kernel/fork.c:2030 softirqs last disabled at (0): [<0000000000000000>] 0x0 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.4/22085: #0: ffff88812d07cf40 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x62/0x500 net/bluetooth/hci_core.c:1720 #1: ffff88812d07c078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_do_close+0xf5/0x500 net/bluetooth/hci_core.c:1757 #2: ffffffff8464e1c8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1438 [inline] #2: ffffffff8464e1c8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0x45/0xc0 net/bluetooth/hci_conn.c:1557 stack backtrace: CPU: 1 PID: 22085 Comm: syz-executor.4 Not tainted 5.10.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xa3/0xc8 lib/dump_stack.c:118 valid_state kernel/locking/lockdep.c:3751 [inline] mark_lock_irq kernel/locking/lockdep.c:3954 [inline] mark_lock.part.50+0x431/0x480 kernel/locking/lockdep.c:4411 mark_lock kernel/locking/lockdep.c:4375 [inline] mark_usage kernel/locking/lockdep.c:4324 [inline] __lock_acquire+0x3b4/0x1770 kernel/locking/lockdep.c:4786 lock_acquire+0xf9/0x420 kernel/locking/lockdep.c:5437 __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.isra.7+0x73/0x120 net/bluetooth/sco.c:176 hci_disconn_cfm include/net/bluetooth/hci_core.h:1441 [inline] hci_conn_hash_flush+0x64/0xc0 net/bluetooth/hci_conn.c:1557 hci_dev_do_close+0x1ed/0x500 net/bluetooth/hci_core.c:1770 hci_unregister_dev+0xc0/0x2c0 net/bluetooth/hci_core.c:3827 vhci_release+0x2a/0x60 drivers/bluetooth/hci_vhci.c:340 __fput+0xaa/0x250 fs/file_table.c:281 task_work_run+0x68/0xb0 kernel/task_work.c:151 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0x3b0/0xc90 kernel/exit.c:809 do_group_exit+0x42/0xb0 kernel/exit.c:906 get_signal+0x17c/0xc70 kernel/signal.c:2758 arch_do_signal+0x2b/0x900 arch/x86/kernel/signal.c:811 exit_to_user_mode_loop kernel/entry/common.c:161 [inline] exit_to_user_mode_prepare+0x1a2/0x220 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x7a/0x2c0 kernel/entry/common.c:266 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d4d9 Code: Unable to access opcode bytes at RIP 0x45d4af. RSP: 002b:00007fa17561acf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000118cf48 RCX: 000000000045d4d9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000118cf48 RBP: 000000000118cf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c R13: 00007fff677da35f R14: 00007fa17561b9c0 R15: 000000000118cf4c