Bluetooth: hci2: Injecting HCI hardware error event Bluetooth: hci2: hardware error 0x00 ------------[ cut here ]------------ ida_free called for id=8192 which is not allocated. WARNING: CPU: 0 PID: 6186 at lib/idr.c:525 ida_free+0x2b8/0x378 lib/idr.c:525 Modules linked in: CPU: 0 PID: 6186 Comm: kworker/u5:3 Not tainted 6.8.0-rc3-syzkaller-gf735966ee23c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: hci2 hci_error_reset pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : ida_free+0x2b8/0x378 lib/idr.c:525 lr : ida_free+0x2b8/0x378 lib/idr.c:525 sp : ffff800097d478c0 x29: ffff800097d47970 x28: 1ffff0001234f194 x27: 1ffff00012fa8f1c x26: dfff800000000000 x25: ffff700012fa8f18 x24: dfff800000000000 x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 0000000000002000 x19: ffff800097d478e0 x18: ffff800097d46da0 x17: 0000000000000000 x16: ffff80008ad653b8 x15: 0000000000000001 x14: 1fffe000367ff602 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000002 x10: 0000000000ff0100 x9 : 0a61956dd1330a00 x8 : 0a61956dd1330a00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800097d471b8 x4 : ffff80008ed517e0 x3 : ffff8000805b8d7c x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: ida_free+0x2b8/0x378 lib/idr.c:525 hci_conn_cleanup net/bluetooth/hci_conn.c:157 [inline] hci_conn_del+0x650/0xb0c net/bluetooth/hci_conn.c:1188 hci_conn_hash_flush+0x184/0x220 net/bluetooth/hci_conn.c:2646 hci_dev_close_sync+0x7d8/0xf20 net/bluetooth/hci_sync.c:4954 hci_dev_do_close net/bluetooth/hci_core.c:554 [inline] hci_error_reset+0xf4/0x248 net/bluetooth/hci_core.c:1059 process_one_work+0x694/0x1204 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2787 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 irq event stamp: 8968 hardirqs last enabled at (8967): [] __up_console_sem kernel/printk/printk.c:341 [inline] hardirqs last enabled at (8967): [] __console_unlock kernel/printk/printk.c:2706 [inline] hardirqs last enabled at (8967): [] console_unlock+0x17c/0x3d4 kernel/printk/printk.c:3038 hardirqs last disabled at (8968): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:436 softirqs last enabled at (8122): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (8122): [] __do_softirq+0xac8/0xce4 kernel/softirq.c:582 softirqs last disabled at (8101): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ end trace 0000000000000000 ]--- Bluetooth: hci2: Opcode 0x0c03 failed: -110 Bluetooth: hci2: Opcode 0x2046 failed: -110