------------[ cut here ]------------ ida_free called for id=8192 which is not allocated. WARNING: CPU: 1 PID: 6176 at lib/idr.c:525 ida_free+0x2b8/0x378 lib/idr.c:525 Modules linked in: CPU: 1 PID: 6176 Comm: syz-executor124 Tainted: G B 6.8.0-rc5-syzkaller-g9abbc24128bc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 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 : ffff800097857780 x29: ffff800097857830 x28: 1ffff00012353254 x27: 1ffff00012f0aef4 x26: dfff800000000000 x25: ffff700012f0aef0 x24: dfff800000000000 x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 0000000000002000 x19: ffff8000978577a0 x18: 1fffe00036804796 x17: 0000000000000000 x16: ffff80008ad5bbdc x15: 0000000000000001 x14: 1fffe00036804802 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000002 x10: 0000000000ff0100 x9 : 283b87e495b4cc00 x8 : 283b87e495b4cc00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800097857078 x4 : ffff80008ed715e0 x3 : ffff8000805b98b4 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_unregister_dev+0x1e4/0x4a8 net/bluetooth/hci_core.c:2739 vhci_release+0x7c/0xd0 drivers/bluetooth/hci_vhci.c:674 __fput+0x30c/0x738 fs/file_table.c:376 ____fput+0x20/0x30 fs/file_table.c:404 task_work_run+0x230/0x2e0 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x618/0x1f64 kernel/exit.c:871 do_group_exit+0x194/0x22c kernel/exit.c:1020 __do_sys_exit_group kernel/exit.c:1031 [inline] __se_sys_exit_group kernel/exit.c:1029 [inline] pid_child_should_wake+0x0/0x1dc kernel/exit.c:1029 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 0 hardirqs last enabled at (0): [<0000000000000000>] 0x0 hardirqs last disabled at (0): [] copy_process+0x1318/0x3478 kernel/fork.c:2441 softirqs last enabled at (0): [] copy_process+0x1340/0x3478 kernel/fork.c:2442 softirqs last disabled at (0): [<0000000000000000>] 0x0 ---[ end trace 0000000000000000 ]---