syzbot


WARNING in carl9170_usb_init_device/usb_submit_urb

Status: upstream: reported C repro on 2021/10/31 17:41
Reported-by: syzbot+e394db78ae0b0032cb4d@syzkaller.appspotmail.com
First crash: 334d, last: 33d

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 carl9170_usb_send_rx_irq_urb/usb_submit_urb (log)
Repro: C syz .config

Sample crash report:
usb 1-1: device descriptor read/64, error -71
usb 1-1: reset high-speed USB device number 2 using dummy_hcd
usb 1-1: Using ep0 maxpacket: 8
usb 1-1: driver   API: 1.9.9 2016-02-15 [1-1]
usb 1-1: firmware API: 1.9.6 2012-07-07
------------[ cut here ]------------
usb 1-1: BOGUS urb xfer, pipe 1 != type 3
WARNING: CPU: 0 PID: 1053 at drivers/usb/core/urb.c:503 usb_submit_urb+0xcd2/0x1970 drivers/usb/core/urb.c:502
Modules linked in:
CPU: 0 PID: 1053 Comm: kworker/0:2 Not tainted 5.15.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events request_firmware_work_func
RIP: 0010:usb_submit_urb+0xcd2/0x1970 drivers/usb/core/urb.c:502
Code: d8 48 c1 e8 03 42 8a 04 20 84 c0 0f 85 89 09 00 00 44 8b 03 48 c7 c7 c0 2c 04 8b 4c 89 fe 4c 89 f2 89 e9 31 c0 e8 5e c7 6f fb <0f> 0b 4c 8b 7c 24 10 4c 8b 64 24 38 8b 5c 24 28 45 89 e6 4c 89 f7
RSP: 0018:ffffc900045bfa20 EFLAGS: 00010246
RAX: c0488d4b2013c100 RBX: ffffffff8b042a08 RCX: ffff88801c0eb900
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff81695fe2 R09: ffffed10173857a8
R10: ffffed10173857a8 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff888014de4400 R14: ffff888012bb16b8 R15: ffffffff8b04cc80
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffa69fe690 CR3: 0000000071447000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 carl9170_usb_send_rx_irq_urb drivers/net/wireless/ath/carl9170/usb.c:504 [inline]
 carl9170_usb_init_device+0x243/0x880 drivers/net/wireless/ath/carl9170/usb.c:939
 carl9170_usb_firmware_finish drivers/net/wireless/ath/carl9170/usb.c:999 [inline]
 carl9170_usb_firmware_step2+0xa5/0x260 drivers/net/wireless/ath/carl9170/usb.c:1028
 request_firmware_work_func+0x19b/0x270 drivers/base/firmware_loader/main.c:1081
 process_one_work+0x853/0x1140 kernel/workqueue.c:2297
 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444
 kthread+0x453/0x480 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/08/25 20:16 upstream 3f5c20055a64 be531bb4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2022/07/26 19:36 upstream 5de64d44968e be531bb4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2022/06/26 11:24 upstream 0840a7914caa be531bb4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2022/05/26 22:22 upstream cdeffe87f790 be531bb4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2022/04/26 22:02 upstream cf424ef014ac be531bb4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2022/03/27 21:43 upstream 7b58b82b86c8 be531bb4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2022/02/25 21:24 upstream 4b23c6ecefcc be531bb4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2022/01/26 21:02 upstream 0280e3c58f92 be531bb4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2021/12/27 20:40 upstream a8ad9a2434dc be531bb4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2021/11/27 20:20 upstream 86799cdfbcd2 be531bb4 .config log report syz C
* Struck through repros no longer work on HEAD.
Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/10/28 19:40 upstream 1fc596a56b33 be531bb4 .config log report syz C WARNING in carl9170_usb_init_device/usb_submit_urb
* Struck through repros no longer work on HEAD.