syzbot
general protection fault in status_show
Status:
upstream: reported C repro on 2025/01/17 06:14
Subsystems:
usb
Labels:
prio:high
[Documentation on labels]
Reported-by: syzbot+83976e47ec1ef91e66f1@syzkaller.appspotmail.com
First crash: 613d, last: 88d
▶
▼
Last patch testing requests (15)
Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000080: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000400-0x0000000000000407]
CPU: 0 UID: 0 PID: 5880 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:status_show_vhci drivers/usb/usbip/vhci_sysfs.c:80 [inline]
RIP: 0010:status_show+0x1c9/0xb90 drivers/usb/usbip/vhci_sysfs.c:160
Code: 03 80 3c 02 00 0f 85 c0 09 00 00 48 8b 9b 88 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 00 04 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 a1 09 00 00 48 8b 83 00 04 00 00 41 c1 e6 04 45
RSP: 0018:ffffc900032afaa8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87bece32
RDX: 0000000000000080 RSI: ffffffff87beceb8 RDI: 0000000000000400
RBP: ffff8880799ac000 R08: 0000000000000005 R09: 0000000000000000
R10: 000000000000000f R11: 64666b636f732020 R12: dffffc0000000000
R13: ffff8880799ac02d R14: 000000000000000f R15: 1ffff92000655f5f
FS: 000055555bcfe500(0000) GS:ffff888124377000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2de63fff CR3: 0000000076228000 CR4: 00000000003526f0
Call Trace:
<TASK>
dev_attr_show+0x52/0xa0 drivers/base/core.c:2421
sysfs_kf_seq_show+0x217/0x3a0 fs/sysfs/file.c:65
seq_read_iter+0x32f/0x1270 fs/seq_file.c:231
kernfs_fop_read_iter+0x46c/0x610 fs/kernfs/file.c:297
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x825/0xb30 fs/read_write.c:574
ksys_read+0x12a/0x250 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9a139cdd9
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:00007ffe1490e368 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fd9a1615fa0 RCX: 00007fd9a139cdd9
RDX: 000000000000101c RSI: 0000200000001280 RDI: 0000000000000003
RBP: 00007fd9a1432d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd9a1615fac R14: 00007fd9a1615fa0 R15: 00007fd9a1615fa0
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:status_show_vhci drivers/usb/usbip/vhci_sysfs.c:80 [inline]
RIP: 0010:status_show+0x1c9/0xb90 drivers/usb/usbip/vhci_sysfs.c:160
Code: 03 80 3c 02 00 0f 85 c0 09 00 00 48 8b 9b 88 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 00 04 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 a1 09 00 00 48 8b 83 00 04 00 00 41 c1 e6 04 45
RSP: 0018:ffffc900032afaa8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87bece32
RDX: 0000000000000080 RSI: ffffffff87beceb8 RDI: 0000000000000400
RBP: ffff8880799ac000 R08: 0000000000000005 R09: 0000000000000000
R10: 000000000000000f R11: 64666b636f732020 R12: dffffc0000000000
R13: ffff8880799ac02d R14: 000000000000000f R15: 1ffff92000655f5f
FS: 000055555bcfe500(0000) GS:ffff888124377000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2de63fff CR3: 0000000076228000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
0: 03 80 3c 02 00 0f add 0xf00023c(%rax),%eax
6: 85 c0 test %eax,%eax
8: 09 00 or %eax,(%rax)
a: 00 48 8b add %cl,-0x75(%rax)
d: 9b fwait
e: 88 00 mov %al,(%rax)
10: 00 00 add %al,(%rax)
12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
19: fc ff df
1c: 48 8d bb 00 04 00 00 lea 0x400(%rbx),%rdi
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 a1 09 00 00 jne 0x9d5
34: 48 8b 83 00 04 00 00 mov 0x400(%rbx),%rax
3b: 41 c1 e6 04 shl $0x4,%r14d
3f: 45 rex.RB
* Struck through repros no longer work on HEAD.