syzbot


INFO: task hung in io_uring_cancel_generic

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+ba6fcd859210f4e9e109@syzkaller.appspotmail.com
Fix commit: 1b48773f9fd0 io_uring: fix io_drain_req()
First crash: 571d, last: 445d

Cause bisection: introduced by (bisect log) [no-op commit]:
commit b9fc8b4a591811546fec2dbef7e9f809362100c9
Author: Grant Seltzer <grantseltzer@gmail.com>
Date: Mon Feb 22 19:58:46 2021 +0000

  bpf: Add kernel/modules BTF presence checks to bpftool feature command

Crash: KASAN: invalid-free in io_req_caches_free (log)
Repro: C syz .config
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in io_uring_cancel_generic (2) C done 97 411d 438d 22/24 fixed on 2022/03/08 16:11
Last patch testing requests:
Created Duration User Patch Repo Result
2021/07/11 21:44 19m asml.silence@gmail.com https://github.com/isilence/linux.git drain_fix_syztest OK
2021/07/11 14:45 13m axboe@kernel.dk git://git.kernel.dk/linux-block io_uring-5.14-test report log
2021/07/11 13:54 17m axboe@kernel.dk git://git.kernel.dk/linux-block io_uring-5.14 error

Sample crash report:
INFO: task syz-executor015:8439 blocked for more than 143 seconds.
      Tainted: G        W         5.13.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor015 state:D stack:28184 pid: 8439 ppid:  8438 flags:0x00000004
Call Trace:
 context_switch kernel/sched/core.c:4683 [inline]
 __schedule+0x934/0x2710 kernel/sched/core.c:5940
 schedule+0xd3/0x270 kernel/sched/core.c:6019
 io_uring_cancel_generic+0x54d/0x890 fs/io_uring.c:9203
 io_uring_files_cancel include/linux/io_uring.h:16 [inline]
 do_exit+0x28b/0x2a50 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:0x43eac9
RSP: 002b:00007ffc2d1b6378 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00000000004b02f0 RCX: 000000000043eac9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 00000000f0ffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004b02f0
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
INFO: lockdep is turned off.
NMI backtrace for cpu 0
CPU: 0 PID: 1650 Comm: khungtaskd Tainted: G        W         5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:96
 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline]
 watchdog+0xd4b/0xfb0 kernel/hung_task.c:294
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:109 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_idle_do_entry+0x1c6/0x250 drivers/acpi/processor_idle.c:553

Crashes (151):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2021/07/07 14:17 upstream 3dbdb38e2869 4846d5c1 .config console log report syz C INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/07/07 12:12 upstream 3dbdb38e2869 4846d5c1 .config console log report syz C INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/10/17 03:33 linux-next 7c832d2f9b95 0c5d9412 .config console log report syz C INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-root 2021/09/18 08:29 upstream ddf21bd8ab98 70b76c1d .config console log report syz INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/09 23:55 upstream d2f38a3c6507 59bcaf9a .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/09 20:32 upstream d2f38a3c6507 59bcaf9a .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/09 18:20 upstream d2f38a3c6507 59bcaf9a .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/09 03:28 upstream e851dfae4371 8ab17e57 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-root 2021/11/08 17:30 upstream 6b75d88fa81b d29682f1 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-smack-root 2021/11/08 09:39 upstream 6b75d88fa81b 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/08 00:00 upstream b5013d084e03 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/07 22:39 upstream b5013d084e03 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/07 19:44 upstream b5013d084e03 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-root 2021/11/06 18:49 upstream d4439a1189f9 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-smack-root 2021/11/06 16:02 upstream fe91c4725aee 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/06 11:23 upstream fe91c4725aee 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-root 2021/11/06 08:23 upstream d4439a1189f9 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/06 06:01 upstream fe91c4725aee 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce 2021/11/06 03:31 upstream fe91c4725aee 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-smack-root 2021/11/06 00:10 upstream fe91c4725aee 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-smack-root 2021/11/05 20:59 upstream fe91c4725aee 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-smack-root 2021/11/05 19:31 upstream d4439a1189f9 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/05 11:15 upstream d4439a1189f9 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/05 02:50 upstream 7ddb58cb0eca 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce 2021/11/05 00:54 upstream 7ddb58cb0eca 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-smack-root 2021/11/04 14:55 upstream ce840177930f 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce 2021/11/04 06:50 upstream ce840177930f 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce 2021/11/03 22:53 upstream dcd68326d29b 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce 2021/11/03 21:49 upstream dcd68326d29b 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-root 2021/11/03 14:24 upstream dcd68326d29b 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce 2021/11/03 05:43 upstream bfc484fe6abb 17f3edd2 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-root 2021/11/03 02:08 upstream cc0356d6a02e 17f3edd2 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/02 19:11 upstream bfc484fe6abb 17f3edd2 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/02 15:48 upstream bfc484fe6abb 098b5d53 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-selinux-root 2021/11/02 13:48 upstream bfc484fe6abb 098b5d53 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-smack-root 2021/11/02 05:30 upstream e66435936756 098b5d53 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce 2021/07/07 01:57 upstream 3dbdb38e2869 cca78469 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-386 2021/11/07 07:42 upstream 512b7931ad05 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-386 2021/11/06 21:06 upstream fe91c4725aee 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-386 2021/11/05 18:08 upstream d4439a1189f9 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-386 2021/11/05 17:53 upstream d4439a1189f9 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-386 2021/11/05 09:32 upstream d4439a1189f9 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-kasan-gce-386 2021/11/03 01:08 upstream bfc484fe6abb 17f3edd2 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/11/09 21:34 linux-next c8109c2ba35e 59bcaf9a .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/11/08 13:47 linux-next e844ee04dee0 d29682f1 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/11/08 12:20 linux-next e844ee04dee0 d29682f1 .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/11/06 20:06 linux-next 6a37ebbe07bf 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/11/06 10:08 linux-next 6a37ebbe07bf 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/11/05 14:55 linux-next b477ae38e815 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/11/04 10:02 linux-next 8a796a1dfca2 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/11/04 08:59 linux-next 8a796a1dfca2 4c1be0be .config console log report info INFO: task hung in io_uring_cancel_generic
ci-upstream-linux-next-kasan-gce-root 2021/11/02 21:17 linux-next 9150de4aac1e 17f3edd2 .config console log report info INFO: task hung in io_uring_cancel_generic
* Struck through repros no longer work on HEAD.