------------[ cut here ]------------ ida_free called for id=8192 which is not allocated. WARNING: CPU: 1 PID: 5119 at lib/idr.c:525 ida_free+0x1fb/0x2f0 lib/idr.c:525 Modules linked in: CPU: 1 PID: 5119 Comm: kworker/u5:5 Not tainted 6.8.0-rc4-syzkaller-00005-gc664e16bb1ba #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: hci3 hci_error_reset RIP: 0010:ida_free+0x1fb/0x2f0 lib/idr.c:525 Code: dd f6 41 83 fe 3e 76 73 e8 c2 09 dd f6 48 8b 7c 24 28 4c 89 ee e8 25 8d 18 00 90 48 c7 c7 c0 a8 5b 8c 89 ee e8 06 2f a1 f6 90 <0f> 0b 90 90 e8 9c 09 dd f6 48 b8 00 00 00 00 00 fc ff df 48 01 c3 RSP: 0018:ffffc900047c7a78 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 1ffff920008f8f50 RCX: ffffffff81509959 RDX: ffff8880295e1dc0 RSI: ffffffff81509966 RDI: 0000000000000001 RBP: 0000000000002000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000005f2f8 R12: 0000000000000000 R13: 0000000000000293 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556a00938 CR3: 000000007a8ce000 CR4: 0000000000350ef0 Call Trace: hci_conn_cleanup net/bluetooth/hci_conn.c:157 [inline] hci_conn_del+0x795/0xe20 net/bluetooth/hci_conn.c:1188 hci_conn_hash_flush+0x18f/0x260 net/bluetooth/hci_conn.c:2646 hci_dev_close_sync+0x59b/0x1160 net/bluetooth/hci_sync.c:4954 hci_dev_do_close+0x2e/0x90 net/bluetooth/hci_core.c:554 hci_error_reset+0xa9/0x1a0 net/bluetooth/hci_core.c:1059 process_one_work+0x88c/0x15e0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b9/0x12a0 kernel/workqueue.c:2787 kthread+0x2c9/0x3b0 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242