syzbot


INFO: task hung in io_ring_exit_work
Status: upstream: reported C repro on 2021/04/05 09:16
Reported-by: syzbot+93f72b3885406bb09e0d@syzkaller.appspotmail.com
First crash: 436d, last: 84d

Cause bisection: introduced by (bisect log) [no-op commit]:
commit 7e923e6a3ceb877497dd9ee70d71fa33b94f332b
Author: Peter Zijlstra <peterz@infradead.org>
Date: Wed Dec 9 15:06:06 2020 +0000

  locking/selftests: Add local_lock inversion tests

Crash: WARNING: ODEBUG bug in netdev_run_todo (log)
Repro: C syz .config

Fix bisection: fixed by (bisect log) [merge commit]:
commit 74164d284b2909de0ba13518cc063e9ea9334749
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Mar 30 18:00:33 2022 +0000

  Merge tag 'pwm/for-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm

Patch testing requests:
Created Duration User Patch Repo Result
2021/07/19 13:55 17m mail@anirudhrb.com upstream OK
2021/06/09 07:49 18m mail@anirudhrb.com linux-next error
2021/05/13 21:15 13m asml.silence@gmail.com https://github.com/isilence/linux.git syz_test7 report log
2021/05/07 19:53 15m asml.silence@gmail.com git://git.kernel.dk/linux-block io_uring-5.13 OK
2021/04/08 14:02 17m asml.silence@gmail.com https://github.com/isilence/linux.git syz_test3 report log
2021/04/08 13:39 17m asml.silence@gmail.com https://github.com/isilence/linux.git syz_test2 report log
2021/04/08 00:42 17m asml.silence@gmail.com https://github.com/isilence/linux.git syz_test2 report log
2021/04/07 19:55 17m asml.silence@gmail.com https://github.com/isilence/linux.git syz_test report log
2021/04/05 19:15 17m asml.silence@gmail.com https://github.com/isilence/linux.git iowq_cancel_unbounded report log

Sample crash report:
INFO: task kworker/u4:1:6564 blocked for more than 143 seconds.
      Not tainted 5.15.0-rc7-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:1    state:D stack:28336 pid: 6564 ppid:     2 flags:0x00004000
Workqueue: events_unbound io_ring_exit_work
Call Trace:
 context_switch kernel/sched/core.c:4940 [inline]
 __schedule+0xb44/0x5960 kernel/sched/core.c:6287
 schedule+0xd3/0x270 kernel/sched/core.c:6366
 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1857
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x176/0x280 kernel/sched/completion.c:138
 io_ring_exit_work+0x4bb/0x19a0 fs/io_uring.c:9439
 process_one_work+0x9bf/0x16b0 kernel/workqueue.c:2297
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2444
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8b981b20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6446
1 lock held by in:imklog/6233:
 #0: ffff888019a89770 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990
2 locks held by kworker/u4:1/6564:
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:634 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:661 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x8a3/0x16b0 kernel/workqueue.c:2268
 #1: ffffc90002c4fdb0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x8d7/0x16b0 kernel/workqueue.c:2272
1 lock held by syz-executor675/6715:

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __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:105
 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:295
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6715 Comm: syz-executor675 Not tainted 5.15.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:on_stack arch/x86/include/asm/stacktrace.h:50 [inline]
RIP: 0010:stack_access_ok arch/x86/kernel/unwind_orc.c:342 [inline]
RIP: 0010:deref_stack_reg+0x90/0x150 arch/x86/kernel/unwind_orc.c:352
Code: 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 94 00 00 00 49 39 ed 49 8b 44 24 10 77 13 48 39 e8 76 0e <48> 8d 55 08 48 39 d0 72 05 49 39 d5 72 3b 49 8d 7c 24 28 48 b8 00
RSP: 0018:ffffc90002f7f6e0 EFLAGS: 00000216
RAX: ffffc90002f80000 RBX: ffffc90002f7f830 RCX: ffffffff8df7bced
RDX: 1ffff920005efeff RSI: ffffc90002f7fcd8 RDI: ffffc90002f7f7f8
RBP: ffffc90002f7fcd8 R08: ffffffff8df7bce8 R09: 0000000000000001
R10: fffff520005eff08 R11: 0000000000086089 R12: ffffc90002f7f7e8
R13: ffffc90002f78000 R14: ffffc90002f7f7e8 R15: ffffffff8df7bcec
FS:  00007f04867ea700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000244 CR3: 0000000033f83000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 unwind_next_frame+0xcc3/0x1ce0 arch/x86/kernel/unwind_orc.c:534
 arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121
 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 ____kasan_kmalloc mm/kasan/common.c:513 [inline]
 ____kasan_kmalloc mm/kasan/common.c:472 [inline]
 __kasan_kmalloc+0xa4/0xd0 mm/kasan/common.c:522
 kmalloc include/linux/slab.h:591 [inline]
 io_add_buffers fs/io_uring.c:4382 [inline]
 io_provide_buffers fs/io_uring.c:4416 [inline]
 io_issue_sqe+0x3289/0x7180 fs/io_uring.c:6728
 __io_queue_sqe+0x90/0xb30 fs/io_uring.c:6957
 io_req_task_submit+0xbf/0x1b0 fs/io_uring.c:2231
 tctx_task_work+0x189/0x6c0 fs/io_uring.c:2156
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 tracehook_notify_signal include/linux/tracehook.h:214 [inline]
 handle_signal_work kernel/entry/common.c:146 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x256/0x290 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f0486840ac9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f04867ea2f8 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: 00000000000002ff RBX: 00007f04868c23e8 RCX: 00007f0486840ac9
RDX: 0000000000000000 RSI: 00000000000002ff RDI: 0000000000000003
RBP: 00007f04868c23e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f04868c23ec
R13: 0000000000000003 R14: 00007f04867ea400 R15: 0000000000022000
----------------
Code disassembly (best guess):
   0:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
   7:	fc ff df
   a:	48 89 fa             	mov    %rdi,%rdx
   d:	48 c1 ea 03          	shr    $0x3,%rdx
  11:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
  15:	0f 85 94 00 00 00    	jne    0xaf
  1b:	49 39 ed             	cmp    %rbp,%r13
  1e:	49 8b 44 24 10       	mov    0x10(%r12),%rax
  23:	77 13                	ja     0x38
  25:	48 39 e8             	cmp    %rbp,%rax
  28:	76 0e                	jbe    0x38
* 2a:	48 8d 55 08          	lea    0x8(%rbp),%rdx <-- trapping instruction
  2e:	48 39 d0             	cmp    %rdx,%rax
  31:	72 05                	jb     0x38
  33:	49 39 d5             	cmp    %rdx,%r13
  36:	72 3b                	jb     0x73
  38:	49 8d 7c 24 28       	lea    0x28(%r12),%rdi
  3d:	48                   	rex.W
  3e:	b8                   	.byte 0xb8

Crashes (734):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/10/27 19:18 upstream d25f27432f80 373bf66b .config log report syz C INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/04/05 09:16 upstream e49d033bddf5 6a81331a .config log report syz C INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/07 22:28 linux-next 04fe99a8d936 0230ba3e .config log report syz C INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-selinux-root 2022/03/04 06:04 upstream 38f80f42147f 45a13a73 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-selinux-root 2022/02/28 20:07 upstream 7e57714cd0ad 45a13a73 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/26 15:11 upstream 438645193e59 e4f103c4 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/25 22:50 upstream e2ae0d4a6b0b 6caa12e4 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/25 06:25 upstream b927dfc67d05 6caa12e4 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/24 22:03 upstream 7a29b11da965 6caa12e4 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/09 15:51 upstream 2a987e65025e b54aa474 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/09 12:24 upstream 2a987e65025e a4a2a501 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/09 08:55 upstream 2a987e65025e a4a2a501 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/09 01:30 upstream 2a987e65025e a4a2a501 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/08 22:18 upstream 2a987e65025e a4a2a501 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/08 01:08 upstream cd8c917a56f2 0230ba3e .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/07 12:10 upstream f80ef9e49fdf 0230ba3e .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/07 11:07 upstream f80ef9e49fdf 0230ba3e .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/07 06:04 upstream f80ef9e49fdf 0230ba3e .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/07 02:51 upstream f80ef9e49fdf 0230ba3e .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-selinux-root 2021/12/06 10:18 upstream 944207047ca4 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/06 06:09 upstream 944207047ca4 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/06 01:47 upstream 944207047ca4 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/05 20:08 upstream 79a72162048e a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/05 17:25 upstream 79a72162048e a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/05 11:19 upstream 79a72162048e a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/05 08:47 upstream 79a72162048e a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-smack-root 2021/12/05 05:24 upstream bbef3c7a63d2 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-smack-root 2021/12/05 02:06 upstream bbef3c7a63d2 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/04 22:36 upstream bbef3c7a63d2 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/04 16:48 upstream 12119cfa1052 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-selinux-root 2021/12/04 11:17 upstream 12119cfa1052 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-selinux-root 2021/12/04 09:42 upstream 12119cfa1052 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/12/04 03:02 upstream 12119cfa1052 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-selinux-root 2021/12/03 16:40 upstream 5f58da2befa5 c7c20675 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-smack-root 2021/12/03 07:12 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/03 04:43 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-selinux-root 2021/12/03 03:15 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/03 02:44 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/03 00:42 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-root 2021/12/02 18:10 upstream 58e1100fdc59 61f86278 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce 2021/03/17 14:43 upstream 1df27313f50a fdb2bb2c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-386 2021/12/22 16:19 upstream 2f47a9a4dfa3 6caa12e4 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-kasan-gce-386 2021/12/05 03:43 upstream bbef3c7a63d2 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2022/02/22 15:47 linux-next ef6b35306dd8 6e821dbf .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2022/01/12 14:40 linux-next 32ce2abb03cf 44d1319a .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/16 04:42 linux-next 93bf6eee76c0 572bcb40 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/12 16:38 linux-next ea922272cbe5 49ca1f59 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/10 14:08 linux-next 4eee8d0b64ec 4d4ce9bc .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/10 07:33 linux-next 4eee8d0b64ec 4d4ce9bc .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/07 04:30 linux-next 5d02ef4b57f6 0230ba3e .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/06 14:25 linux-next 5d02ef4b57f6 579a8754 .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/05 18:58 linux-next f81e94e91878 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/04 07:02 linux-next f81e94e91878 a617004c .config log report info INFO: task hung in io_ring_exit_work
ci-upstream-linux-next-kasan-gce-root 2021/12/03 08:29 linux-next f81e94e91878 61f86278 .config log report info INFO: task hung in io_ring_exit_work
ci-qemu2-riscv64 2021/09/03 23:19 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 417166ddec02 d236a457 .config log report info INFO: task hung in io_ring_exit_work