syzbot
WARNING in pci_scan_single_device
Status:
premoderation: reported C repro on 2026/10/03 03:27
Reported-by: syzbot+118c53dace741b5bf6b9@syzkaller.appspotmail.com
First crash: 10d, last: 4d20h
Sample crash report:
RBP: 0000000000000001 R08: 0000000000000000 R09: 00007f29259e0034
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f29259e1cd8
R13: 0000000000000002 R14: 0000200000000004 R15: 0000000000000002
</TASK>
pci (null): [8086:1237] type 00 class 0x060000 conventional PCI endpoint
------------[ cut here ]------------
WARNING: CPU: 0 PID: 313 at drivers/pci/probe.c:2712 pci_device_add+0x126f/0x1600 drivers/pci/probe.c:2712
Modules linked in:
CPU: 0 UID: 0 PID: 313 Comm: syz-executor331 Not tainted syzkaller #0 60889c1c5e6bdc1f3cb1b6a230ba908545dccc71
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
RIP: 0010:pci_device_add+0x126f/0x1600 drivers/pci/probe.c:2712
Code: f9 ff ff e9 77 f9 ff ff e8 2e 1a 9a fe 0f 0b 4c 8b 6c 24 30 e9 9f f9 ff ff e8 1d 1a 9a fe 0f 0b e9 6e fc ff ff e8 11 1a 9a fe <0f> 0b e9 64 fd ff ff 49 8d 8f 09 0b 00 00 80 e1 07 38 c1 0f 8c 1e
RSP: 0018:ffffc9000126f800 EFLAGS: 00010293
RAX: ffffffff82ed5e8f RBX: 00000000ffffffea RCX: ffff8881203d4c00
RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000000
RBP: ffffc9000126f8f0 R08: ffff888107640103 R09: 1ffff11020ec8020
R10: dffffc0000000000 R11: ffffed1020ec8021 R12: ffff88810e253028
R13: ffff888107640320 R14: dffffc0000000000 R15: ffff888107640b08
FS: 000055555f5dd3c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055686bf387b8 CR3: 00000001053f8000 CR4: 00000000003526b0
Call Trace:
<TASK>
pci_scan_single_device+0x520/0x710 drivers/pci/probe.c:2731
pci_scan_slot+0x1e6/0x680 drivers/pci/probe.c:2814
pci_scan_child_bus_extend+0x54/0x8b0 drivers/pci/probe.c:3033
pci_scan_child_bus drivers/pci/probe.c:3147 [inline]
pci_rescan_bus+0x1d/0x40 drivers/pci/probe.c:3438
rescan_store+0xcd/0x150 drivers/pci/pci-sysfs.c:463
bus_attr_store+0x91/0xb0 drivers/base/bus.c:172
sysfs_kf_write+0x13e/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f29259584e9
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff40cebcd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000200000000000 RCX: 00007f29259584e9
RDX: 0000000000000001 RSI: 0000200000000300 RDI: 0000000000000004
RBP: 0000000000000001 R08: 0000000000000000 R09: 00007f29259e0034
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f29259e1cd8
R13: 0000000000000002 R14: 0000200000000004 R15: 0000000000000002
</TASK>
---[ end trace 0000000000000000 ]---
Oops: general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7]
CPU: 1 UID: 0 PID: 313 Comm: syz-executor331 Tainted: G W syzkaller #0 60889c1c5e6bdc1f3cb1b6a230ba908545dccc71
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
RIP: 0010:__device_attach+0xb2/0x3c0 drivers/base/dd.c:1005
Code: 8d 66 68 4c 89 e0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 e7 e8 d0 3b 9c fe 4d 8b 2c 24 4d 8d a5 d0 00 00 00 4c 89 e0 48 c1 e8 03 <0f> b6 04 18 84 c0 0f 85 dd 02 00 00 41 0f b6 1c 24 89 de 83 e6 01
RSP: 0018:ffffc9000126f9c0 EFLAGS: 00010202
RAX: 000000000000001a RBX: dffffc0000000000 RCX: ffffffff85a662a7
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000126f940
RBP: ffffc9000126fa68 R08: ffffc9000126f947 R09: 1ffff9200024df28
R10: dffffc0000000000 R11: fffff5200024df29 R12: 00000000000000d0
R13: 0000000000000000 R14: ffff8881076400c8 R15: 0000000000000000
FS: 000055555f5dd3c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055686bf600e0 CR3: 00000001053f8000 CR4: 00000000003526b0
Call Trace:
<TASK>
device_attach+0x1b/0x40 drivers/base/dd.c:1072
pci_bus_add_device+0x11f/0x1f0 drivers/pci/bus.c:378
pci_bus_add_devices+0x98/0x1c0 drivers/pci/bus.c:401
pci_rescan_bus+0x30/0x40 drivers/pci/probe.c:3440
rescan_store+0xcd/0x150 drivers/pci/pci-sysfs.c:463
bus_attr_store+0x91/0xb0 drivers/base/bus.c:172
sysfs_kf_write+0x13e/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f29259584e9
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff40cebcd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000200000000000 RCX: 00007f29259584e9
RDX: 0000000000000001 RSI: 0000200000000300 RDI: 0000000000000004
RBP: 0000000000000001 R08: 0000000000000000 R09: 00007f29259e0034
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f29259e1cd8
R13: 0000000000000002 R14: 0000200000000004 R15: 0000000000000002
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__device_attach+0xb2/0x3c0 drivers/base/dd.c:1005
Code: 8d 66 68 4c 89 e0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 e7 e8 d0 3b 9c fe 4d 8b 2c 24 4d 8d a5 d0 00 00 00 4c 89 e0 48 c1 e8 03 <0f> b6 04 18 84 c0 0f 85 dd 02 00 00 41 0f b6 1c 24 89 de 83 e6 01
RSP: 0018:ffffc9000126f9c0 EFLAGS: 00010202
RAX: 000000000000001a RBX: dffffc0000000000 RCX: ffffffff85a662a7
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000126f940
RBP: ffffc9000126fa68 R08: ffffc9000126f947 R09: 1ffff9200024df28
R10: dffffc0000000000 R11: fffff5200024df29 R12: 00000000000000d0
R13: 0000000000000000 R14: ffff8881076400c8 R15: 0000000000000000
FS: 000055555f5dd3c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055686bf600e0 CR3: 00000001053f8000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
0: 8d 66 68 lea 0x68(%rsi),%esp
3: 4c 89 e0 mov %r12,%rax
6: 48 c1 e8 03 shr $0x3,%rax
a: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1)
e: 74 08 je 0x18
10: 4c 89 e7 mov %r12,%rdi
13: e8 d0 3b 9c fe call 0xfe9c3be8
18: 4d 8b 2c 24 mov (%r12),%r13
1c: 4d 8d a5 d0 00 00 00 lea 0xd0(%r13),%r12
23: 4c 89 e0 mov %r12,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 0f b6 04 18 movzbl (%rax,%rbx,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 dd 02 00 00 jne 0x313
36: 41 0f b6 1c 24 movzbl (%r12),%ebx
3b: 89 de mov %ebx,%esi
3d: 83 e6 01 and $0x1,%esi
* Struck through repros no longer work on HEAD.