INFO: task syz-executor.2:29323 blocked for more than 143 seconds. Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:22672 pid:29323 tgid:29322 ppid:5091 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] __blockdev_direct_IO+0x346/0x49a0 fs/direct-io.c:1144 blockdev_direct_IO include/linux/fs.h:3038 [inline] nilfs_direct_IO+0xe9/0x120 fs/nilfs2/inode.c:296 generic_file_read_iter+0x342/0x550 mm/filemap.c:2749 call_read_iter include/linux/fs.h:2014 [inline] copy_splice_read+0x4c9/0x9c0 fs/splice.c:364 splice_direct_to_actor+0x2c4/0x9e0 fs/splice.c:1069 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194 do_sendfile+0x62c/0x1000 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fe0db67cce9 RSP: 002b:00007fe0dc47e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fe0db79bf80 RCX: 00007fe0db67cce9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007fe0db6c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fe0db79bf80 R15: 00007ffebfd6f1b8 INFO: task syz-executor.2:29325 blocked for more than 144 seconds. Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:21904 pid:29325 tgid:29322 ppid:5091 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 io_schedule+0x8c/0x100 kernel/sched/core.c:8998 folio_wait_bit_common+0x881/0x12b0 mm/filemap.c:1273 folio_wait_writeback+0xe7/0x1e0 mm/page-writeback.c:3065 __filemap_fdatawait_range+0x17b/0x400 mm/filemap.c:522 filemap_write_and_wait_range+0x220/0x2c0 mm/filemap.c:684 direct_write_fallback+0xae/0x150 fs/libfs.c:1954 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4039 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x792/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fe0db67cce9 RSP: 002b:00007fe0dc45d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe0db79c050 RCX: 00007fe0db67cce9 RDX: 0000000002007ffb RSI: 0000000020000080 RDI: 0000000000000006 RBP: 00007fe0db6c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fe0db79c050 R15: 00007ffebfd6f1b8 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4815: #0: ffff88801ecc60a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015c02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 3 locks held by kworker/u4:7/28291: 2 locks held by syz-executor.2/29323: #0: ffff888043c4c418 (sb_writers#13){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff88806dea02a8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff88806dea02a8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: __blockdev_direct_IO+0x346/0x49a0 fs/direct-io.c:1144 3 locks held by syz-executor.2/29325: #0: ffff888020a805c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2b0/0x340 fs/file.c:1177 #1: ffff888043c4c418 (sb_writers#13){.+.+}-{0:0}, at: vfs_write+0x223/0xb20 fs/read_write.c:580 #2: ffff88806dea02a8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #2: ffff88806dea02a8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x310 mm/filemap.c:4036 1 lock held by syz-executor.5/31489: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x310 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 10679 Comm: syz-executor.0 Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline] RIP: 0010:lookup_chain_cache_add kernel/locking/lockdep.c:3781 [inline] RIP: 0010:validate_chain+0x124/0x5ab0 kernel/locking/lockdep.c:3837 Code: 04 00 00 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 60 73 dd 90 be 08 00 00 00 e8 44 ad 7c 00 48 0f a3 1d 6c 9f 6f 0f <72> 66 48 c7 c0 00 f3 5c 92 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 RSP: 0018:ffffc900170c7500 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 0000000000000b1e RCX: ffffffff816dd3ec RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90dd74c0 RBP: ffffc900170c7800 R08: ffffffff90dd74c7 R09: 1ffffffff21bae98 R10: dffffc0000000000 R11: fffffbfff21bae99 R12: dffffc0000000000 R13: ffff88801f7b5940 R14: e9609fc9a9894eb8 R15: ffff88801f7b5940 FS: 00007f2103b096c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f597a378538 CR3: 0000000038716000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_acquire+0x1345/0x1fd0 kernel/locking/lockdep.c:5137 lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 __wake_up_common_lock+0x25/0x1e0 kernel/sched/wait.c:105 io_cqring_wake io_uring/io_uring.h:251 [inline] io_cq_unlock_post io_uring/io_uring.c:681 [inline] __io_cqring_overflow_flush+0x488/0x600 io_uring/io_uring.c:731 io_cqring_do_overflow_flush io_uring/io_uring.c:739 [inline] io_cqring_wait io_uring/io_uring.c:2651 [inline] __do_sys_io_uring_enter io_uring/io_uring.c:3757 [inline] __se_sys_io_uring_enter+0x1f3e/0x2b30 io_uring/io_uring.c:3647 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f2102e7cce9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2103b090c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007f2102f9c050 RCX: 00007f2102e7cce9 RDX: 0000000000400000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f2102ec947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f2102f9c050 R15: 00007ffc4be25298