------------[ cut here ]------------ ida_free called for id=8192 which is not allocated. WARNING: CPU: 0 PID: 5088 at lib/idr.c:525 ida_free+0x370/0x420 lib/idr.c:525 Modules linked in: CPU: 0 PID: 5088 Comm: syz-executor199 Not tainted 6.9.0-rc4-next-20240418-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:ida_free+0x370/0x420 lib/idr.c:525 Code: 10 42 80 3c 28 00 74 05 e8 9d 5e 82 f6 48 8b 7c 24 40 4c 89 fe e8 f0 a8 17 00 90 48 c7 c7 e0 01 eb 8c 89 de e8 a1 4b df f5 90 <0f> 0b 90 90 eb 3d e8 e5 0d 1d f6 49 bd 00 00 00 00 00 fc ff df 4d RSP: 0018:ffffc900015f7940 EFLAGS: 00010246 RAX: cb2d34767d4af100 RBX: 0000000000002000 RCX: ffff88807c061e00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900015f7a30 R08: ffffffff81589dd2 R09: 1ffff1101728519a R10: dffffc0000000000 R11: ffffed101728519b R12: ffffc900015f7980 R13: dffffc0000000000 R14: ffff888079ac80a0 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff3486b8f68 CR3: 000000000e132000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hci_conn_cleanup net/bluetooth/hci_conn.c:157 [inline] hci_conn_del+0x7a1/0xc90 net/bluetooth/hci_conn.c:1129 hci_conn_hash_flush+0x18e/0x240 net/bluetooth/hci_conn.c:2572 hci_dev_close_sync+0x9ab/0x1050 net/bluetooth/hci_sync.c:5159 hci_dev_do_close net/bluetooth/hci_core.c:561 [inline] hci_unregister_dev+0x1e3/0x4e0 net/bluetooth/hci_core.c:2780 vhci_release+0x83/0xd0 drivers/bluetooth/hci_vhci.c:674 __fput+0x406/0x8b0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa1b/0x27e0 kernel/exit.c:877 do_group_exit+0x207/0x2c0 kernel/exit.c:1026 __do_sys_exit_group kernel/exit.c:1037 [inline] __se_sys_exit_group kernel/exit.c:1035 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1035 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff348663109 Code: Unable to access opcode bytes at 0x7ff3486630df. RSP: 002b:00007ffcd149d0b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ff348663109 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007ff3486ed370 R08: ffffffffffffffb0 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000246 R12: 00007ff3486ed370 R13: 0000000000000000 R14: 00007ff3486ee0e0 R15: 00007ff34862db10