Bluetooth: hci0: Controller not accepting commands anymore: ncmd = 0 Bluetooth: hci0: Injecting HCI hardware error event Bluetooth: hci0: hardware error 0x00 BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 0 PID: 1414 Comm: kworker/u5:2 Not tainted 6.6.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: hci0 hci_error_reset RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:228 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:240 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:ida_free+0x8c/0x150 lib/idr.c:511 Code: 88 ba 00 00 00 89 f5 89 f3 81 e3 ff 03 00 00 e8 5a 20 05 00 49 89 c6 48 89 e7 e8 ff 3d 02 00 49 89 c7 41 f6 c7 01 75 35 89 d8 <49> 0f a3 07 73 57 49 0f b3 07 48 89 e7 31 f6 e8 40 4d 02 00 be 00 RSP: 0018:ffffc9000103bd00 EFLAGS: 00010046 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000003 RDX: 6612725794df5284 RSI: ffffffff832fad87 RDI: ffffc9000103bd00 RBP: 0000000000002000 R08: 00000003fffffffc R09: 0000000000000402 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888100ac8338 R13: ffff888109e61800 R14: 0000000000000286 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000101bd6000 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+0x1e3/0x2f0 net/bluetooth/hci_conn.c:1184 hci_conn_hash_flush+0xa0/0xe0 net/bluetooth/hci_conn.c:2617 hci_dev_close_sync+0x305/0x610 net/bluetooth/hci_sync.c:5021 hci_dev_do_close net/bluetooth/hci_core.c:554 [inline] hci_error_reset+0x7b/0x130 net/bluetooth/hci_core.c:1059 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x278/0x580 kernel/workqueue.c:2703 worker_thread+0x267/0x360 kernel/workqueue.c:2784 kthread+0xf4/0x110 kernel/kthread.c:388 ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:304 Modules linked in: CR2: 0000000000000000 ---[ end trace 0000000000000000 ]--- RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:228 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:240 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:ida_free+0x8c/0x150 lib/idr.c:511 Code: 88 ba 00 00 00 89 f5 89 f3 81 e3 ff 03 00 00 e8 5a 20 05 00 49 89 c6 48 89 e7 e8 ff 3d 02 00 49 89 c7 41 f6 c7 01 75 35 89 d8 <49> 0f a3 07 73 57 49 0f b3 07 48 89 e7 31 f6 e8 40 4d 02 00 be 00 RSP: 0018:ffffc9000103bd00 EFLAGS: 00010046 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000003 RDX: 6612725794df5284 RSI: ffffffff832fad87 RDI: ffffc9000103bd00 RBP: 0000000000002000 R08: 00000003fffffffc R09: 0000000000000402 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888100ac8338 R13: ffff888109e61800 R14: 0000000000000286 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000101bd6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 88 ba 00 00 00 89 mov %bh,-0x77000000(%rdx) 6: f5 cmc 7: 89 f3 mov %esi,%ebx 9: 81 e3 ff 03 00 00 and $0x3ff,%ebx f: e8 5a 20 05 00 call 0x5206e 14: 49 89 c6 mov %rax,%r14 17: 48 89 e7 mov %rsp,%rdi 1a: e8 ff 3d 02 00 call 0x23e1e 1f: 49 89 c7 mov %rax,%r15 22: 41 f6 c7 01 test $0x1,%r15b 26: 75 35 jne 0x5d 28: 89 d8 mov %ebx,%eax * 2a: 49 0f a3 07 bt %rax,(%r15) <-- trapping instruction 2e: 73 57 jae 0x87 30: 49 0f b3 07 btr %rax,(%r15) 34: 48 89 e7 mov %rsp,%rdi 37: 31 f6 xor %esi,%esi 39: e8 40 4d 02 00 call 0x24d7e 3e: be .byte 0xbe