Bluetooth: hci0: Opcode 0x0c1a failed: -4 Bluetooth: hci0: Opcode 0x0406 failed: -4 ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 3 PID: 10351 at lib/refcount.c:28 refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Modules linked in: CPU: 3 UID: 0 PID: 10351 Comm: syz.5.1264 Not tainted 6.16.0-rc7-syzkaller #0 PREEMPT(full) 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+0x14a/0x210 lib/refcount.c:28 Code: ff 89 de e8 38 f2 e0 fc 84 db 0f 85 66 ff ff ff e8 4b f7 e0 fc c6 05 76 aa b6 0b 01 90 48 c7 c7 a0 1f 15 8c e8 d7 fe 9f fc 90 <0f> 0b 90 90 e9 43 ff ff ff e8 28 f7 e0 fc 0f b6 1d 51 aa b6 0b 31 RSP: 0018:ffffc900039c7318 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90025221000 RDX: 0000000000080000 RSI: ffffffff817af1b5 RDI: 0000000000000001 RBP: ffff88803e410478 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88802b87f800 R13: ffff88803e410478 R14: ffffffff8609d0d0 R15: ffffffff908c3d20 FS: 00007f4ae1d3e6c0(0000) GS:ffff8880d6a20000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055558f8c5808 CR3: 0000000025698000 CR4: 0000000000352ef0 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/0x10d0 drivers/base/core.c:4618 hci_conn_del_sysfs+0x81/0x180 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:175 [inline] hci_conn_del+0x566/0xdc0 net/bluetooth/hci_conn.c:1173 hci_abort_conn_sync+0x762/0xb10 net/bluetooth/hci_sync.c:5689 hci_disconnect_all_sync.constprop.0+0x104/0x3c0 net/bluetooth/hci_sync.c:5712 hci_suspend_sync+0x770/0xab0 net/bluetooth/hci_sync.c:6188 hci_suspend_dev+0x308/0x500 net/bluetooth/hci_core.c:2851 hci_suspend_notifier+0x28d/0x2f0 net/bluetooth/hci_core.c:2422 notifier_call_chain+0xbc/0x410 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:102 snapshot_open+0x189/0x2b0 kernel/power/user.c:77 misc_open+0x35a/0x420 drivers/char/misc.c:161 chrdev_open+0x234/0x6a0 fs/char_dev.c:414 do_dentry_open+0x744/0x1c10 fs/open.c:964 vfs_open+0x82/0x3f0 fs/open.c:1094 do_open fs/namei.c:3896 [inline] path_openat+0x1de4/0x2cb0 fs/namei.c:4055 do_filp_open+0x20b/0x470 fs/namei.c:4082 do_sys_openat2+0x11b/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x174/0x210 fs/open.c:1463 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4ae0f8e9a9 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:00007f4ae1d3e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4ae11b5fa0 RCX: 00007f4ae0f8e9a9 RDX: 0000000000007e00 RSI: 00002000000002c0 RDI: ffffffffffffff9c RBP: 00007f4ae1010d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4ae11b5fa0 R15: 00007fff45219548