Bluetooth: hci5: Opcode 0x0c1a failed: -4 Bluetooth: hci0: Opcode 0x0c1a failed: -4 Bluetooth: hci0: Opcode 0x0406 failed: -4 ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: lib/refcount.c:28 at refcount_warn_saturate+0xc9/0x120 lib/refcount.c:28, CPU#3: syz.5.3731/20737 Modules linked in: CPU: 3 UID: 0 PID: 20737 Comm: syz.5.3731 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~bpo12+1 04/01/2014 RIP: 0010:refcount_warn_saturate+0xc9/0x120 lib/refcount.c:28 Code: 5d e9 7b 29 12 fd e8 76 29 12 fd 48 8d 3d ef 6f e5 0b 67 48 0f b9 3a 5b 5d e9 63 29 12 fd e8 5e 29 12 fd 48 8d 3d e7 6f e5 0b <67> 48 0f b9 3a 5b 5d e9 4b 29 12 fd e8 46 29 12 fd 48 8d 3d df 6f RSP: 0018:ffffc90025d1f2d8 EFLAGS: 00010287 RAX: 0000000000010600 RBX: 0000000000000003 RCX: ffffc900072e1000 RDX: 0000000000080000 RSI: ffffffff84acbf62 RDI: ffffffff90922f50 RBP: ffff88803e6e0c78 R08: 0000000000000005 R09: 0000000000000004 R10: 0000000000000003 R11: ffff8880373d2ff0 R12: ffff888012404400 R13: ffff88803e6e0c78 R14: ffffffff85e68110 R15: ffffffff906bfce0 FS: 00007f094db046c0(0000) GS:ffff8880d6bf5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000004f664000 CR4: 0000000000352ef0 DR0: 0000000000000d8e DR1: 0000000000000003 DR2: 00000000000007ff DR3: 0000000000000024 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+0x11b/0x1b0 lib/klist.c:217 klist_del lib/klist.c:230 [inline] klist_remove+0x13f/0x2e0 lib/klist.c:249 device_move+0x12d/0x1160 drivers/base/core.c:4615 hci_conn_del_sysfs+0xaa/0x1a0 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:173 [inline] hci_conn_del+0x680/0x11d0 net/bluetooth/hci_conn.c:1234 hci_abort_conn_sync+0x76a/0xb20 net/bluetooth/hci_sync.c:5721 hci_disconnect_all_sync.constprop.0+0x104/0x3c0 net/bluetooth/hci_sync.c:5744 hci_suspend_sync+0x821/0xb40 net/bluetooth/hci_sync.c:6220 hci_suspend_dev+0x331/0x560 net/bluetooth/hci_core.c:2849 hci_suspend_notifier+0x2e0/0x340 net/bluetooth/hci_core.c:2420 notifier_call_chain+0xbc/0x3e0 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:414 do_dentry_open+0x748/0x1590 fs/open.c:962 vfs_open+0x82/0x3f0 fs/open.c:1094 do_open fs/namei.c:4628 [inline] path_openat+0x2078/0x3140 fs/namei.c:4787 do_filp_open+0x20b/0x470 fs/namei.c:4814 do_sys_openat2+0x121/0x290 fs/open.c:1430 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x174/0x210 fs/open.c:1447 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f094cb8f7c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f094db04038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f094cde5fa0 RCX: 00007f094cb8f7c9 RDX: 0000000000000040 RSI: 0000200000000200 RDI: ffffffffffffff9c RBP: 00007f094cc13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f094cde6038 R14: 00007f094cde5fa0 R15: 00007fff6bbb1fd8 ---------------- Code disassembly (best guess): 0: 5d pop %rbp 1: e9 7b 29 12 fd jmp 0xfd122981 6: e8 76 29 12 fd call 0xfd122981 b: 48 8d 3d ef 6f e5 0b lea 0xbe56fef(%rip),%rdi # 0xbe57001 12: 67 48 0f b9 3a ud1 (%edx),%rdi 17: 5b pop %rbx 18: 5d pop %rbp 19: e9 63 29 12 fd jmp 0xfd122981 1e: e8 5e 29 12 fd call 0xfd122981 23: 48 8d 3d e7 6f e5 0b lea 0xbe56fe7(%rip),%rdi # 0xbe57011 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 5b pop %rbx 30: 5d pop %rbp 31: e9 4b 29 12 fd jmp 0xfd122981 36: e8 46 29 12 fd call 0xfd122981 3b: 48 rex.W 3c: 8d .byte 0x8d 3d: 3d .byte 0x3d 3e: df .byte 0xdf 3f: 6f outsl %ds:(%rsi),(%dx)