syzbot


WARNING in __flush_work

Status: fixed on 2019/03/06 07:43
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+ba2a929dcf8e704c180e@syzkaller.appspotmail.com
Fix commit: 2e3c18d0ada1 block: pass no-op callback to INIT_WORK().
First crash: 2107d, last: 2100d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH 4.19 00/99] 4.19.41-stable review 111 (111) 2019/05/08 06:35
WARNING in __flush_work 2 (3) 2019/01/30 15:53
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 2008d 2013d 1/1 fixed on 2019/11/30 01:15
upstream WARNING in __flush_work (4) media usb C 1 1916d 1916d 0/28 closed as invalid on 2019/08/08 13:27
upstream WARNING in __flush_work (3) usb C 1251 1921d 2031d 12/28 fixed on 2019/08/05 13:45
upstream WARNING in __flush_work (2) dri C 38 2068d 2069d 11/28 fixed on 2019/03/28 12:00

Sample crash report:
WARNING: CPU: 1 PID: 3473 at kernel/workqueue.c:3018 __flush_work+0x74c/0x8a0 kernel/workqueue.c:3018
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 3473 Comm: kworker/1:2 Not tainted 5.0.0-rc4-next-20190201 #25
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: md_misc mddev_delayed_delete
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x2cb/0x65c kernel/panic.c:214
 __warn.cold+0x20/0x45 kernel/panic.c:571
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:271
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:290
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973
RIP: 0010:__flush_work+0x74c/0x8a0 kernel/workqueue.c:3018
Code: 74 58 e8 47 b7 25 00 fb 66 0f 1f 44 00 00 45 31 e4 e9 86 fd ff ff e8 33 b7 25 00 0f 0b 45 31 e4 e9 77 fd ff ff e8 24 b7 25 00 <0f> 0b 45 31 e4 e9 68 fd ff ff e8 15 b7 25 00 4c 89 ff 45 31 e4 e8
RSP: 0018:ffff88809b05f9a0 EFLAGS: 00010293
RAX: ffff88809b7a85c0 RBX: ffff88809a35b2b8 RCX: ffffffff814a3dbb
RDX: 0000000000000000 RSI: ffffffff814a446c RDI: 0000000000000001
RBP: ffff88809b05fb10 R08: ffff88809b7a85c0 R09: ffff88809b7a8e88
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88809b05fae8 R14: 0000000000000001 R15: 0000000000000001
 __cancel_work_timer+0x3bf/0x520 kernel/workqueue.c:3114
 cancel_work_sync+0x18/0x20 kernel/workqueue.c:3150
 blk_sync_queue+0x33/0x190 block/blk-core.c:234
 blk_cleanup_queue+0x100/0x200 block/blk-core.c:367
 md_free+0xcb/0x1b0 drivers/md/md.c:5215
 kobject_cleanup lib/kobject.c:662 [inline]
 kobject_release lib/kobject.c:691 [inline]
 kref_put include/linux/kref.h:67 [inline]
 kobject_put.cold+0x28f/0x2ec lib/kobject.c:708
 mddev_delayed_delete+0x34/0x40 drivers/md/md.c:5243
 process_one_work+0x98e/0x1790 kernel/workqueue.c:2257
 worker_thread+0x98/0xe40 kernel/workqueue.c:2403
 kthread+0x357/0x430 kernel/kthread.c:247
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (402):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/02/03 17:17 linux-next dc4c89997735 c198d5dd .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/01/29 08:11 linux-next 39ad1c1b6bb8 aa432daf .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/02/05 04:14 linux-next dc4c89997735 d672172c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/05 02:08 linux-next dc4c89997735 d672172c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 23:18 linux-next dc4c89997735 d672172c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 22:14 linux-next dc4c89997735 d672172c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 19:35 linux-next dc4c89997735 d672172c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 16:16 linux-next dc4c89997735 d672172c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 12:31 linux-next dc4c89997735 d672172c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 12:08 linux-next dc4c89997735 d672172c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 10:09 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 08:54 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 08:09 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 07:07 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 06:58 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 05:18 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 04:10 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 02:55 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 02:53 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 01:46 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 00:44 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/04 00:12 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 23:07 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 22:55 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 21:45 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 20:40 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 20:21 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 19:11 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 18:10 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 16:13 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 15:11 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 14:17 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 13:13 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 11:25 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 10:15 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 09:04 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 07:55 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 06:29 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 06:24 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 05:17 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 04:05 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 02:45 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/03 00:49 linux-next dc4c89997735 c198d5dd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/01/29 07:24 linux-next 39ad1c1b6bb8 aa432daf .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.