kmemleak: 10 new suspected memory leaks (see /sys/kernel/debug/kmemleak) ================================ WARNING: inconsistent lock state 5.10.60 #1 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88803915b0a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88803915b0a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: sco_sock_timeout+0x24/0x150 net/bluetooth/sco.c:83 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5560 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5525 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] sco_conn_del+0x128/0x270 net/bluetooth/sco.c:176 sco_disconn_cfm net/bluetooth/sco.c:1189 [inline] sco_disconn_cfm+0x62/0x80 net/bluetooth/sco.c:1182 hci_disconn_cfm include/net/bluetooth/hci_core.h:1443 [inline] hci_conn_hash_flush+0x119/0x230 net/bluetooth/hci_conn.c:1557 hci_dev_do_close+0x717/0x1240 net/bluetooth/hci_core.c:1777 hci_unregister_dev+0x149/0x430 net/bluetooth/hci_core.c:3835 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:340 __fput+0x285/0x970 fs/file_table.c:281 task_work_run+0xe2/0x1a0 kernel/task_work.c:151 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0xc0f/0x2770 kernel/exit.c:811 do_group_exit+0x125/0x310 kernel/exit.c:908 __do_sys_exit_group kernel/exit.c:919 [inline] __se_sys_exit_group kernel/exit.c:917 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:917 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 irq event stamp: 21227186 hardirqs last enabled at (21227186): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (21227186): [] _raw_spin_unlock_irq+0x1f/0x30 kernel/locking/spinlock.c:199 hardirqs last disabled at (21227185): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (21227185): [] _raw_spin_lock_irq+0x3e/0x40 kernel/locking/spinlock.c:167 softirqs last enabled at (21227182): [] irq_enter_rcu+0xbc/0xd0 kernel/softirq.c:360 softirqs last disabled at (21227183): [] asm_call_irq_on_stack+0x12/0x20 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 *** 1 lock held by swapper/1/0: #0: ffff88806cf09d68 ((&sk->sk_timer)#2){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:35 [inline] #0: ffff88806cf09d68 ((&sk->sk_timer)#2){+.-.}-{0:0}, at: call_timer_fn+0xd4/0x580 kernel/time/timer.c:1404 stack backtrace: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.10.60 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:118 print_usage_bug kernel/locking/lockdep.c:3857 [inline] valid_state kernel/locking/lockdep.c:3869 [inline] mark_lock_irq kernel/locking/lockdep.c:4072 [inline] mark_lock.cold+0x19/0x159 kernel/locking/lockdep.c:4529 mark_usage kernel/locking/lockdep.c:4424 [inline] __lock_acquire+0x11f0/0x5b60 kernel/locking/lockdep.c:4904 lock_acquire kernel/locking/lockdep.c:5560 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5525 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] sco_sock_timeout+0x24/0x150 net/bluetooth/sco.c:83 call_timer_fn+0x182/0x580 kernel/time/timer.c:1414 expire_timers kernel/time/timer.c:1459 [inline] __run_timers.part.0+0x666/0x9d0 kernel/time/timer.c:1750 __run_timers kernel/time/timer.c:1731 [inline] run_timer_softirq+0x80/0x120 kernel/time/timer.c:1763 __do_softirq+0x1b6/0x86a kernel/softirq.c:298 asm_call_irq_on_stack+0x12/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+0x80/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+0x110/0x1a0 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1095 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:default_idle+0xe/0x10 arch/x86/kernel/process.c:689 Code: ff ff ff 4c 89 e7 e8 11 87 90 fd eb 93 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 e9 07 00 00 00 0f 00 2d b4 72 48 00 fb f4 cc 41 55 41 54 55 48 89 fd 53 e8 f2 96 65 fd 48 8b 1d 9b 64 07 RSP: 0018:ffff888008577e78 EFLAGS: 00000202 RAX: ffffffff83d9c7a0 RBX: ffff888008533280 RCX: ffffffff83d84988 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff83d9cb5f RBP: ffffed10010a6650 R08: 0000000000000001 R09: ffff88806cf3406b R10: ffffed100d9e680d R11: 0000000000000001 R12: 0000000000000001 R13: ffffffff85472b08 R14: 0000000000000000 R15: dffffc0000000000 default_idle_call+0x87/0xd0 kernel/sched/idle.c:112 cpuidle_idle_call kernel/sched/idle.c:194 [inline] do_idle+0x3a5/0x510 kernel/sched/idle.c:300 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:396 secondary_startup_64_no_verify+0xc2/0xcb EXT4-fs (loop7): VFS: Can't find ext4 filesystem EXT4-fs (loop7): VFS: Can't find ext4 filesystem kernel write not supported for file 27825/task/27825/setgroups (pid: 22498 comm: kworker/1:0) EXT4-fs (loop7): VFS: Can't find ext4 filesystem