Bluetooth: hci4: Opcode 0x0c1a failed: -4 Bluetooth: hci3: Opcode 0x0c1a failed: -4 Bluetooth: hci3: Opcode 0x0406 failed: -4 ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: lib/refcount.c:28 at refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28, CPU#0: syz.6.1083/10005 Modules linked in: CPU: 0 UID: 0 PID: 10005 Comm: syz.6.1083 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28 Code: cc e8 e0 02 e2 fc 48 8d 3d 89 d1 25 0c 67 48 0f b9 3a e8 cf 02 e2 fc 5b 5d e9 98 68 a9 06 e8 c3 02 e2 fc 48 8d 3d 7c d1 25 0c <67> 48 0f b9 3a e8 b2 02 e2 fc 5b 5d c3 cc cc cc cc e8 a6 02 e2 fc RSP: 0018:ffffc900048ef2c8 EFLAGS: 00010287 RAX: 000000000000ba88 RBX: ffff888056a62878 RCX: ffffc900249e1000 RDX: 0000000000080000 RSI: ffffffff852a0e4d RDI: ffffffff914fdfd0 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000004 R10: 0000000000000003 R11: 0000000000000000 R12: ffff88803506f800 R13: ffff888056a62878 R14: ffffffff86697440 R15: dffffc0000000000 FS: 00007fb5f22ef6c0(0000) GS:ffff8880d5b5d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe4807eb840 CR3: 000000004edbc000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000001800 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __refcount_sub_and_test include/linux/refcount.h:400 [inline] __refcount_dec_and_test include/linux/refcount.h:432 [inline] refcount_dec_and_test include/linux/refcount.h:450 [inline] kref_put include/linux/kref.h:64 [inline] klist_dec_and_del lib/klist.c:206 [inline] klist_put+0x18a/0x1d0 lib/klist.c:217 klist_del lib/klist.c:230 [inline] klist_remove+0x14c/0x2e0 lib/klist.c:249 device_move+0x12d/0x1140 drivers/base/core.c:4702 hci_conn_del_sysfs+0x86/0x1a0 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:170 [inline] hci_conn_del+0x506/0x1180 net/bluetooth/hci_conn.c:1318 hci_abort_conn_sync+0x7d9/0xb20 net/bluetooth/hci_sync.c:5994 hci_disconnect_all_sync.constprop.0.isra.0+0x155/0x430 net/bluetooth/hci_sync.c:6017 hci_suspend_sync+0xa3d/0xc40 net/bluetooth/hci_sync.c:6520 hci_suspend_dev+0x31d/0x540 net/bluetooth/hci_core.c:2815 hci_suspend_notifier+0x21e/0x330 net/bluetooth/hci_core.c:2384 notifier_call_chain+0x99/0x3f0 kernel/notifier.c:85 notifier_call_chain_robust kernel/notifier.c:120 [inline] blocking_notifier_call_chain_robust kernel/notifier.c:345 [inline] blocking_notifier_call_chain_robust+0xc8/0x160 kernel/notifier.c:333 pm_notifier_call_chain_robust+0x27/0x60 kernel/power/main.c:172 snapshot_open+0x189/0x2b0 kernel/power/user.c:77 misc_open+0x26d/0x450 drivers/char/misc.c:163 chrdev_open+0x234/0x6a0 fs/char_dev.c:411 do_dentry_open+0x6ab/0x14d0 fs/open.c:996 vfs_open+0x82/0x3f0 fs/open.c:1101 do_open fs/namei.c:4837 [inline] path_openat+0x19fa/0x2440 fs/namei.c:5000 do_file_open+0x20e/0x430 fs/namei.c:5029 do_sys_openat2+0x10f/0x1e0 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_openat fs/open.c:1439 [inline] __se_sys_openat fs/open.c:1434 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1434 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb5f139e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb5f22ef028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fb5f1625fa0 RCX: 00007fb5f139e159 RDX: 0000000000000100 RSI: 0000200000000100 RDI: ffffffffffffff9c RBP: 00007fb5f143503b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb5f1626038 R14: 00007fb5f1625fa0 R15: 00007ffcf855ddf8 ---------------- Code disassembly (best guess): 0: cc int3 1: e8 e0 02 e2 fc call 0xfce202e6 6: 48 8d 3d 89 d1 25 0c lea 0xc25d189(%rip),%rdi # 0xc25d196 d: 67 48 0f b9 3a ud1 (%edx),%rdi 12: e8 cf 02 e2 fc call 0xfce202e6 17: 5b pop %rbx 18: 5d pop %rbp 19: e9 98 68 a9 06 jmp 0x6a968b6 1e: e8 c3 02 e2 fc call 0xfce202e6 23: 48 8d 3d 7c d1 25 0c lea 0xc25d17c(%rip),%rdi # 0xc25d1a6 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e8 b2 02 e2 fc call 0xfce202e6 34: 5b pop %rbx 35: 5d pop %rbp 36: c3 ret 37: cc int3 38: cc int3 39: cc int3 3a: cc int3 3b: e8 a6 02 e2 fc call 0xfce202e6