syzbot


INFO: task hung in io_wq_put_and_exit (3)
Status: upstream: reported C repro on 2022/03/23 17:52
Reported-by: syzbot+adb05ed2853417be49ce@syzkaller.appspotmail.com
First crash: 66d, last: 4d00h

Cause bisection: failed (bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in io_wq_put_and_exit C unreliable 628 200d 261d 22/22 fixed on 2021/11/10 00:50
upstream INFO: task hung in io_wq_put_and_exit (2) 22 168d 197d 0/22 closed as invalid on 2022/02/08 09:40
Patch testing requests:
Created Duration User Patch Repo Result
2022/03/23 19:38 11m asml.silence@gmail.com git://git.kernel.dk/linux-block for-5.18/io_uring OK

Sample crash report:
INFO: task syz-executor123:3634 blocked for more than 143 seconds.
      Tainted: G        W         5.17.0-syzkaller-01442-gb47d5a4f6b8d #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor123 state:D stack:28160 pid: 3634 ppid:  3633 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x1f0 kernel/sched/core.c:6376
 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1857
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common+0x2af/0x360 kernel/sched/completion.c:106
 io_wq_exit_workers fs/io-wq.c:1264 [inline]
 io_wq_put_and_exit+0x4d6/0xe40 fs/io-wq.c:1299
 io_uring_clean_tctx fs/io_uring.c:10512 [inline]
 io_uring_cancel_generic+0x60b/0x695 fs/io_uring.c:10582
 io_uring_files_cancel include/linux/io_uring.h:18 [inline]
 do_exit+0x4f9/0x29d0 kernel/exit.c:761
 do_group_exit+0xd2/0x2f0 kernel/exit.c:936
 __do_sys_exit_group kernel/exit.c:947 [inline]
 __se_sys_exit_group kernel/exit.c:945 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:945
 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:0x7fa616b7dbd9
RSP: 002b:00007ffd0ba19358 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fa616bf2350 RCX: 00007fa616b7dbd9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa616bf2350
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Tainted: G        W         5.17.0-syzkaller-01442-gb47d5a4f6b8d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:369
 kthread+0x2e9/0x3a0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3635 Comm: iou-wrk-3634 Tainted: G        W         5.17.0-syzkaller-01442-gb47d5a4f6b8d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__ldsem_down_read_nested+0x32/0x850 drivers/tty/tty_ldsem.c:297
Code: ff df 41 57 41 56 41 89 f6 41 55 41 54 49 89 fc 55 4d 8d 7c 24 70 48 89 d5 53 48 81 ec c8 00 00 00 48 c7 44 24 28 b3 8a b5 41 <4c> 8d 6c 24 28 48 c7 44 24 30 c8 4d 47 8b 49 c1 ed 03 48 c7 44 24
RSP: 0018:ffffc9000115f718 EFLAGS: 00000296
RAX: dffffc0000000000 RBX: ffff88814a2bd000 RCX: 0000000000000000
RDX: 7fffffffffffffff RSI: 0000000000000000 RDI: ffff88814a2bd028
RBP: 7fffffffffffffff R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff843a08bd R11: 0000000000000000 R12: ffff88814a2bd028
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88814a2bd098
FS:  000055555665d300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555665d2c0 CR3: 0000000072dfd000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 tty_read+0x1a2/0x5d0 drivers/tty/tty_io.c:928
 call_read_iter include/linux/fs.h:2068 [inline]
 io_iter_do_read fs/io_uring.c:3789 [inline]
 io_read+0x330/0x12a0 fs/io_uring.c:3859
 io_issue_sqe+0x813/0x8390 fs/io_uring.c:7172
 io_wq_submit_work+0x1ed/0x590 fs/io_uring.c:7340
 io_worker_handle_work+0xad6/0x1b30 fs/io-wq.c:595
 io_wqe_worker+0x606/0xd40 fs/io-wq.c:642
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.426 msecs
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	df 41 57             	filds  0x57(%rcx)
   3:	41 56                	push   %r14
   5:	41 89 f6             	mov    %esi,%r14d
   8:	41 55                	push   %r13
   a:	41 54                	push   %r12
   c:	49 89 fc             	mov    %rdi,%r12
   f:	55                   	push   %rbp
  10:	4d 8d 7c 24 70       	lea    0x70(%r12),%r15
  15:	48 89 d5             	mov    %rdx,%rbp
  18:	53                   	push   %rbx
  19:	48 81 ec c8 00 00 00 	sub    $0xc8,%rsp
  20:	48 c7 44 24 28 b3 8a 	movq   $0x41b58ab3,0x28(%rsp)
  27:	b5 41
* 29:	4c 8d 6c 24 28       	lea    0x28(%rsp),%r13 <-- trapping instruction
  2e:	48 c7 44 24 30 c8 4d 	movq   $0xffffffff8b474dc8,0x30(%rsp)
  35:	47 8b
  37:	49 c1 ed 03          	shr    $0x3,%r13
  3b:	48                   	rex.W
  3c:	c7                   	.byte 0xc7
  3d:	44                   	rex.R
  3e:	24                   	.byte 0x24

Crashes (57):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/03/22 23:12 upstream b47d5a4f6b8d d88ef0c5 .config log report syz C INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-root 2022/05/24 03:23 upstream 1e57930e9f40 e7f9308d .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-smack-root 2022/05/22 05:29 upstream 6c3f5bec9b40 7268fa62 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-selinux-root 2022/05/20 11:56 upstream b015dcd62b86 cb1ac2e7 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-root 2022/05/19 10:30 upstream f993aed406ea 50c53f39 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-selinux-root 2022/05/16 02:51 upstream bc403203d65a 744a39e2 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-selinux-root 2022/05/15 12:22 upstream 2fe1020d73ca 744a39e2 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/05/13 04:10 upstream 0ac824f379fb 9ad6612a .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/05/11 23:59 upstream feb9c5e19e91 beb0b407 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/05/10 18:18 upstream 9be9ed2612b5 8b277b8e .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/05/04 03:25 upstream 107c948d1d3e dc9e5259 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/29 14:54 upstream 38d741cb70b3 44a5ca63 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/27 17:29 upstream 46cf2c613f4b 1fa34c1b .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/25 18:36 upstream af2d861d4cd2 c889aef9 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-selinux-root 2022/04/25 14:42 upstream af2d861d4cd2 c889aef9 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-smack-root 2022/04/24 18:18 upstream 22da5264abf4 131df97d .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-root 2022/04/24 06:18 upstream 13bc32bad705 131df97d .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/20 22:28 upstream 559089e0a93d 160a3f31 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-smack-root 2022/04/20 00:25 upstream b7f73403a3e9 7d7bc738 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/19 14:39 upstream b2d229d4ddb1 c334415e .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-smack-root 2022/04/16 20:29 upstream 59250f8a7f3a 8bcc32a6 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/14 17:58 upstream a19944809fe9 b17b2923 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-root 2022/04/14 14:43 upstream a19944809fe9 b17b2923 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/14 02:11 upstream a19944809fe9 b17b2923 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/12 13:45 upstream ce522ba9ef7e af01ee7d .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/12 10:28 upstream ce522ba9ef7e af01ee7d .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-selinux-root 2022/04/12 08:50 upstream ce522ba9ef7e af01ee7d .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/11 19:46 upstream ce522ba9ef7e af01ee7d .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/09 10:20 upstream 6c7376da2358 e22c3da3 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/08 06:26 upstream 42e7a03d3bad c6ff3e05 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-smack-root 2022/04/06 06:11 upstream ce4c854ee868 0127c10f .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-root 2022/04/05 07:27 upstream 312310928417 5915c2cb .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/05 03:20 upstream 312310928417 5915c2cb .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/04/04 22:44 upstream 312310928417 5915c2cb .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-root 2022/04/03 03:02 upstream 88e6c0207623 79a2a8fc .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/03/30 11:54 upstream d888c83fcec7 42718dd6 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/03/24 00:53 upstream 1bc191051dca 5ff41e94 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-smack-root 2022/03/24 00:08 upstream 1bc191051dca 5ff41e94 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/03/23 23:52 upstream 1bc191051dca 5ff41e94 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/03/22 18:38 upstream b47d5a4f6b8d d88ef0c5 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce 2022/03/22 17:09 upstream b47d5a4f6b8d d88ef0c5 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-386 2022/04/23 02:51 upstream d569e86915b7 131df97d .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-386 2022/03/23 08:00 upstream 6b1f86f8e9c7 5ff41e94 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-386 2022/03/23 06:03 upstream 6b1f86f8e9c7 5ff41e94 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-386 2022/03/22 20:55 upstream b47d5a4f6b8d d88ef0c5 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-386 2022/03/22 20:12 upstream b47d5a4f6b8d d88ef0c5 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-386 2022/03/22 19:40 upstream b47d5a4f6b8d d88ef0c5 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-kasan-gce-386 2022/03/22 17:48 upstream b47d5a4f6b8d d88ef0c5 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-linux-next-kasan-gce-root 2022/05/16 09:12 linux-next 1e1b28b936ae 744a39e2 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-linux-next-kasan-gce-root 2022/05/15 16:58 linux-next 1e1b28b936ae 744a39e2 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-linux-next-kasan-gce-root 2022/05/11 13:26 linux-next 38a288f5941e 8d7b3b67 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-linux-next-kasan-gce-root 2022/04/29 01:33 linux-next bdc61aad77fa e9076525 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-linux-next-kasan-gce-root 2022/04/10 20:29 linux-next ff511c1c68a5 e22c3da3 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-linux-next-kasan-gce-root 2022/04/05 03:36 linux-next 696206280c5e 5915c2cb .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-linux-next-kasan-gce-root 2022/04/04 23:06 linux-next 696206280c5e 5915c2cb .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-linux-next-kasan-gce-root 2022/03/27 19:12 linux-next fd4fbb998102 89bc8608 .config log report info INFO: task hung in io_wq_put_and_exit
ci-upstream-linux-next-kasan-gce-root 2022/03/25 02:12 linux-next dd315b580061 89bc8608 .config log report info INFO: task hung in io_wq_put_and_exit