syzbot


WARNING in __flush_work (3)

Status: fixed on 2019/08/05 13:45
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+2e1ef9188251d9cc7944@syzkaller.appspotmail.com
Fix commit: 11a087f484bf media: uvcvideo: Fix access to uninitialized fields on probe error
First crash: 1874d, last: 1762d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 5.2 000/413] 5.2.3-stable review 444 (444) 2019/08/05 12:40
[PATCH 4.19 000/271] 4.19.61-stable review 284 (284) 2019/07/27 10:51
[PATCH AUTOSEL 4.19 001/158] wil6210: fix potential out-of-bounds read 161 (161) 2019/07/26 18:07
[PATCH 5.1 000/371] 5.1.20-stable review 384 (384) 2019/07/26 12:24
[PATCH AUTOSEL 5.2 001/249] ath10k: Check tx_stats before use it 267 (267) 2019/07/24 03:35
[PATCH AUTOSEL 5.1 001/219] ath10k: Check tx_stats before use it 219 (219) 2019/07/15 14:03
[PATCH] uvc: fix access to uninitialized fields on probe error 3 (3) 2019/05/06 10:36
WARNING in __flush_work (3) 0 (1) 2019/04/14 19:56
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in __flush_work C done 135 1849d 1854d 1/1 fixed on 2019/11/30 01:15
upstream WARNING in __flush_work (4) media usb C 1 1757d 1757d 0/26 closed as invalid on 2019/08/08 13:27
upstream WARNING in __flush_work block C 402 1941d 1947d 11/26 fixed on 2019/03/06 07:43
upstream WARNING in __flush_work (2) dri C 38 1909d 1910d 11/26 fixed on 2019/03/28 12:00

Sample crash report:
em28xx 1-1:0.61: reading from i2c device at 0xa0 failed (error=-5)
em28xx 1-1:0.61: board has no eeprom
em28xx 1-1:0.61: Identified as Hauppauge WinTV-dualHD 01595 ATSC/QAM (card=100)
em28xx 1-1:0.61: dvb ts2 set to bulk mode.
usb 1-1: USB disconnect, device number 2
em28xx 1-1:0.61: Disconnecting em28xx #1
WARNING: CPU: 0 PID: 12 at kernel/workqueue.c:3031 __flush_work+0x93f/0xa80 /kernel/workqueue.c:3031
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.2.0-rc6+ #15
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+0x292/0x6c9 /kernel/panic.c:219
 __warn.cold+0x20/0x4b /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+0x14/0x20 /arch/x86/entry/entry_64.S:986
RIP: 0010:__flush_work+0x93f/0xa80 /kernel/workqueue.c:3031
Code: e8 d6 4f 23 00 48 c7 c2 c9 8b 19 81 be 01 00 00 00 45 31 e4 48 c7 c7 a0 83 af 86 e8 6b 4d 0b 00 e9 d9 fb ff ff e8 b1 4f 23 00 <0f> 0b 45 31 e4 e9 ca fb ff ff e8 a2 4f 23 00 e8 0d 08 12 00 31 ff
RSP: 0018:ffff8881d9e0f720 EFLAGS: 00010293
RAX: ffff8881d9df9800 RBX: ffff8881cff71940 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff81198bff RDI: 0000000000000001
RBP: ffff8881d9e0f888 R08: ffff8881d9df9800 R09: ffffed103b645d30
R10: ffffed103b645d2f R11: ffff8881db22e97f R12: 0000000000000000
R13: 0000000000000001 R14: ffff8881cf569bd8 R15: ffff8881cff71958
 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:1081 [inline]
 device_release_driver_internal+0x404/0x4c0 /drivers/base/dd.c:1112
 bus_remove_device+0x2dc/0x4a0 /drivers/base/bus.c:556
 device_del+0x460/0xb80 /drivers/base/core.c:2274
 usb_disable_device+0x211/0x690 /drivers/usb/core/message.c:1237
 usb_disconnect+0x284/0x830 /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+0x13bd/0x3550 /drivers/usb/core/hub.c:5441
 process_one_work+0x905/0x1570 /kernel/workqueue.c:2269
 process_scheduled_works /kernel/workqueue.c:2331 [inline]
 worker_thread+0x7ab/0xe20 /kernel/workqueue.c:2417
 kthread+0x30b/0x410 /kernel/kthread.c:255
 ret_from_fork+0x24/0x30 /arch/x86/entry/entry_64.S:352
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1251):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/07/23 11:06 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 bb071d58 .config console log report syz C ci2-upstream-usb
2019/07/23 02:16 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 55e0c077 .config console log report syz C ci2-upstream-usb
2019/07/11 19:31 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 186a30b9 .config console log report syz C ci2-upstream-usb
2019/07/10 19:48 https://github.com/google/kasan.git usb-fuzzer 7829a896a587 f62e1e85 .config console log report syz C ci2-upstream-usb
2019/07/09 22:28 https://github.com/google/kasan.git usb-fuzzer 7829a896a587 f62e1e85 .config console log report syz C ci2-upstream-usb
2019/07/01 17:10 https://github.com/google/kasan.git usb-fuzzer 7829a896a587 907bf746 .config console log report syz C ci2-upstream-usb
2019/06/28 15:04 https://github.com/google/kasan.git usb-fuzzer 7829a896a587 7509bf36 .config console log report syz C ci2-upstream-usb
2019/06/12 21:02 https://github.com/google/kasan.git usb-fuzzer 69bbe8c72e6f 794a1ad7 .config console log report syz C ci2-upstream-usb
2019/04/14 12:19 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz C ci2-upstream-usb
2019/04/13 00:40 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 4f421599 .config console log report syz C ci2-upstream-usb
2019/04/12 22:49 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 4f421599 .config console log report syz ci2-upstream-usb
2019/08/02 19:30 https://github.com/google/kasan.git usb-fuzzer e96407b49762 3faab807 .config console log report ci2-upstream-usb
2019/07/31 19:04 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf 995b2a26 .config console log report ci2-upstream-usb
2019/07/29 12:32 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/29 11:05 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/29 08:13 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/29 05:55 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/29 04:42 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/29 03:42 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/29 02:37 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/29 00:49 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/28 18:38 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/28 17:00 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/28 15:08 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/28 12:10 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/28 10:21 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/28 06:59 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/28 06:16 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/28 05:14 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/28 03:31 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 23:34 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 21:03 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 17:52 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 16:34 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 14:57 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 12:12 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 10:46 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 10:04 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 06:55 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/27 05:48 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 c85e1c5b .config console log report ci2-upstream-usb
2019/07/26 23:55 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 8fe30d3e .config console log report ci2-upstream-usb
2019/07/26 19:44 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 8fe30d3e .config console log report ci2-upstream-usb
2019/07/26 17:29 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 8fe30d3e .config console log report ci2-upstream-usb
2019/07/26 15:56 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 8fe30d3e .config console log report ci2-upstream-usb
2019/07/26 14:34 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 8fe30d3e .config console log report ci2-upstream-usb
2019/07/26 08:32 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 732bc5a0 .config console log report ci2-upstream-usb
2019/07/26 06:58 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 732bc5a0 .config console log report ci2-upstream-usb
2019/07/26 05:33 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 732bc5a0 .config console log report ci2-upstream-usb
2019/07/26 03:59 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 732bc5a0 .config console log report ci2-upstream-usb
2019/07/26 02:12 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 732bc5a0 .config console log report ci2-upstream-usb
2019/07/25 23:15 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 0d7a1249 .config console log report ci2-upstream-usb
2019/07/25 22:01 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 0d7a1249 .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.