------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 1 PID: 9822 at lib/refcount.c:28 refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Modules linked in: CPU: 1 UID: 0 PID: 9822 Comm: syz.3.1098 Not tainted 6.14.0-rc5-syzkaller-00013-g99fa936e8e4f #0 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 08 3e f5 fc 84 db 0f 85 66 ff ff ff e8 5b 43 f5 fc c6 05 3e 4c 86 0b 01 90 48 c7 c7 a0 07 d3 8b e8 17 72 b5 fc 90 <0f> 0b 90 90 e9 43 ff ff ff e8 38 43 f5 fc 0f b6 1d 19 4c 86 0b 31 RSP: 0018:ffffc9000eaaf218 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff817a1229 RDX: ffff888030c8a440 RSI: ffffffff817a1236 RDI: 0000000000000001 RBP: ffff88802a2fac78 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000007 R12: ffff888031eb6c00 R13: ffff88802a2fac78 R14: ffffffff85ec0820 R15: dffffc0000000000 FS: 00007f42e47946c0(0000) GS:ffff88806a700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555572825808 CR3: 0000000027af4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: <TASK> __refcount_sub_and_test include/linux/refcount.h:275 [inline] __refcount_dec_and_test include/linux/refcount.h:307 [inline] refcount_dec_and_test include/linux/refcount.h:325 [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+0x140/0x2b0 lib/klist.c:249 device_move+0x12d/0x10b0 drivers/base/core.c:4591 hci_conn_del_sysfs+0x81/0x180 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:174 [inline] hci_conn_del+0x54e/0xdb0 net/bluetooth/hci_conn.c:1164 hci_conn_failed+0x2a6/0x3e0 net/bluetooth/hci_conn.c:1267 hci_abort_conn_sync+0x91c/0xfe0 net/bluetooth/hci_sync.c:5588 hci_disconnect_all_sync.constprop.0+0x104/0x3c0 net/bluetooth/hci_sync.c:5611 hci_suspend_sync+0x772/0xab0 net/bluetooth/hci_sync.c:6088 hci_suspend_dev+0x30a/0x510 net/bluetooth/hci_core.c:2811 hci_suspend_notifier+0x28d/0x2f0 net/bluetooth/hci_core.c:2391 notifier_call_chain+0xb7/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+0xc9/0x170 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:179 chrdev_open+0x237/0x6a0 fs/char_dev.c:414 do_dentry_open+0x735/0x1c40 fs/open.c:956 vfs_open+0x82/0x3f0 fs/open.c:1086 do_open fs/namei.c:3830 [inline] path_openat+0x1e88/0x2d80 fs/namei.c:3989 do_filp_open+0x20c/0x470 fs/namei.c:4016 do_sys_openat2+0x17a/0x1e0 fs/open.c:1428 do_sys_open fs/open.c:1443 [inline] __do_sys_openat fs/open.c:1459 [inline] __se_sys_openat fs/open.c:1454 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1454 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f42e398d169 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:00007f42e4794038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f42e3ba5fa0 RCX: 00007f42e398d169 RDX: 0000000000044000 RSI: 0000400000000040 RDI: ffffffffffffff9c RBP: 00007f42e3a0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f42e3ba5fa0 R15: 00007ffe34c1ba68 </TASK>