Bluetooth: hci3: Opcode 0x0c1a failed: -4 Bluetooth: hci3: Error when powering off device on rfkill (-4) ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 1 PID: 18119 at lib/refcount.c:28 refcount_warn_saturate+0x11a/0x1d0 lib/refcount.c:28 Modules linked in: CPU: 1 UID: 0 PID: 18119 Comm: syz.0.3219 Not tainted 6.17.0-rc1-syzkaller-00215-gbab3ce404553 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:refcount_warn_saturate+0x11a/0x1d0 lib/refcount.c:28 Code: 40 af e2 8b e8 67 72 bb fc 90 0f 0b 90 90 eb d7 e8 bb d3 f7 fc c6 05 65 99 c5 0a 01 90 48 c7 c7 a0 af e2 8b e8 47 72 bb fc 90 <0f> 0b 90 90 eb b7 e8 9b d3 f7 fc c6 05 42 99 c5 0a 01 90 48 c7 c7 RSP: 0018:ffffc9000b5077b8 EFLAGS: 00010246 RAX: d9f76493cc2c0e00 RBX: 0000000000000003 RCX: 0000000000080000 RDX: ffffc90011c2d000 RSI: 000000000004d68e RDI: 000000000004d68f RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa1ec R12: ffff888053f33000 R13: ffff888054fcb860 R14: ffff888054fcb878 R15: dffffc0000000000 FS: 00007faa80d3c6c0(0000) GS:ffff888125d1c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc8116cc99b CR3: 000000002df08000 CR4: 00000000003526f0 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+0x3c7/0x3d0 lib/klist.c:206 klist_put lib/klist.c:217 [inline] klist_del lib/klist.c:230 [inline] klist_remove+0x1bd/0x340 lib/klist.c:249 device_move+0x193/0x700 drivers/base/core.c:4615 hci_conn_del_sysfs+0xb8/0x170 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:175 [inline] hci_conn_del+0x949/0xcf0 net/bluetooth/hci_conn.c:1176 hci_conn_hash_flush+0x191/0x230 net/bluetooth/hci_conn.c:2565 hci_dev_close_sync+0xaef/0x1330 net/bluetooth/hci_sync.c:5294 hci_dev_do_close+0x2f/0x90 net/bluetooth/hci_core.c:501 hci_rfkill_set_block+0x21d/0x2e0 net/bluetooth/hci_core.c:929 rfkill_set_block+0x1d2/0x440 net/rfkill/core.c:346 rfkill_fop_write+0x44b/0x570 net/rfkill/core.c:1301 vfs_write+0x27e/0xb30 fs/read_write.c:684 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faa7ff8ebe9 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:00007faa80d3c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007faa801b5fa0 RCX: 00007faa7ff8ebe9 RDX: 0000000000000008 RSI: 0000200000000000 RDI: 0000000000000007 RBP: 00007faa80011e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faa801b6038 R14: 00007faa801b5fa0 R15: 00007fff63f89788