syzbot


WARNING in em28xx_usb_disconnect

Status: fixed on 2019/10/15 23:40
Subsystems: usb media
[Documentation on labels]
Reported-by: syzbot+b7f57261c521087d89bb@syzkaller.appspotmail.com
Fix commit: 46e4a26615cc media: em28xx: modules workqueue not inited for 2nd device
First crash: 1720d, last: 1687d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 5.2 000/313] 5.2.19-stable review 324 (324) 2020/06/23 22:07
[PATCH 4.19 000/211] 4.19.77-stable review 227 (227) 2019/11/12 00:25
[PATCH 5.3 000/344] 5.3.4-stable review 360 (360) 2019/11/11 06:01
[PATCH AUTOSEL 5.2 001/185] ALSA: hda: Flush interrupts on disabling 191 (191) 2019/10/02 19:16
[PATCH AUTOSEL 5.3 001/203] ALSA: hda: Flush interrupts on disabling 217 (217) 2019/10/02 14:35
[PATCH AUTOSEL 4.19 001/128] ALSA: hda: Flush interrupts on disabling 128 (128) 2019/09/22 18:54
[PATCH] media: em28xx: modules workqueue not inited for 2nd device 6 (6) 2019/08/13 20:21
WARNING in em28xx_usb_disconnect 0 (1) 2019/08/09 13:18

Sample crash report:
em28xx 1-1:0.197: reading from i2c device at 0xa0 failed (error=-5)
em28xx 1-1:0.197: board has no eeprom
em28xx 1-1:0.197: Identified as Hauppauge WinTV-dualHD 01595 ATSC/QAM (card=100)
em28xx 1-1:0.197: dvb ts2 set to bulk mode.
usb 1-1: USB disconnect, device number 2
em28xx 1-1:0.197: Disconnecting em28xx #1
------------[ cut here ]------------
WARNING: CPU: 0 PID: 12 at kernel/workqueue.c:3031 __flush_work.cold+0x2c/0x36 kernel/workqueue.c:3031
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.3.0-rc7+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0xca/0x13e lib/dump_stack.c:113
 panic+0x2a3/0x6da kernel/panic.c:219
 __warn.cold+0x20/0x4a kernel/panic.c:576
 report_bug+0x262/0x2a0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x12b/0x1e0 arch/x86/kernel/traps.c:272
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:291
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1028
RIP: 0010:__flush_work.cold+0x2c/0x36 kernel/workqueue.c:3031
Code: 85 22 00 48 c7 c7 80 e7 c5 85 e8 c9 26 0d 00 0f 0b 45 31 e4 e9 98 86 ff ff e8 31 85 22 00 48 c7 c7 80 e7 c5 85 e8 ae 26 0d 00 <0f> 0b 45 31 e4 e9 7d 86 ff ff e8 16 85 22 00 48 c7 c7 80 e7 c5 85
RSP: 0018:ffff8881da20f720 EFLAGS: 00010286
RAX: 0000000000000024 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81288ddd RDI: ffffed103b441ed6
RBP: ffff8881da20f888 R08: 0000000000000024 R09: ffffed103b643ee7
R10: ffffed103b643ee6 R11: ffff8881db21f737 R12: 0000000000000000
R13: 0000000000000001 R14: ffff8881d2f35df8 R15: ffff8881d2b61b78
 flush_request_modules drivers/media/usb/em28xx/em28xx-cards.c:3325 [inline]
 em28xx_usb_disconnect.cold+0x280/0x2a6 drivers/media/usb/em28xx/em28xx-cards.c:4023
 usb_unbind_interface+0x1bd/0x8a0 drivers/usb/core/driver.c:423
 __device_release_driver drivers/base/dd.c:1134 [inline]
 device_release_driver_internal+0x42f/0x500 drivers/base/dd.c:1165
 bus_remove_device+0x2dc/0x4a0 drivers/base/bus.c:556
 device_del+0x420/0xb10 drivers/base/core.c:2339
 usb_disable_device+0x211/0x690 drivers/usb/core/message.c:1237
 usb_disconnect+0x284/0x8d0 drivers/usb/core/hub.c:2199
 hub_port_connect drivers/usb/core/hub.c:4949 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5213 [inline]
 port_event drivers/usb/core/hub.c:5359 [inline]
 hub_event+0x1454/0x3640 drivers/usb/core/hub.c:5441
 process_one_work+0x92b/0x1530 kernel/workqueue.c:2269
 process_scheduled_works kernel/workqueue.c:2331 [inline]
 worker_thread+0x7ab/0xe20 kernel/workqueue.c:2417
 kthread+0x318/0x420 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/07 01:12 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 acb5b744 .config console log report syz C ci2-upstream-usb
2019/08/31 19:18 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bad3cce2 .config console log report syz C ci2-upstream-usb
2019/08/21 09:49 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 4ea67ff8 .config console log report syz C ci2-upstream-usb
2019/08/09 09:24 https://github.com/google/kasan.git usb-fuzzer e96407b49762 ede31a9b .config console log report syz C ci2-upstream-usb
2019/09/11 05:59 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 a60cb4cd .config console log report ci2-upstream-usb
2019/08/30 15:12 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 9adfa876 .config console log report ci2-upstream-usb
2019/08/22 11:59 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 4ea67ff8 .config console log report ci2-upstream-usb
2019/08/09 08:38 https://github.com/google/kasan.git usb-fuzzer e96407b49762 ede31a9b .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.