INFO: task syz-executor.4:10538 blocked for more than 143 seconds. Not tainted 5.17.0-next-20220324-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27256 pid:10538 ppid: 3631 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5106 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6415 schedule+0xd2/0x1f0 kernel/sched/core.c:6487 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1857 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x373/0x530 kernel/sched/completion.c:106 io_wq_exit_workers fs/io-wq.c:1266 [inline] io_wq_put_and_exit+0x4d6/0xe40 fs/io-wq.c:1301 io_uring_clean_tctx fs/io_uring.c:10577 [inline] io_uring_cancel_generic+0x60b/0x695 fs/io_uring.c:10647 io_uring_files_cancel include/linux/io_uring.h:18 [inline] do_exit+0x4f9/0x2a00 kernel/exit.c:750 do_group_exit+0xd2/0x2f0 kernel/exit.c:925 get_signal+0x22df/0x24c0 kernel/signal.c:2904 arch_do_signal_or_restart+0x88/0x1a10 arch/x86/kernel/signal.c:867 exit_to_user_mode_loop kernel/entry/common.c:180 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:215 __syscall_exit_to_user_mode_work kernel/entry/common.c:297 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:308 do_syscall_64+0x42/0x80 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fef96289049 RSP: 002b:00007fef9730d218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fef9639bf68 RCX: 00007fef96289049 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fef9639bf68 RBP: 00007fef9639bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fef9639bf6c R13: 00007ffc058e986f R14: 00007fef9730d300 R15: 0000000000022000 INFO: task iou-wrk-10538:10543 can't die for more than 143 seconds. task:iou-wrk-10538 state:R running task stack:28128 pid:10543 ppid: 3631 flags:0x00024006 Call Trace: context_switch kernel/sched/core.c:5106 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6415 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:542 [inline] queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] do_raw_spin_lock+0x120/0x2a0 kernel/locking/spinlock_debug.c:115 Showing all locks held in the system: 1 lock held by khungtaskd/28: #0: ffffffff8bd821a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6498 2 locks held by getty/3270: #0: ffff888015c39098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002e632e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2075 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 5.17.0-next-20220324-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+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:256 [inline] watchdog+0xcb7/0xed0 kernel/hung_task.c:413 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 10543 Comm: iou-wrk-10538 Not tainted 5.17.0-next-20220324-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_region_inline mm/kasan/generic.c:170 [inline] RIP: 0010:kasan_check_range+0x12c/0x180 mm/kasan/generic.c:189 Code: 00 74 ef 49 8d 04 2c 48 85 d2 75 0b 48 89 da 48 29 c2 e9 55 ff ff ff 49 39 d2 75 17 49 0f be 02 41 83 e1 07 49 39 c1 7d 0a 5b 01 00 00 00 5d 41 5c c3 44 89 c2 e8 c3 ef ff ff 5b 83 f0 01 5d RSP: 0018:ffffc90004a1f508 EFLAGS: 00000046 RAX: fffffbfff2005321 RBX: ffffffff8bd821a0 RCX: ffffffff815cfc9b RDX: fffffbfff2005321 RSI: 0000000000000008 RDI: ffffffff90029900 RBP: fffffbfff2005320 R08: 0000000000000000 R09: ffffffff90029907 R10: fffffbfff2005320 R11: 0000000000000001 R12: ffff888019e144e8 R13: ffff888019e13a80 R14: 0000000000020000 R15: 0000000000020029 FS: 00007fef9730d700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0139c1000 CR3: 000000006c433000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] hlock_class kernel/locking/lockdep.c:228 [inline] check_wait_context kernel/locking/lockdep.c:4733 [inline] __lock_acquire+0x3eb/0x56c0 kernel/locking/lockdep.c:5010 lock_acquire kernel/locking/lockdep.c:5672 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5637 rcu_lock_acquire include/linux/rcupdate.h:268 [inline] rcu_read_lock include/linux/rcupdate.h:694 [inline] aa_file_perm+0x14d/0x1230 security/apparmor/file.c:611 common_file_perm security/apparmor/lsm.c:475 [inline] apparmor_file_permission+0x15e/0x4e0 security/apparmor/lsm.c:489 security_file_permission+0x4d/0xd0 security/security.c:1523 rw_verify_area+0xae/0x1c0 fs/read_write.c:385 io_read+0x29a/0x12a0 fs/io_uring.c:3871 io_issue_sqe+0x813/0x8660 fs/io_uring.c:7232 io_wq_submit_work+0x1ed/0x590 fs/io_uring.c:7400 io_worker_handle_work+0xb1c/0x1ab0 fs/io-wq.c:597 io_wqe_worker+0x637/0xdb0 fs/io-wq.c:644 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 ---------------- Code disassembly (best guess): 0: 00 74 ef 49 add %dh,0x49(%rdi,%rbp,8) 4: 8d 04 2c lea (%rsp,%rbp,1),%eax 7: 48 85 d2 test %rdx,%rdx a: 75 0b jne 0x17 c: 48 89 da mov %rbx,%rdx f: 48 29 c2 sub %rax,%rdx 12: e9 55 ff ff ff jmpq 0xffffff6c 17: 49 39 d2 cmp %rdx,%r10 1a: 75 17 jne 0x33 1c: 49 0f be 02 movsbq (%r10),%rax 20: 41 83 e1 07 and $0x7,%r9d 24: 49 39 c1 cmp %rax,%r9 27: 7d 0a jge 0x33 29: 5b pop %rbx * 2a: b8 01 00 00 00 mov $0x1,%eax <-- trapping instruction 2f: 5d pop %rbp 30: 41 5c pop %r12 32: c3 retq 33: 44 89 c2 mov %r8d,%edx 36: e8 c3 ef ff ff callq 0xffffeffe 3b: 5b pop %rbx 3c: 83 f0 01 xor $0x1,%eax 3f: 5d pop %rbp