INFO: task kworker/u4:4:1004 blocked for more than 143 seconds. Not tainted 5.16.0-rc4-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:4 state:D stack:24088 pid: 1004 ppid: 2 flags:0x00004000 Workqueue: events_unbound io_ring_exit_work Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6385 __mutex_lock_common kernel/locking/mutex.c:680 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740 io_uring_try_cancel_iowq fs/io_uring.c:9644 [inline] io_uring_try_cancel_requests+0x124/0x713 fs/io_uring.c:9674 io_ring_exit_work+0xff/0xbd0 fs/io_uring.c:9483 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INFO: task syz-executor.2:31150 blocked for more than 143 seconds. Not tainted 5.16.0-rc4-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:27720 pid:31150 ppid: 6538 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6385 __mutex_lock_common kernel/locking/mutex.c:680 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740 io_uring_del_tctx_node+0x109/0x20a fs/io_uring.c:9777 io_uring_clean_tctx fs/io_uring.c:9793 [inline] io_uring_cancel_generic+0x5d5/0x690 fs/io_uring.c:9882 io_uring_files_cancel include/linux/io_uring.h:16 [inline] do_exit+0x60c/0x2b40 kernel/exit.c:787 do_group_exit+0x125/0x310 kernel/exit.c:929 get_signal+0x47d/0x2220 kernel/signal.c:2852 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/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:0x7f9fe5928b42 RSP: 002b:00007f9fe489e0f8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 RAX: 0000000020ffd000 RBX: 0000000000008011 RCX: 00007f9fe5928b42 RDX: 0000000000000003 RSI: 0000000000100000 RDI: 0000000020ffd000 RBP: 0000000020ffd000 R08: 0000000000000004 R09: 0000000010000000 R10: 0000000000008011 R11: 0000000000000206 R12: 0000000020000140 R13: 0000000020ffd000 R14: 0000000020000080 R15: 0000000020002000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb83d20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 3 locks held by kworker/u4:4/1004: #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:635 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269 #1: ffffc90004ccfdb0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273 #2: ffff88809c5b40a8 (&ctx->uring_lock){+.+.}-{3:3}, at: io_uring_try_cancel_iowq fs/io_uring.c:9644 [inline] #2: ffff88809c5b40a8 (&ctx->uring_lock){+.+.}-{3:3}, at: io_uring_try_cancel_requests+0x124/0x713 fs/io_uring.c:9674 2 locks held by in:imklog/6209: #0: ffff88801a24f770 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:994 #1: ffff8880b9d39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 1 lock held by syz-executor.2/31150: #0: ffff88809c5b40a8 (&ctx->uring_lock){+.+.}-{3:3}, at: io_uring_del_tctx_node+0x109/0x20a fs/io_uring.c:9777 2 locks held by iou-sqp-31150/31154: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc4-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:111 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:210 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:295 kthread+0x405/0x4f0 kernel/kthread.c:327 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 CPU: 1 PID: 6211 Comm: rs:main Q:Reg Not tainted 5.16.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:iov_iter_init+0x2/0x1b0 lib/iov_iter.c:512 Code: e8 03 fd ff ff 41 89 c4 e8 ab 34 9f fd 44 89 e0 5b 5d 41 5c c3 41 bc ea ff ff ff eb eb cc cc cc cc cc cc cc cc cc cc cc 41 57 <41> 56 4d 89 c6 41 55 49 89 d5 41 54 49 89 cc 55 89 f5 41 89 ef 53 RSP: 0018:ffffc9000cab7d00 EFLAGS: 00000293 RAX: ffffc9000cab7e20 RBX: ffff8880777daf00 RCX: 0000000000000001 RDX: ffffc9000cab7d40 RSI: 0000000000000001 RDI: ffffc9000cab7d60 RBP: 1ffff92001956fa4 R08: 0000000000000541 R09: ffffffff8ff73a9f R10: ffffffff81c8bff7 R11: 00000000ffff8000 R12: ffffc9000cab7d60 R13: 0000000000000010 R14: ffffc9000cab7ec8 R15: 0000000000000541 FS: 00007f56193fc700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f10f303b000 CR3: 000000006f13c000 CR4: 0000000000350ee0 Call Trace: new_sync_write+0x3d9/0x660 fs/read_write.c:501 vfs_write+0x7cd/0xae0 fs/read_write.c:590 ksys_write+0x12d/0x250 fs/read_write.c:643 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:0x7f561be401cd Code: c2 20 00 00 75 10 b8 01 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ae fc ff ff 48 89 04 24 b8 01 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 f7 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f56193fb590 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f560c02b4a0 RCX: 00007f561be401cd RDX: 0000000000000541 RSI: 00007f560c02b4a0 RDI: 0000000000000009 RBP: 0000000000000000 R08: 0000000000000000 R09: 37383331205b203a R10: 0000000000000000 R11: 0000000000000293 R12: 00007f560c02b220 R13: 00007f56193fb5b0 R14: 000055e78f676440 R15: 0000000000000541 ---------------- Code disassembly (best guess): 0: e8 03 fd ff ff callq 0xfffffd08 5: 41 89 c4 mov %eax,%r12d 8: e8 ab 34 9f fd callq 0xfd9f34b8 d: 44 89 e0 mov %r12d,%eax 10: 5b pop %rbx 11: 5d pop %rbp 12: 41 5c pop %r12 14: c3 retq 15: 41 bc ea ff ff ff mov $0xffffffea,%r12d 1b: eb eb jmp 0x8 1d: cc int3 1e: cc int3 1f: cc int3 20: cc int3 21: cc int3 22: cc int3 23: cc int3 24: cc int3 25: cc int3 26: cc int3 27: cc int3 28: 41 57 push %r15 * 2a: 41 56 push %r14 <-- trapping instruction 2c: 4d 89 c6 mov %r8,%r14 2f: 41 55 push %r13 31: 49 89 d5 mov %rdx,%r13 34: 41 54 push %r12 36: 49 89 cc mov %rcx,%r12 39: 55 push %rbp 3a: 89 f5 mov %esi,%ebp 3c: 41 89 ef mov %ebp,%r15d 3f: 53 push %rbx