syzbot


WARNING in vmk80xx_auto_attach/usb_submit_urb

Status: fixed on 2024/05/22 23:46
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+5f29dc6a889fc42bd896@syzkaller.appspotmail.com
Fix commit: d1718530e3f6 comedi: vmk80xx: fix incomplete endpoint checking
First crash: 1083d, last: 78d
Cause bisection: introduced by (bisect log) [ignored commit]:
commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10
Author: Andrey Konovalov <andreyknvl@google.com>
Date: Mon Feb 24 16:13:03 2020 +0000

  usb: gadget: add raw-gadget interface

Crash: WARNING in vmk80xx_auto_attach/usb_submit_urb (log)
Repro: C syz .config
  
Fix bisection the fix commit could be any of (bisect log):
  614124bea77e Linux 5.13-rc5
  f55966571d5e Merge tag 'drm-next-2021-07-08-1' of git://anongit.freedesktop.org/drm/drm
  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in vmk80xx_write_packet/usb_submit_urb usb C error inconclusive 61 44d 1783d 0/26 closed as dup on 2024/05/22 11:30
Discussions (6)
Title Replies (including bot) Last reply
[PATCH v2] comedi: vmk80xx: fix incomplete endpoint checking 1 (1) 2024/04/08 17:16
[PATCH] comedi: vmk80xx: fix incomplete endpoint checking 2 (2) 2024/04/08 15:25
Re: [syzbot] WARNING in vmk80xx_auto_attach/usb_submit_urb 1 (2) 2024/04/07 13:56
Re: [syzbot] WARNING in vmk80xx_auto_attach/usb_submit_urb 1 (2) 2024/04/06 14:05
Re: [syzbot] WARNING in vmk80xx_auto_attach/usb_submit_urb 1 (1) 2024/04/05 13:30
[syzbot] WARNING in vmk80xx_auto_attach/usb_submit_urb 2 (3) 2021/06/12 14:19
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/04/07 13:02 23m n.zhandarovich@fintech.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fe46a7dd189e OK log
2024/04/05 13:34 23m n.zhandarovich@fintech.ru patch git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git 4090fa373f0e763c43610853d2774b5979915959 error OK
2024/03/09 03:13 14m retest repro upstream report log
2024/02/03 03:32 15m retest repro upstream report log
2023/11/19 15:48 14m retest repro upstream report log
2023/09/10 10:14 13m retest repro upstream report log
2023/06/24 04:47 13m retest repro upstream report log
2023/04/15 03:40 20m retest repro upstream report log
2023/01/04 08:31 12m retest repro upstream report log
2022/09/25 14:30 11m retest repro upstream report log

Sample crash report:
------------[ cut here ]------------
usb 1-1: BOGUS urb xfer, pipe 1 != type 3
WARNING: CPU: 0 PID: 781 at drivers/usb/core/urb.c:504 usb_submit_urb+0xc4e/0x18c0 drivers/usb/core/urb.c:503
Modules linked in:
CPU: 0 PID: 781 Comm: kworker/0:2 Not tainted 6.8.0-rc5-syzkaller-00163-gffd2cb6b718e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0xc4e/0x18c0 drivers/usb/core/urb.c:503
Code: f8 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 b7 08 00 00 45 8b 07 48 c7 c7 e0 b8 4a 8c 48 8b 34 24 4c 89 e2 89 e9 e8 e3 d8 52 fa 90 <0f> 0b 90 90 48 8b 5c 24 30 41 89 dc 4c 89 e7 48 c7 c6 d0 1e ce 8e
RSP: 0018:ffffc900039beb80 EFLAGS: 00010246
RAX: d681d6fc6cd99c00 RBX: dffffc0000000000 RCX: ffff88801f76d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff81577ab2 R09: 1ffff110172851a2
R10: dffffc0000000000 R11: ffffed10172851a3 R12: ffff88802e287cc0
R13: ffff88801a6b1dd0 R14: 0000000000000000 R15: ffffffff8c4ab6c8
FS:  0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffeb6cacd68 CR3: 000000002daca000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 usb_start_wait_urb+0x113/0x520 drivers/usb/core/message.c:59
 vmk80xx_reset_device drivers/comedi/drivers/vmk80xx.c:227 [inline]
 vmk80xx_auto_attach+0xa1c/0x1a40 drivers/comedi/drivers/vmk80xx.c:818
 comedi_auto_config+0x238/0x380 drivers/comedi/drivers.c:1067
 usb_probe_interface+0x5cd/0xb00 drivers/usb/core/driver.c:399
 really_probe+0x2a0/0xc50 drivers/base/dd.c:658
 __driver_probe_device+0x1a2/0x3e0 drivers/base/dd.c:800
 driver_probe_device+0x50/0x430 drivers/base/dd.c:830
 __device_attach_driver+0x2d6/0x530 drivers/base/dd.c:958
 bus_for_each_drv+0x250/0x2e0 drivers/base/bus.c:457
 __device_attach+0x333/0x520 drivers/base/dd.c:1030
 bus_probe_device+0x189/0x260 drivers/base/bus.c:532
 device_add+0x8ff/0xca0 drivers/base/core.c:3639
 usb_set_configuration+0x1976/0x1fb0 drivers/usb/core/message.c:2207
 usb_generic_driver_probe+0x88/0x140 drivers/usb/core/generic.c:254
 usb_probe_device+0x140/0x2d0 drivers/usb/core/driver.c:294
 really_probe+0x2a0/0xc50 drivers/base/dd.c:658
 __driver_probe_device+0x1a2/0x3e0 drivers/base/dd.c:800
 driver_probe_device+0x50/0x430 drivers/base/dd.c:830
 __device_attach_driver+0x2d6/0x530 drivers/base/dd.c:958
 bus_for_each_drv+0x250/0x2e0 drivers/base/bus.c:457
 __device_attach+0x333/0x520 drivers/base/dd.c:1030
 bus_probe_device+0x189/0x260 drivers/base/bus.c:532
 device_add+0x8ff/0xca0 drivers/base/core.c:3639
 usb_new_device+0x104a/0x19a0 drivers/usb/core/hub.c:2614
 hub_port_connect drivers/usb/core/hub.c:5483 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5623 [inline]
 port_event drivers/usb/core/hub.c:5783 [inline]
 hub_event+0x2d13/0x50f0 drivers/usb/core/hub.c:5865
 process_one_work kernel/workqueue.c:2633 [inline]
 process_scheduled_works+0x915/0x1420 kernel/workqueue.c:2706
 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787
 kthread+0x2f1/0x390 kernel/kthread.c:388
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/23 16:49 upstream ffd2cb6b718e 8d446f15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in vmk80xx_auto_attach/usb_submit_urb
2021/06/07 19:53 upstream 614124bea77e e59537be .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in vmk80xx_auto_attach/usb_submit_urb
* Struck through repros no longer work on HEAD.