syzbot


general protection fault in snd_usb_pipe_sanity_check

Status: fixed on 2019/08/14 02:14
Subsystems: usb sound
[Documentation on labels]
Reported-by: syzbot+d59c4387bfb6eced94e2@syzkaller.appspotmail.com
Fix commit: 5d78e1c2b7f4 ALSA: usb-audio: Fix gpf in snd_usb_pipe_sanity_check
First crash: 1943d, last: 1929d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.2 00/56] 5.2.8-stable review 63 (63) 2019/08/09 15:48
Re: [alsa-devel] [PATCH] ALSA: usb-audio: Fix gpf in snd_usb_pipe_sanity_check 1 (1) 2019/07/30 11:49
Re: [alsa-devel] [PATCH] ALSA: usb-audio: Fix gpf in snd_usb_pipe_sanity_check 2 (2) 2019/07/30 10:22
general protection fault in snd_usb_pipe_sanity_check 1 (2) 2019/07/30 07:43

Sample crash report:
usb 1-1: config 0 has no interface number 0
usb 1-1: New USB device found, idVendor=07fd, idProduct=0004, bcdDevice=dc.94
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: config 0 descriptor??
usb 1-1: Waiting for MOTU Microbook II to boot up...
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 1 PID: 102 Comm: kworker/1:2 Not tainted 5.3.0-rc2+ #25
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:snd_usb_pipe_sanity_check+0x80/0x130 sound/usb/helper.c:75
Code: 48 c1 ea 03 80 3c 02 00 0f 85 b3 00 00 00 48 8b 6d 00 c1 eb 1e 48 b8 00 00 00 00 00 fc ff df 48 8d 7d 03 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 7b 48 b8 00 00
RSP: 0018:ffff8881d507f010 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff8496a5a2
RDX: 0000000000000000 RSI: ffffffff8496a5bc RDI: 0000000000000003
RBP: 0000000000000000 R08: ffff8881d57a1800 R09: ffffed103b665d58
R10: ffffed103b665d57 R11: ffff8881db32eabf R12: 0000000000000000
R13: ffff8881d3ec8a80 R14: 1ffff1103aa0fe06 R15: ffff8881d2910920
FS:  0000000000000000(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000011e3fd0 CR3: 00000001d4251000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 snd_usb_motu_microbookii_communicate.constprop.0+0xa0/0x2fb sound/usb/quirks.c:1007
 snd_usb_motu_microbookii_boot_quirk sound/usb/quirks.c:1051 [inline]
 snd_usb_apply_boot_quirk.cold+0x163/0x370 sound/usb/quirks.c:1280
 usb_audio_probe+0x2ec/0x2010 sound/usb/card.c:576
 usb_probe_interface+0x305/0x7a0 drivers/usb/core/driver.c:361
 really_probe+0x281/0x650 drivers/base/dd.c:548
 driver_probe_device+0x101/0x1b0 drivers/base/dd.c:709
 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:816
 bus_for_each_drv+0x15c/0x1e0 drivers/base/bus.c:454
 __device_attach+0x217/0x360 drivers/base/dd.c:882
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:514
 device_add+0xae6/0x16f0 drivers/base/core.c:2114
 usb_set_configuration+0xdf6/0x1670 drivers/usb/core/message.c:2023
 generic_probe+0x9d/0xd5 drivers/usb/core/generic.c:210
 usb_probe_device+0x99/0x100 drivers/usb/core/driver.c:266
 really_probe+0x281/0x650 drivers/base/dd.c:548
 driver_probe_device+0x101/0x1b0 drivers/base/dd.c:709
 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:816
 bus_for_each_drv+0x15c/0x1e0 drivers/base/bus.c:454
 __device_attach+0x217/0x360 drivers/base/dd.c:882
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:514
 device_add+0xae6/0x16f0 drivers/base/core.c:2114
 usb_new_device.cold+0x6a4/0xe79 drivers/usb/core/hub.c:2536
 hub_port_connect drivers/usb/core/hub.c:5098 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5213 [inline]
 port_event drivers/usb/core/hub.c:5359 [inline]
 hub_event+0x1b5c/0x3640 drivers/usb/core/hub.c:5441
 process_one_work+0x92b/0x1530 kernel/workqueue.c:2269


Crashes (72):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/08/08 19:30 https://github.com/google/kasan.git usb-fuzzer e96407b49762 bcc419e9 .config console log report syz C ci2-upstream-usb
2019/08/06 22:10 https://github.com/google/kasan.git usb-fuzzer e96407b49762 da562c0b .config console log report syz C ci2-upstream-usb
2019/08/02 18:53 https://github.com/google/kasan.git usb-fuzzer e96407b49762 3faab807 .config console log report syz C ci2-upstream-usb
2019/08/01 18:01 https://github.com/google/kasan.git usb-fuzzer e96407b49762 835dffe7 .config console log report syz C ci2-upstream-usb
2019/08/01 15:19 https://github.com/google/kasan.git usb-fuzzer e96407b49762 835dffe7 .config console log report syz C ci2-upstream-usb
2019/07/29 19:09 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf f67095ee .config console log report syz C ci2-upstream-usb
2019/07/29 15:23 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf f67095ee .config console log report syz C ci2-upstream-usb
2019/08/12 12:53 https://github.com/google/kasan.git usb-fuzzer e96407b49762 8620c2c2 .config console log report ci2-upstream-usb
2019/08/11 19:22 https://github.com/google/kasan.git usb-fuzzer e96407b49762 acb51638 .config console log report ci2-upstream-usb
2019/08/11 14:23 https://github.com/google/kasan.git usb-fuzzer e96407b49762 acb51638 .config console log report ci2-upstream-usb
2019/08/10 20:42 https://github.com/google/kasan.git usb-fuzzer e96407b49762 acb51638 .config console log report ci2-upstream-usb
2019/08/10 11:44 https://github.com/google/kasan.git usb-fuzzer e96407b49762 acb51638 .config console log report ci2-upstream-usb
2019/08/10 09:45 https://github.com/google/kasan.git usb-fuzzer e96407b49762 acb51638 .config console log report ci2-upstream-usb
2019/08/09 02:56 https://github.com/google/kasan.git usb-fuzzer e96407b49762 ede31a9b .config console log report ci2-upstream-usb
2019/08/08 15:41 https://github.com/google/kasan.git usb-fuzzer e96407b49762 bcc419e9 .config console log report ci2-upstream-usb
2019/08/08 09:07 https://github.com/google/kasan.git usb-fuzzer e96407b49762 e6ebef88 .config console log report ci2-upstream-usb
2019/08/08 02:41 https://github.com/google/kasan.git usb-fuzzer e96407b49762 e6ebef88 .config console log report ci2-upstream-usb
2019/08/07 22:00 https://github.com/google/kasan.git usb-fuzzer e96407b49762 e6ebef88 .config console log report ci2-upstream-usb
2019/08/07 15:19 https://github.com/google/kasan.git usb-fuzzer e96407b49762 cdde7486 .config console log report ci2-upstream-usb
2019/08/07 12:48 https://github.com/google/kasan.git usb-fuzzer e96407b49762 cdde7486 .config console log report ci2-upstream-usb
2019/08/07 08:58 https://github.com/google/kasan.git usb-fuzzer e96407b49762 cdde7486 .config console log report ci2-upstream-usb
2019/08/07 05:20 https://github.com/google/kasan.git usb-fuzzer e96407b49762 cdde7486 .config console log report ci2-upstream-usb
2019/08/07 03:12 https://github.com/google/kasan.git usb-fuzzer e96407b49762 cdde7486 .config console log report ci2-upstream-usb
2019/08/06 23:11 https://github.com/google/kasan.git usb-fuzzer e96407b49762 da562c0b .config console log report ci2-upstream-usb
2019/08/06 14:12 https://github.com/google/kasan.git usb-fuzzer e96407b49762 da562c0b .config console log report ci2-upstream-usb
2019/08/06 08:37 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/06 02:53 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/06 01:32 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/06 00:21 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/05 19:15 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/05 16:09 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/05 07:33 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/05 06:12 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/05 06:11 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/05 00:09 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/05 00:04 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/04 23:57 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/04 22:03 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/04 15:31 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/04 11:58 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/04 10:28 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/04 01:08 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/04 00:06 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/03 14:41 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/03 12:46 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/03 10:13 https://github.com/google/kasan.git usb-fuzzer e96407b49762 6affd8e8 .config console log report ci2-upstream-usb
2019/08/02 23:46 https://github.com/google/kasan.git usb-fuzzer e96407b49762 3faab807 .config console log report ci2-upstream-usb
2019/08/02 18:16 https://github.com/google/kasan.git usb-fuzzer e96407b49762 3faab807 .config console log report ci2-upstream-usb
2019/08/02 13:00 https://github.com/google/kasan.git usb-fuzzer e96407b49762 835dffe7 .config console log report ci2-upstream-usb
2019/08/01 22:22 https://github.com/google/kasan.git usb-fuzzer e96407b49762 835dffe7 .config console log report ci2-upstream-usb
2019/08/01 15:32 https://github.com/google/kasan.git usb-fuzzer e96407b49762 835dffe7 .config console log report ci2-upstream-usb
2019/08/01 15:03 https://github.com/google/kasan.git usb-fuzzer e96407b49762 835dffe7 .config console log report ci2-upstream-usb
2019/07/31 09:54 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf 7c7ded69 .config console log report ci2-upstream-usb
2019/07/31 04:03 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf 7c7ded69 .config console log report ci2-upstream-usb
2019/07/31 02:49 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf 7c7ded69 .config console log report ci2-upstream-usb
2019/07/31 01:54 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf 7c7ded69 .config console log report ci2-upstream-usb
2019/07/31 00:46 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf 7c7ded69 .config console log report ci2-upstream-usb
2019/07/31 00:21 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf 7c7ded69 .config console log report ci2-upstream-usb
2019/07/30 21:10 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf 7c7ded69 .config console log report ci2-upstream-usb
2019/07/30 13:00 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf f28bf2a5 .config console log report ci2-upstream-usb
2019/07/29 16:28 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf f67095ee .config console log report ci2-upstream-usb
2019/07/29 16:14 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf f67095ee .config console log report ci2-upstream-usb
2019/07/29 14:41 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf f67095ee .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.