syzbot


WARNING in io_wq_submit_work (2)

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+bc2d90f602545761f287@syzkaller.appspotmail.com
Fix commit: 713b9825a4c4 io-wq: fix cancellation on create-worker failure
First crash: 449d, last: 445d

Cause bisection: introduced by (bisect log) :
commit 3146cba99aa284b1d4a10fbd923df953f1d18035
Author: Jens Axboe <axboe@kernel.dk>
Date: Wed Sep 1 17:20:10 2021 +0000

  io-wq: make worker creation resilient against signals

Crash: WARNING in io_wq_submit_work (log)
Repro: syz .config

Fix bisection: fixed by (bisect log) :
commit c57a91fb1ccfa203ba3e31e5a389cb04de5b0561
Author: Pavel Begunkov <asml.silence@gmail.com>
Date: Wed Sep 8 19:49:17 2021 +0000

  io_uring: fix missing mb() before waitqueue_active

similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in io_wq_submit_work 4 678d 682d 21/24 fixed on 2021/03/10 01:48
Patch testing requests:
Created Duration User Patch Repo Result
2021/09/09 00:19 10m asml.silence@gmail.com git://git.kernel.dk/linux-block io_uring-5.15 OK

Sample crash report:
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 000000000043f6d9
RDX: 0000000000000000 RSI: 0000000000000304 RDI: 0000000000000003
RBP: 00007ffed8512ba0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000000 R14: 00000000004ad018 R15: 0000000000400488
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6524 at fs/io_uring.c:1164 req_ref_get fs/io_uring.c:1164 [inline]
WARNING: CPU: 0 PID: 6524 at fs/io_uring.c:1164 io_wq_submit_work+0x272/0x300 fs/io_uring.c:6733
Modules linked in:
CPU: 0 PID: 6524 Comm: syz-executor339 Not tainted 5.14.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:req_ref_get fs/io_uring.c:1164 [inline]
RIP: 0010:io_wq_submit_work+0x272/0x300 fs/io_uring.c:6733
Code: e8 43 33 91 ff 83 fb 7f 76 1b e8 f9 2b 91 ff be 04 00 00 00 4c 89 ef e8 3c 7a d8 ff f0 ff 45 a4 e9 41 fe ff ff e8 de 2b 91 ff <0f> 0b eb dc e8 d5 2b 91 ff 4c 89 e7 e8 ed db fb ff 48 85 c0 49 89
RSP: 0018:ffffc9000116fae8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 000000000000007f RCX: 0000000000000000
RDX: ffff88801be91c80 RSI: ffffffff81e4e162 RDI: 0000000000000003
RBP: ffff88801a793978 R08: 000000000000007f R09: ffff88801a79391f
R10: ffffffff81e4e13d R11: 0000000000000000 R12: ffff88801a7938c0
R13: ffff88801a79391c R14: ffff88801a793918 R15: 0000000000100000
FS:  0000000000a12300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000480310 CR3: 00000000778f6000 CR4: 0000000000350ef0
Call Trace:
 io_run_cancel fs/io-wq.c:809 [inline]
 io_acct_cancel_pending_work.isra.0+0x2a9/0x5e0 fs/io-wq.c:950
 io_wqe_cancel_pending_work+0x6c/0x130 fs/io-wq.c:968
 io_wq_destroy fs/io-wq.c:1185 [inline]
 io_wq_put_and_exit+0x7d1/0xc70 fs/io-wq.c:1198
 io_uring_clean_tctx fs/io_uring.c:9609 [inline]
 io_uring_cancel_generic+0x5fe/0x740 fs/io_uring.c:9689
 io_uring_files_cancel include/linux/io_uring.h:16 [inline]
 do_exit+0x265/0x2a30 kernel/exit.c:780
 do_group_exit+0x125/0x310 kernel/exit.c:922
 __do_sys_exit_group kernel/exit.c:933 [inline]
 __se_sys_exit_group kernel/exit.c:931 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:931
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43e3d9
Code: 90 49 c7 c0 c0 ff ff ff be e7 00 00 00 ba 3c 00 00 00 eb 12 0f 1f 44 00 00 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 64 41 89 00 eb df 0f 1f 80 00 00 00
RSP: 002b:00007ffed8512b78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00000000004af3b0 RCX: 000000000043e3d9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004af3b0
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001

Crashes (52):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/09/11 13:53 upstream 926de8c4326c 5ae8508a .config log report syz C WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/08 05:30 upstream a2b28235335f 064c9eb7 .config log report syz WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/07 14:35 upstream 4b93c544e90e 6ca60148 .config log report syz WARNING in io_wq_submit_work
ci-upstream-kasan-gce-selinux-root 2021/09/07 13:23 upstream 4b93c544e90e 6ca60148 .config log report syz WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/07 12:10 upstream 4b93c544e90e 6ca60148 .config log report syz WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/07 11:21 upstream 4b93c544e90e 6ca60148 .config log report syz WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/07 11:03 upstream 4b93c544e90e 6ca60148 .config log report syz WARNING in io_wq_submit_work
ci-upstream-linux-next-kasan-gce-root 2021/09/07 17:52 linux-next b2bb710d34d5 6ca60148 .config log report syz WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/11 17:10 upstream 926de8c4326c 5ae8508a .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/11 15:56 upstream 926de8c4326c 5ae8508a .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/11 06:26 upstream 926de8c4326c 5ae8508a .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-smack-root 2021/09/11 03:58 upstream 926de8c4326c 5ae8508a .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/11 00:23 upstream bf9f243f23e6 5ae8508a .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/10 18:12 upstream bf9f243f23e6 5ae8508a .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/10 12:48 upstream bf9f243f23e6 5ae8508a .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/10 11:36 upstream bf9f243f23e6 5ae8508a .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/10 08:13 upstream bf9f243f23e6 e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/10 05:56 upstream bf9f243f23e6 e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-selinux-root 2021/09/10 02:25 upstream a3fa7a101dcf e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-selinux-root 2021/09/09 18:41 upstream a3fa7a101dcf e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/09 13:37 upstream 730bf31b8fc8 e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/09 03:11 upstream 0f4b9289bad3 e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-selinux-root 2021/09/09 01:56 upstream 730bf31b8fc8 e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/08 23:12 upstream ac08b1c68d1b e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/08 18:14 upstream ac08b1c68d1b e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-smack-root 2021/09/08 13:44 upstream ac08b1c68d1b e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-smack-root 2021/09/08 03:55 upstream a2b28235335f 064c9eb7 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-selinux-root 2021/09/08 00:52 upstream a2b28235335f 064c9eb7 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-smack-root 2021/09/07 22:05 upstream a2b28235335f 064c9eb7 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-smack-root 2021/09/07 21:59 upstream a2b28235335f 064c9eb7 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/07 18:14 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-selinux-root 2021/09/07 16:14 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-selinux-root 2021/09/07 11:04 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/07 09:14 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/07 08:36 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/07 08:32 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-selinux-root 2021/09/07 08:21 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-root 2021/09/07 08:16 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce 2021/09/07 08:04 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-386 2021/09/09 15:24 upstream a3fa7a101dcf e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-386 2021/09/07 10:21 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-kasan-gce-386 2021/09/07 09:33 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-linux-next-kasan-gce-root 2021/09/08 20:46 linux-next 999569d59a0a e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-linux-next-kasan-gce-root 2021/09/08 11:29 linux-next 999569d59a0a e2776ee4 .config log report info WARNING in io_wq_submit_work
ci-upstream-linux-next-kasan-gce-root 2021/09/08 01:56 linux-next b2bb710d34d5 064c9eb7 .config log report info WARNING in io_wq_submit_work
ci-upstream-linux-next-kasan-gce-root 2021/09/08 01:39 linux-next b2bb710d34d5 064c9eb7 .config log report info WARNING in io_wq_submit_work
ci-upstream-linux-next-kasan-gce-root 2021/09/08 01:03 linux-next b2bb710d34d5 064c9eb7 .config log report info WARNING in io_wq_submit_work
ci-upstream-linux-next-kasan-gce-root 2021/09/07 13:12 linux-next b2bb710d34d5 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-linux-next-kasan-gce-root 2021/09/07 09:50 linux-next b2bb710d34d5 6ca60148 .config log report info WARNING in io_wq_submit_work
ci-upstream-linux-next-kasan-gce-root 2021/09/07 09:18 linux-next b2bb710d34d5 6ca60148 .config log report info WARNING in io_wq_submit_work
* Struck through repros no longer work on HEAD.