INFO: task syz-executor.5:5464 blocked for more than 143 seconds. Not tainted 6.1.0-rc4-next-20221109-syzkaller-06615-g94db6b12c18d #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:23456 pid:5464 ppid:5309 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5211 [inline] __schedule+0xb8a/0x5450 kernel/sched/core.c:6528 schedule+0xda/0x1b0 kernel/sched/core.c:6604 io_schedule+0xba/0x130 kernel/sched/core.c:8784 folio_wait_bit_common+0x394/0x9b0 mm/filemap.c:1296 folio_lock include/linux/pagemap.h:938 [inline] invalidate_inode_pages2_range+0x600/0x10b0 mm/truncate.c:659 iomap_dio_complete+0x518/0x920 fs/iomap/direct-io.c:115 iomap_dio_rw+0x6f/0xa0 fs/iomap/direct-io.c:694 ext4_dio_write_iter fs/ext4/file.c:587 [inline] ext4_file_write_iter+0x1040/0x16e0 fs/ext4/file.c:698 call_write_iter include/linux/fs.h:2159 [inline] do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735 do_iter_write+0x182/0x700 fs/read_write.c:861 vfs_iter_write+0x70/0xa0 fs/read_write.c:902 iter_file_splice_write+0x741/0xc90 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0x110/0x180 fs/splice.c:931 splice_direct_to_actor+0x331/0x8a0 fs/splice.c:886 do_splice_direct+0x1a7/0x270 fs/splice.c:974 do_sendfile+0xb19/0x1270 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1309 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:0x4603b9 RSP: 002b:00007f4eba08d198 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 000000000052bf00 RCX: 00000000004603b9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000004 RBP: 00000000004a9a99 R08: 0000000000000000 R09: 0000000000000000 R10: 00008000fffffffe R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000004 R14: 00000000004b1725 R15: 00007f4eba08d6bc Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bf884b0 (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: ffffffff8bf881b0 (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: ffffffff8bf89000 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6494 3 locks held by kworker/u4:5/1093: #0: ffff8880b9a3a2d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:537 #1: ffff8880b9a27748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x212/0x930 kernel/sched/psi.c:964 #2: ffff8880b9a28358 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:999 1 lock held by klogd/4590: #0: ffff8880b9a3a2d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:537 2 locks held by getty/4920: #0: ffff888149edc098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177 2 locks held by syz-executor.5/5464: #0: ffff888026d10460 (sb_writers#4){.+.+}-{0:0}, at: __do_sys_sendfile64 fs/read_write.c:1323 [inline] #0: ffff888026d10460 (sb_writers#4){.+.+}-{0:0}, at: __se_sys_sendfile64 fs/read_write.c:1309 [inline] #0: ffff888026d10460 (sb_writers#4){.+.+}-{0:0}, at: __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1309 #1: ffff8880711c5440 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff8880711c5440 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_dio_write_iter fs/ext4/file.c:525 [inline] #1: ffff8880711c5440 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_file_write_iter+0xcae/0x16e0 fs/ext4/file.c:698 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc4-next-20221109-syzkaller-06615-g94db6b12c18d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x32f/0x3c0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xc71/0xfc0 kernel/hung_task.c:377 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 46 Comm: kworker/u4:3 Not tainted 6.1.0-rc4-next-20221109-syzkaller-06615-g94db6b12c18d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:mark_lock.part.0+0x123/0x1910 kernel/locking/lockdep.c:4612 Code: 00 00 00 4b 8d 04 76 48 c1 e0 06 48 05 60 7d 95 90 48 8d 78 50 48 ba 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 80 3c 11 00 <0f> 85 65 13 00 00 48 89 ee 48 23 70 50 0f 84 d3 06 00 00 41 ba 01 RSP: 0018:ffffc90000b77790 EFLAGS: 00000046 RAX: ffffffff90958120 RBX: 1ffff9200016eef9 RCX: 1ffffffff212b02e RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffffffff90958170 RBP