Bluetooth: hci2: hardware error 0x00
general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f]
CPU: 0 PID: 4267 Comm: kworker/u5:9 Not tainted 6.1.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: hci2 hci_error_reset
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del lib/klist.c:230 [inline]
RIP: 0010:klist_remove+0x1e2/0x460 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 ff e8 7a 85 3a f7 4d 8b 2f 49 83 e5 fe 49 8d 7d 58 48 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 05 e8 53 85 3a f7 4d 8b 75 58 4c 89 ef e8 97 91 15
RSP: 0018:ffffc900043678c0 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffffffff8e83dca8 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc900043679a8 R08: dffffc0000000000 R09: fffffbfff1d07b89
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100615858c
R13: 0000000000000000 R14: ffff88802aa61dc0 R15: ffff888030ac2c60
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f970197fba8 CR3: 0000000031bc8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000600 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 device_move+0x1b0/0x700 drivers/base/core.c:4632
 hci_conn_del_sysfs+0xa8/0x150 net/bluetooth/hci_sysfs.c:73
 hci_conn_cleanup+0x5a0/0x740 net/bluetooth/hci_conn.c:172
 hci_conn_del+0x417/0x6c0 net/bluetooth/hci_conn.c:1151
 hci_conn_hash_flush+0x300/0x3f0 net/bluetooth/hci_conn.c:2510
 hci_dev_close_sync+0x9a9/0xfc0 net/bluetooth/hci_sync.c:5178
 hci_dev_do_close net/bluetooth/hci_core.c:509 [inline]
 hci_error_reset+0x12c/0x3c0 net/bluetooth/hci_core.c:1020
 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del lib/klist.c:230 [inline]
RIP: 0010:klist_remove+0x1e2/0x460 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 ff e8 7a 85 3a f7 4d 8b 2f 49 83 e5 fe 49 8d 7d 58 48 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 05 e8 53 85 3a f7 4d 8b 75 58 4c 89 ef e8 97 91 15
RSP: 0018:ffffc900043678c0 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffffffff8e83dca8 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc900043679a8 R08: dffffc0000000000 R09: fffffbfff1d07b89
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100615858c
R13: 0000000000000000 R14: ffff88802aa61dc0 R15: ffff888030ac2c60
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdeb4825cfd CR3: 000000007d8e8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000600 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	80 3c 04 00          	cmpb   $0x0,(%rsp,%rax,1)
   4:	74 08                	je     0xe
   6:	4c 89 ff             	mov    %r15,%rdi
   9:	e8 7a 85 3a f7       	call   0xf73a8588
   e:	4d 8b 2f             	mov    (%r15),%r13
  11:	49 83 e5 fe          	and    $0xfffffffffffffffe,%r13
  15:	49 8d 7d 58          	lea    0x58(%r13),%rdi
  19:	48 89 f8             	mov    %rdi,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 05                	je     0x35
  30:	e8 53 85 3a f7       	call   0xf73a8588
  35:	4d 8b 75 58          	mov    0x58(%r13),%r14
  39:	4c 89 ef             	mov    %r13,%rdi
  3c:	e8                   	.byte 0xe8
  3d:	97                   	xchg   %eax,%edi
  3e:	91                   	xchg   %eax,%ecx
  3f:	15                   	.byte 0x15