syzbot


INFO: task hung in io_poll_tw_hash_eject

Status: auto-obsoleted due to no activity on 2022/11/13 09:37
Subsystems: io-uring
[Documentation on labels]
First crash: 619d, last: 619d

Sample crash report:
INFO: task syz-executor.2:31291 blocked for more than 143 seconds.
      Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:27296 pid:31291 ppid:  3662 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5182 [inline]
 __schedule+0xadf/0x52b0 kernel/sched/core.c:6494
 schedule+0xda/0x1b0 kernel/sched/core.c:6570
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6629
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0xa44/0x1350 kernel/locking/mutex.c:747
 io_tw_lock io_uring/io_uring.h:240 [inline]
 io_poll_tw_hash_eject+0x1e7/0x470 io_uring/poll.c:133
 io_apoll_task_func+0x8f/0x120 io_uring/poll.c:300
 handle_tw_list+0xa8/0x420 io_uring/io_uring.c:984
 tctx_task_work+0xc4/0x420 io_uring/io_uring.c:1031
 task_work_run+0xdd/0x1a0 kernel/task_work.c:177
 io_run_task_work io_uring/io_uring.h:230 [inline]
 io_run_task_work+0x128/0x160 io_uring/io_uring.h:224
 io_uring_try_cancel_requests+0x70a/0x759 io_uring/io_uring.c:2775
 io_uring_cancel_generic+0x3bb/0x602 io_uring/io_uring.c:2822
 io_uring_files_cancel include/linux/io_uring.h:44 [inline]
 do_exit+0x4f9/0x29b0 kernel/exit.c:750
 do_group_exit+0xd2/0x2f0 kernel/exit.c:925
 get_signal+0x238c/0x2610 kernel/signal.c:2857
 arch_do_signal_or_restart+0x82/0x2300 arch/x86/kernel/signal.c:869
 exit_to_user_mode_loop kernel/entry/common.c:166 [inline]
 exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f79ccc89279
RSP: 002b:00007f79cdd14168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: 00000000000060bc RBX: 00007f79ccd9c120 RCX: 00007f79ccc89279
RDX: 00000000fffffffc RSI: 00000000000060bc RDI: 0000000000000005
RBP: 00007f79ccce3189 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f79cd2cfb1f R14: 00007f79cdd14300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8bf886f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8bf883f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
 #0: ffffffff8bf89240 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492
2 locks held by getty/3291:
 #0: ffff888026b3a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177
3 locks held by kworker/u4:11/9388:
1 lock held by syz-executor.2/31288:
1 lock held by syz-executor.2/31291:
 #0: ffff88801ca7e0a8 (&ctx->uring_lock){+.+.}-{3:3}, at: io_tw_lock io_uring/io_uring.h:240 [inline]
 #0: ffff88801ca7e0a8 (&ctx->uring_lock){+.+.}-{3:3}, at: io_poll_tw_hash_eject+0x1e7/0x470 io_uring/poll.c:133
2 locks held by syz-executor.2/651:
2 locks held by syz-executor.2/653:

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
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+0x46/0x14f lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x206/0x250 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc18/0xf50 kernel/hung_task.c:369
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 653 Comm: syz-executor.2 Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:hlock_class kernel/locking/lockdep.c:227 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4728 [inline]
RIP: 0010:__lock_acquire+0x487/0x56d0 kernel/locking/lockdep.c:5003
Code: 20 66 81 e5 ff 1f 0f b7 ed be 08 00 00 00 48 89 e8 48 c1 e8 06 48 8d 3c c5 40 b9 8d 90 e8 c1 4b 69 00 48 0f a3 2d e9 a3 2e 0f <0f> 83 5c 0c 00 00 48 8d 6c 6d 00 48 c1 e5 06 48 81 c5 60 bd 8d 90
RSP: 0018:ffffc90002e7f948 EFLAGS: 00000047
RAX: 0000000000000001 RBX: ffff88801f72c578 RCX: ffffffff815f154f
RDX: fffffbfff211b729 RSI: 0000000000000008 RDI: ffffffff908db940
RBP: 0000000000000027 R08: 0000000000000000 R09: ffffffff908db947
R10: fffffbfff211b728 R11: 1ffffffff17f2709 R12: ffff88801f72c5a0
R13: ffff88801f72bb00 R14: 0000000000000002 R15: 0000000000020000
FS:  00007fd8739b9700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c013857000 CR3: 0000000083fd7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000f9a
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire kernel/locking/lockdep.c:5666 [inline]
 lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631
 rcu_lock_acquire include/linux/rcupdate.h:280 [inline]
 rcu_read_lock include/linux/rcupdate.h:706 [inline]
 inet_twsk_purge+0x117/0x850 net/ipv4/inet_timewait_sock.c:270
 ops_exit_list+0x125/0x170 net/core/net_namespace.c:168
 setup_net+0x7fb/0xc50 net/core/net_namespace.c:349
 copy_net_ns+0x318/0x760 net/core/net_namespace.c:472
 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:227
 ksys_unshare+0x445/0x920 kernel/fork.c:3183
 __do_sys_unshare kernel/fork.c:3254 [inline]
 __se_sys_unshare kernel/fork.c:3252 [inline]
 __x64_sys_unshare+0x2d/0x40 kernel/fork.c:3252
 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+0x63/0xcd
RIP: 0033:0x7fd872889279
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007fd8739b9168 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007fd87299c050 RCX: 00007fd872889279
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000006c060000
RBP: 00007fd8728e3189 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd872ecfb1f R14: 00007fd8739b9300 R15: 0000000000022000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/15 09:32 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-kasan-gce INFO: task hung in io_poll_tw_hash_eject
* Struck through repros no longer work on HEAD.