Bluetooth: hci2: Opcode 0x0c1a failed: -4 Bluetooth: hci2: Error when powering off device on rfkill (-4) ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: lib/refcount.c:28 at refcount_warn_saturate+0xb2/0x110 lib/refcount.c:28, CPU#0: syz.2.6307/26724 Modules linked in: CPU: 0 UID: 0 PID: 26724 Comm: syz.2.6307 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:refcount_warn_saturate+0xb2/0x110 lib/refcount.c:28 Code: f4 86 8f 0b 67 48 0f b9 3a eb 4a e8 a8 9a f3 fc 48 8d 3d f1 86 8f 0b 67 48 0f b9 3a eb 37 e8 95 9a f3 fc 48 8d 3d ee 86 8f 0b <67> 48 0f b9 3a eb 24 e8 82 9a f3 fc 48 8d 3d eb 86 8f 0b 67 48 0f RSP: 0018:ffffc900000e77b8 EFLAGS: 00010287 RAX: ffffffff84d366cb RBX: 0000000000000003 RCX: 0000000000080000 RDX: ffffc900119e2000 RSI: 0000000000037943 RDI: ffffffff9062edc0 RBP: 0000000000000000 R08: ffff88807b671f00 R09: 0000000000000005 R10: 0000000000000004 R11: 0000000000000002 R12: ffff888034be0800 R13: ffff88803231a860 R14: ffff88803231a878 R15: dffffc0000000000 FS: 00007fcaa09f66c0(0000) GS:ffff888124f49000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f40681d7d58 CR3: 0000000081094000 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+0x1c9/0x340 lib/klist.c:249 device_move+0x18e/0x720 drivers/base/core.c:4698 hci_conn_del_sysfs+0xb8/0x1a0 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:170 [inline] hci_conn_del+0xc3d/0x1200 net/bluetooth/hci_conn.c:1308 hci_conn_hash_flush+0x189/0x260 net/bluetooth/hci_conn.c:2736 hci_dev_close_sync+0x7fc/0x10a0 net/bluetooth/hci_sync.c:5513 hci_dev_do_close+0x30/0xc0 net/bluetooth/hci_core.c:499 hci_rfkill_set_block+0x1f4/0x290 net/bluetooth/hci_core.c:890 rfkill_set_block+0x19f/0x4d0 net/rfkill/core.c:360 rfkill_fop_write+0x43b/0x560 net/rfkill/core.c:1316 vfs_write+0x296/0xba0 fs/read_write.c:685 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcaa279e0d9 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:00007fcaa09f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fcaa2a26090 RCX: 00007fcaa279e0d9 RDX: 0000000000000008 RSI: 0000200000000080 RDI: 000000000000000a RBP: 00007fcaa2835024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fcaa2a26128 R14: 00007fcaa2a26090 R15: 00007ffecfae9e28 ---------------- Code disassembly (best guess): 0: f4 hlt 1: 86 8f 0b 67 48 0f xchg %cl,0xf48670b(%rdi) 7: b9 3a eb 4a e8 mov $0xe84aeb3a,%ecx c: a8 9a test $0x9a,%al e: f3 fc repz cld 10: 48 8d 3d f1 86 8f 0b lea 0xb8f86f1(%rip),%rdi # 0xb8f8708 17: 67 48 0f b9 3a ud1 (%edx),%rdi 1c: eb 37 jmp 0x55 1e: e8 95 9a f3 fc call 0xfcf39ab8 23: 48 8d 3d ee 86 8f 0b lea 0xb8f86ee(%rip),%rdi # 0xb8f8718 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: eb 24 jmp 0x55 31: e8 82 9a f3 fc call 0xfcf39ab8 36: 48 8d 3d eb 86 8f 0b lea 0xb8f86eb(%rip),%rdi # 0xb8f8728 3d: 67 addr32 3e: 48 rex.W 3f: 0f .byte 0xf