syzbot


general protection fault in vhci_tx_loop

Status: moderation: reported on 2025/01/01 12:41
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+cfa3bdfa49441f650b85@syzkaller.appspotmail.com
First crash: 7d11h, last: 7d11h

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 UID: 0 PID: 7800 Comm: vhci_tx Not tainted 6.13.0-rc4-syzkaller-00071-gfd0584d220fe #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:setup_cmd_submit_pdu drivers/usb/usbip/vhci_tx.c:16 [inline]
RIP: 0010:vhci_send_cmd_submit drivers/usb/usbip/vhci_tx.c:95 [inline]
RIP: 0010:vhci_tx_loop+0x59e/0x1d10 drivers/usb/usbip/vhci_tx.c:241
Code: f9 49 8d 5c 24 08 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 e0 6a 51 fa 4c 8b 3b 49 8d 5f 18 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 c3 6a 51 fa 4c 8b 2b 48 b8 00 00
RSP: 0018:ffffc9000c7a7ae0 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff888027f45a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000c7a7ed0 R08: ffffffff87b1e578 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff2030a4f R12: ffff8880610cc100
R13: dffffc0000000000 R14: ffff8880207d37a0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffef93a6040 CR3: 0000000028b62000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:setup_cmd_submit_pdu drivers/usb/usbip/vhci_tx.c:16 [inline]
RIP: 0010:vhci_send_cmd_submit drivers/usb/usbip/vhci_tx.c:95 [inline]
RIP: 0010:vhci_tx_loop+0x59e/0x1d10 drivers/usb/usbip/vhci_tx.c:241
Code: f9 49 8d 5c 24 08 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 e0 6a 51 fa 4c 8b 3b 49 8d 5f 18 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 c3 6a 51 fa 4c 8b 2b 48 b8 00 00
RSP: 0018:ffffc9000c7a7ae0 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff888027f45a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000c7a7ed0 R08: ffffffff87b1e578 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff2030a4f R12: ffff8880610cc100
R13: dffffc0000000000 R14: ffff8880207d37a0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055667e6b3018 CR3: 000000003007e000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	f9                   	stc
   1:	49 8d 5c 24 08       	lea    0x8(%r12),%rbx
   6:	48 89 d8             	mov    %rbx,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  12:	74 08                	je     0x1c
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 e0 6a 51 fa       	call   0xfa516afc
  1c:	4c 8b 3b             	mov    (%rbx),%r15
  1f:	49 8d 5f 18          	lea    0x18(%r15),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 c3 6a 51 fa       	call   0xfa516afc
  39:	4c 8b 2b             	mov    (%rbx),%r13
  3c:	48                   	rex.W
  3d:	b8                   	.byte 0xb8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/28 12:38 upstream fd0584d220fe d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in vhci_tx_loop
* Struck through repros no longer work on HEAD.