================================ WARNING: inconsistent lock state 5.13.0-rc5-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.2/17437 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88802c2440a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88802c2440a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: sco_sock_timeout+0x33/0x170 net/bluetooth/sco.c:83 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __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:1499 [inline] hci_conn_hash_flush+0x112/0x240 net/bluetooth/hci_conn.c:1608 hci_dev_do_close+0xa04/0xfe0 net/bluetooth/hci_core.c:1785 hci_unregister_dev+0x35b/0x19b0 net/bluetooth/hci_core.c:3999 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+0x736/0x23d0 kernel/exit.c:826 do_group_exit+0x168/0x2d0 kernel/exit.c:923 __do_sys_exit_group+0x13/0x20 kernel/exit.c:934 __ia32_sys_exit_group+0x0/0x40 kernel/exit.c:932 __x64_sys_exit_group+0x37/0x40 kernel/exit.c:932 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae irq event stamp: 1216 hardirqs last enabled at (1216): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 hardirqs last disabled at (1215): [] sysvec_apic_timer_interrupt+0xa/0xb0 arch/x86/kernel/apic/apic.c:1100 softirqs last enabled at (456): [] local_bh_enable+0x5/0x20 include/linux/bottom_half.h:31 softirqs last disabled at (1205): [] invoke_softirq kernel/softirq.c:433 [inline] softirqs last disabled at (1205): [] __irq_exit_rcu+0x245/0x280 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 *** 3 locks held by syz-executor.2/17437: #0: ffff888081365958 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:784 [inline] #0: ffff888081365958 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: lookup_slow fs/namei.c:1645 [inline] #0: ffff888081365958 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: walk_component+0x4c8/0x740 fs/namei.c:1942 #1: ffffffff8cf15cc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #2: ffffc90000dc0be0 ((&sk->sk_timer)#2){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:45 [inline] #2: ffffc90000dc0be0 ((&sk->sk_timer)#2){+.-.}-{0:0}, at: call_timer_fn+0xbd/0x210 kernel/time/timer.c:1421 stack backtrace: CPU: 1 PID: 17437 Comm: syz-executor.2 Not tainted 5.13.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:79 [inline] dump_stack+0x202/0x31e lib/dump_stack.c:120 print_usage_bug+0xd5e/0x1210 kernel/locking/lockdep.c:3808 mark_lock_irq kernel/locking/lockdep.c:3820 [inline] mark_lock+0x1708/0x1eb0 kernel/locking/lockdep.c:4480 mark_usage kernel/locking/lockdep.c:4375 [inline] __lock_acquire+0xcc9/0x6040 kernel/locking/lockdep.c:4856 lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __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:1431 expire_timers kernel/time/timer.c:1476 [inline] __run_timers+0x6ff/0x910 kernel/time/timer.c:1745 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1758 __do_softirq+0x372/0x7a6 kernel/softirq.c:559 invoke_softirq kernel/softirq.c:433 [inline] __irq_exit_rcu+0x245/0x280 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 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:647 RIP: 0010:lock_acquire+0x1f6/0x720 kernel/locking/lockdep.c:5516 Code: f6 84 24 a1 00 00 00 02 0f 85 8d 02 00 00 f7 c3 00 02 00 00 49 bd 00 00 00 00 00 fc ff df 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 3d 00 00 00 00 00 4b c7 44 3d 09 00 00 00 00 43 c7 44 3d RSP: 0018:ffffc90016577320 EFLAGS: 00000206 RAX: 1ffff92002caee78 RBX: 0000000000000246 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90016577488 R08: dffffc0000000000 R09: fffffbfff204ddb1 R10: fffffbfff204ddb1 R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff92002caee6c rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:267 rcu_read_lock include/linux/rcupdate.h:657 [inline] task_dump_owner+0x75/0x420 fs/proc/base.c:1829 pid_update_inode fs/proc/base.c:1964 [inline] proc_pident_instantiate+0x236/0x2f0 fs/proc/base.c:2617 proc_pident_lookup fs/proc/base.c:2641 [inline] proc_tgid_base_lookup+0x185/0x220 fs/proc/base.c:3303 __lookup_slow+0x266/0x3c0 fs/namei.c:1629 lookup_slow fs/namei.c:1646 [inline] walk_component+0x4d6/0x740 fs/namei.c:1942 link_path_walk+0x687/0xcf0 fs/namei.c:2265 path_openat+0x26e/0x39b0 fs/namei.c:3490 do_filp_open+0x221/0x460 fs/namei.c:3521 do_sys_openat2+0x124/0x460 fs/open.c:1187 do_sys_open fs/open.c:1203 [inline] __do_sys_openat fs/open.c:1219 [inline] __se_sys_openat fs/open.c:1214 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1214 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4196c4 Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44 RSP: 002b:00007f663e3850b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004196c4 RDX: 0000000000000000 RSI: 00000000004beced RDI: 00000000ffffff9c RBP: 00000000004beced R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007ffd810f005f R14: 00007f663e385300 R15: 0000000000022000