syzbot


WARNING in usb_new_device/usb_submit_urb

Status: fixed on 2021/11/10 00:50
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+7dbcd9ff34dc4ed45240@syzkaller.appspotmail.com
Fix commit: 60dfe484cef4 USB: core: Avoid WARNings for 0-length descriptor requests
First crash: 1063d, last: 1063d
Discussions (13)
Title Replies (including bot) Last reply
[PATCH 5.13 000/127] 5.13.13-rc1 review 143 (143) 2021/09/02 13:39
[PATCH 5.10 00/98] 5.10.61-rc1 review 114 (114) 2021/08/26 12:54
[PATCH 5.4 00/61] 5.4.143-rc1 review 67 (67) 2021/08/25 22:36
[PATCH AUTOSEL 4.19 01/39] tty: serial: fsl_lpuart: fix the potential risk of division or modulo by zero 42 (42) 2021/07/18 09:13
[PATCH AUTOSEL 5.13 001/114] leds: tlc591xx: fix return value check in tlc591xx_probe() 81 (81) 2021/07/18 00:44
[PATCH AUTOSEL 5.10 01/93] leds: tlc591xx: fix return value check in tlc591xx_probe() 95 (95) 2021/07/12 21:48
[PATCH AUTOSEL 4.9 01/26] tty: serial: fsl_lpuart: fix the potential risk of division or modulo by zero 27 (27) 2021/07/10 09:16
[PATCH AUTOSEL 4.14 01/33] tty: serial: fsl_lpuart: fix the potential risk of division or modulo by zero 34 (34) 2021/07/10 09:14
[PATCH AUTOSEL 5.12 001/104] leds: tlc591xx: fix return value check in tlc591xx_probe() 105 (105) 2021/07/10 05:16
[PATCH AUTOSEL 4.4 01/23] tty: serial: fsl_lpuart: fix the potential risk of division or modulo by zero 23 (23) 2021/07/10 02:39
[PATCH AUTOSEL 5.4 01/63] dmaengine: fsl-qdma: check dma_set_mask return value 63 (63) 2021/07/10 02:27
[PATCH] USB: core: Avoid WARNings for 0-length descriptor requests 5 (5) 2021/06/07 15:26
[syzbot] WARNING in usb_new_device/usb_submit_urb 1 (3) 2021/06/03 02:45
Last patch testing requests (1)
Created Duration User Patch Repo Result
2021/06/03 01:43 21m stern@rowland.harvard.edu patch https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git 7652dd2c OK

Sample crash report:
usb 1-1: config 0 interface 186 altsetting 4 has a duplicate endpoint with address 0x8, skipping
usb 1-1: config 0 interface 166 has no altsetting 0
usb 1-1: config 0 interface 186 has no altsetting 0
------------[ cut here ]------------
usb 1-1: BOGUS control dir, pipe 80000280 doesn't match bRequestType 80
WARNING: CPU: 1 PID: 2632 at drivers/usb/core/urb.c:410 usb_submit_urb+0x149d/0x18a0 drivers/usb/core/urb.c:410
Modules linked in:
CPU: 1 PID: 2632 Comm: kworker/1:2 Not tainted 5.13.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0x149d/0x18a0 drivers/usb/core/urb.c:410
Code: 7c 24 40 e8 c5 1f b3 fd 48 8b 7c 24 40 e8 6b a6 1b ff 45 89 e8 44 89 f1 4c 89 e2 48 89 c6 48 c7 c7 80 0a 63 86 e8 15 ec fb 01 <0f> 0b e9 a5 ee ff ff e8 97 1f b3 fd 0f b6 1d db a7 34 05 31 ff 41
RSP: 0018:ffffc90000207680 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff8881182df058 RCX: 0000000000000000
RDX: ffff888114871b40 RSI: ffffffff812a6033 RDI: fffff52000040ec2
RBP: ffff88810cfffc80 R08: 0000000000000001 R09: 0000000000000000
R10: ffffffff814b998b R11: 0000000000000000 R12: ffff88810cfff6b8
R13: 0000000000000080 R14: 0000000080000280 R15: ffff88810e736f00
FS:  0000000000000000(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f13a00114f0 CR3: 0000000108807000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 usb_start_wait_urb+0x101/0x4c0 drivers/usb/core/message.c:58
 usb_internal_control_msg drivers/usb/core/message.c:102 [inline]
 usb_control_msg+0x31c/0x4a0 drivers/usb/core/message.c:153
 usb_get_string+0xa6/0x190 drivers/usb/core/message.c:837
 usb_string_sub+0x35e/0x3d0 drivers/usb/core/message.c:883
 usb_get_langid drivers/usb/core/message.c:913 [inline]
 usb_string+0x1cc/0x540 drivers/usb/core/message.c:977
 usb_cache_string+0x82/0x120 drivers/usb/core/message.c:1023
 usb_enumerate_device drivers/usb/core/hub.c:2399 [inline]
 usb_new_device+0x15b/0x7d0 drivers/usb/core/hub.c:2527
 hub_port_connect drivers/usb/core/hub.c:5298 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5438 [inline]
 port_event drivers/usb/core/hub.c:5584 [inline]
 hub_event+0x2357/0x4330 drivers/usb/core/hub.c:5666
 process_one_work+0x98d/0x1580 kernel/workqueue.c:2275
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421
 kthread+0x38c/0x460 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/30 00:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 7652dd2c5cb7 325a8dab .config console log report syz C ci2-upstream-usb WARNING in usb_new_device/usb_submit_urb
2021/05/29 23:27 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 7652dd2c5cb7 325a8dab .config console log report info ci2-upstream-usb WARNING in usb_new_device/usb_submit_urb
* Struck through repros no longer work on HEAD.