syzbot
general protection fault in device_move
Status:
upstream: reported on 2025/07/04 01:12
Reported-by: syzbot+80628191ce3caee0ba98@syzkaller.appspotmail.com
First crash: 389d, last: 2d23h
Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f]
CPU: 1 PID: 10748 Comm: syz.5.944 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del lib/klist.c:230 [inline]
RIP: 0010:klist_remove+0x169/0x3a0 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 f7 e8 b3 75 67 f7 4d 8b 3e 49 83 e7 fe 49 8d 7f 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 8c 75 67 f7 49 8b 47 58 48 89 44 24 10 4c 89
RSP: 0018:ffffc90004c1f8c0 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffff88802b70da00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc90004c1f9b0 R08: ffffffff8e73ef83 R09: 1ffffffff1ce7df0
R10: dffffc0000000000 R11: fffffbfff1ce7df1 R12: 1ffff1100d60488c
R13: dffffc0000000000 R14: ffff88806b024460 R15: 0000000000000000
FS: 00007ff0afd2b6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff5b3556b8 CR3: 000000005f2d8000 CR4: 00000000003506e0
Call Trace:
<TASK>
device_move+0x18e/0x6f0 drivers/base/core.c:4671
hci_conn_del_sysfs+0xaf/0x160 net/bluetooth/hci_sysfs.c:75
hci_conn_cleanup net/bluetooth/hci_conn.c:175 [inline]
hci_conn_del+0x8a5/0xc40 net/bluetooth/hci_conn.c:1156
hci_conn_hash_flush+0x17d/0x220 net/bluetooth/hci_conn.c:2572
hci_dev_close_sync+0x9a1/0x1130 net/bluetooth/hci_sync.c:5329
hci_dev_do_close net/bluetooth/hci_core.c:523 [inline]
hci_rfkill_set_block+0x11b/0x1e0 net/bluetooth/hci_core.c:925
rfkill_set_block+0x1c1/0x3c0 net/rfkill/core.c:360
rfkill_fop_write+0x457/0x560 net/rfkill/core.c:1318
vfs_write+0x299/0x9a0 fs/read_write.c:582
ksys_write+0x151/0x260 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7ff0aed9de99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff0afd2b028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ff0af025fa0 RCX: 00007ff0aed9de99
RDX: 0000000000000008 RSI: 00002000000000c0 RDI: 0000000000000004
RBP: 00007ff0aee33eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff0af026038 R14: 00007ff0af025fa0 R15: 00007ffd4e076138
</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+0x169/0x3a0 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 f7 e8 b3 75 67 f7 4d 8b 3e 49 83 e7 fe 49 8d 7f 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 8c 75 67 f7 49 8b 47 58 48 89 44 24 10 4c 89
RSP: 0018:ffffc90004c1f8c0 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffff88802b70da00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc90004c1f9b0 R08: ffffffff8e73ef83 R09: 1ffffffff1ce7df0
R10: dffffc0000000000 R11: fffffbfff1ce7df1 R12: 1ffff1100d60488c
R13: dffffc0000000000 R14: ffff88806b024460 R15: 0000000000000000
FS: 00007ff0afd2b6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000001ff000 CR3: 000000005f2d8000 CR4: 00000000003506e0
----------------
Code disassembly (best guess):
0: 80 3c 04 00 cmpb $0x0,(%rsp,%rax,1)
4: 74 08 je 0xe
6: 4c 89 f7 mov %r14,%rdi
9: e8 b3 75 67 f7 call 0xf76775c1
e: 4d 8b 3e mov (%r14),%r15
11: 49 83 e7 fe and $0xfffffffffffffffe,%r15
15: 49 8d 7f 58 lea 0x58(%r15),%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 8c 75 67 f7 call 0xf76775c1
35: 49 8b 47 58 mov 0x58(%r15),%rax
39: 48 89 44 24 10 mov %rax,0x10(%rsp)
3e: 4c rex.WR
3f: 89 .byte 0x89
* Struck through repros no longer work on HEAD.