------------[ cut here ]------------ ida_free called for id=8192 which is not allocated. WARNING: CPU: 0 PID: 1537 at lib/idr.c:525 ida_free+0x370/0x420 lib/idr.c:525 Modules linked in: CPU: 0 PID: 1537 Comm: syz-executor.4 Not tainted 6.8.0-rc4-next-20240212-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:ida_free+0x370/0x420 lib/idr.c:525 Code: 10 42 80 3c 28 00 74 05 e8 ad 16 94 f6 48 8b 7c 24 40 4c 89 fe e8 70 8e 17 00 90 48 c7 c7 80 6d c6 8c 89 de e8 e1 c6 f4 f5 90 <0f> 0b 90 90 eb 3d e8 b5 ed 30 f6 49 bd 00 00 00 00 00 fc ff df 4d RSP: 0018:ffffc900032af8c0 EFLAGS: 00010246 RAX: aea3794f33f3ba00 RBX: 0000000000002000 RCX: 0000000000040000 RDX: ffffc9000a3a5000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900032af9b8 R08: ffffffff8157b862 R09: 1ffff92000655eb8 R10: dffffc0000000000 R11: fffff52000655eb9 R12: ffffc900032af900 R13: dffffc0000000000 R14: ffff88803d8f80a0 R15: 0000000000000246 FS: 00007fabde5ba6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f60eebbd000 CR3: 000000007af22000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hci_conn_cleanup net/bluetooth/hci_conn.c:156 [inline] hci_conn_del+0x784/0xc70 net/bluetooth/hci_conn.c:1126 hci_conn_hash_flush+0x18e/0x240 net/bluetooth/hci_conn.c:2593 hci_dev_close_sync+0x9ab/0xff0 net/bluetooth/hci_sync.c:4959 hci_dev_do_close+0x30/0x90 net/bluetooth/hci_core.c:554 hci_rfkill_set_block+0x232/0x300 net/bluetooth/hci_core.c:985 rfkill_set_block+0x1f1/0x440 net/rfkill/core.c:346 rfkill_fop_write+0x5bb/0x790 net/rfkill/core.c:1305 vfs_write+0x2a4/0xcb0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7fabdd87dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fabde5ba0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fabdd9ac050 RCX: 00007fabdd87dda9 RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007fabdd8ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fabdd9ac050 R15: 00007ffed6eb5918