INFO: task syz-executor.2:3521 blocked for more than 143 seconds. Not tainted 5.15.118-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:19736 pid: 3521 ppid: 1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5026 [inline] __schedule+0x12c4/0x4590 kernel/sched/core.c:6372 schedule+0x11b/0x1f0 kernel/sched/core.c:6455 rwsem_down_write_slowpath+0xebb/0x15c0 kernel/locking/rwsem.c:1157 __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1293 [inline] down_write+0x164/0x170 kernel/locking/rwsem.c:1542 inode_lock include/linux/fs.h:787 [inline] vfs_unlink+0xe0/0x5f0 fs/namei.c:4198 do_unlinkat+0x49d/0x940 fs/namei.c:4277 __do_sys_unlink fs/namei.c:4325 [inline] __se_sys_unlink fs/namei.c:4323 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4323 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fb9dcfc1be7 RSP: 002b:00007fff1b297a98 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb9dcfc1be7 RDX: 00007fff1b297ad0 RSI: 00007fff1b297ad0 RDI: 00007fff1b297b60 RBP: 00007fff1b297b60 R08: 0000000000000001 R09: 00007fff1b297930 R10: 00005555557ef853 R11: 0000000000000206 R12: 00007fb9dd00c43b R13: 00007fff1b298c20 R14: 00005555557ef810 R15: 00007fff1b298c60 INFO: task syz-executor.2:31627 blocked for more than 143 seconds. Not tainted 5.15.118-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:23392 pid:31627 ppid: 3521 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5026 [inline] __schedule+0x12c4/0x4590 kernel/sched/core.c:6372 schedule+0x11b/0x1f0 kernel/sched/core.c:6455 wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191 __writeback_inodes_sb_nr+0x2ce/0x370 fs/fs-writeback.c:2662 try_to_writeback_inodes_sb+0x94/0xb0 fs/fs-writeback.c:2710 ext4_nonda_switch fs/ext4/inode.c:2943 [inline] ext4_da_write_begin+0x228/0xb60 fs/ext4/inode.c:2970 generic_perform_write+0x2bf/0x5b0 mm/filemap.c:3776 ext4_buffered_write_iter+0x227/0x360 fs/ext4/file.c:268 ext4_file_write_iter+0x87c/0x1990 __kernel_write+0x5b1/0xa60 fs/read_write.c:539 __dump_emit+0x264/0x3a0 fs/coredump.c:875 dump_user_range+0x91/0x320 fs/coredump.c:949 elf_core_dump+0x3c7d/0x4570 fs/binfmt_elf.c:2285 do_coredump+0x1852/0x31e0 fs/coredump.c:826 get_signal+0xc06/0x14e0 kernel/signal.c:2875 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:172 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:314 exc_page_fault+0x342/0x740 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x0 RSP: 002b:00000000200003a8 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fb9dd0e2050 RCX: 00007fb9dcfc2389 RDX: 00000000200007c0 RSI: 00000000200003a0 RDI: 0000000009000400 RBP: 00007fb9dd00d493 R08: 0000000020000840 R09: 0000000020000840 R10: 0000000020000800 R11: 0000000000000206 R12: 0000000000000000 R13: 00007fff1b29893f R14: 00007fb9db513300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c91c5e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3266: #0: ffff888024af9098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90002bb32e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1da0 drivers/tty/n_tty.c:2147 3 locks held by syz-executor.2/3521: #0: ffff88814b37a460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff88804dce83f0 (&type->i_mutex_dir_key#4/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:822 [inline] #1: ffff88804dce83f0 (&type->i_mutex_dir_key#4/1){+.+.}-{3:3}, at: do_unlinkat+0x260/0x940 fs/namei.c:4260 #2: ffff88804dcec9b8 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #2: ffff88804dcec9b8 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: vfs_unlink+0xe0/0x5f0 fs/namei.c:4198 4 locks held by kworker/u4:6/15127: #0: ffff8880149c4938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2280 #1: ffffc9000656fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2282 #2: ffff88814b37cbd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1f6/0x3d10 fs/ext4/inode.c:2687 #3: ffff88814b37e990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x12d5/0x1590 fs/jbd2/transaction.c:466 1 lock held by syz-executor.1/31539: 1 lock held by syz-executor.0/31544: 1 lock held by syz-executor.4/31564: #0: ffff88814b37cbd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1f6/0x3d10 fs/ext4/inode.c:2687 1 lock held by syz-executor.1/31567: 3 locks held by syz-executor.0/31568: 2 locks held by syz-executor.4/31575: 1 lock held by syz-executor.1/31590: 1 lock held by syz-executor.0/31593: 2 locks held by syz-executor.0/31617: 3 locks held by syz-executor.1/31621: 3 locks held by syz-executor.2/31627: #0: ffff88814b37a460 (sb_writers#5){.+.+}-{0:0}, at: do_coredump+0x1825/0x31e0 fs/coredump.c:825 #1: ffff88804dcec9b8 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff88804dcec9b8 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_buffered_write_iter+0xa0/0x360 fs/ext4/file.c:262 #2: ffff88814b37a0e0 (&type->s_umount_key#32){++++}-{3:3}, at: try_to_writeback_inodes_sb+0x1d/0xb0 fs/fs-writeback.c:2707 2 locks held by syz-executor.4/31628: 1 lock held by syz-executor.0/31670: 1 lock held by syz-executor.1/31679: 2 locks held by syz-executor.4/31683: 2 locks held by syz-executor.0/31688: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 31683 Comm: syz-executor.4 Not tainted 5.15.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:check_preemption_disabled+0x63/0x110 lib/smp_processor_id.c:19 Code: 44 24 08 0f 85 c7 00 00 00 89 d8 48 83 c4 10 5b 41 5c 41 5e 41 5f c3 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 <74> c9 49 89 f6 49 89 ff 65 4c 8b 25 fd 52 e7 75 41 f6 44 24 2f 04 RSP: 0018:ffffc90005a1ed68 EFLAGS: 00000046 RAX: 0000000080000000 RBX: 0000000000000001 RCX: ffffffff913c3003 RDX: dffffc0000000000 RSI: ffffffff8ad860e0 RDI: ffffffff8ad860a0 RBP: ffffc90005a1eed0 R08: dffffc0000000000 R09: fffffbfff1f79621 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffc90005a1ef80 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ecc5416680 CR3: 000000001b94b000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: free_unref_page_list+0x7be/0x8e0 mm/page_alloc.c:3478 release_pages+0x1bb9/0x1f40 mm/swap.c:963 __pagevec_release+0x80/0xf0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] mpage_release_unused_pages+0x776/0x9a0 fs/ext4/inode.c:1607 ext4_writepages+0x2c66/0x3d10 fs/ext4/inode.c:2845 do_writepages+0x481/0x730 mm/page-writeback.c:2364 filemap_fdatawrite_wbc+0x1d6/0x230 mm/filemap.c:400 __filemap_fdatawrite_range mm/filemap.c:433 [inline] __filemap_fdatawrite mm/filemap.c:439 [inline] filemap_flush+0x10c/0x150 mm/filemap.c:466 ext4_release_file+0x7d/0x300 fs/ext4/file.c:141 __fput+0x3bf/0x890 fs/file_table.c:280 task_work_run+0x129/0x1a0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0x6a3/0x2480 kernel/exit.c:872 do_group_exit+0x144/0x310 kernel/exit.c:994 get_signal+0xc66/0x14e0 kernel/signal.c:2889 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:172 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:314 exc_page_fault+0x342/0x740 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:00000000200003a8 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f4da929bf80 RCX: 00007f4da917c389 RDX: 00000000200007c0 RSI: 00000000200003a0 RDI: 0000000009000400 RBP: 00007f4da91c7493 R08: 0000000020000840 R09: 0000000020000840 R10: 0000000020000800 R11: 0000000000000206 R12: 0000000000000000 R13: 00007ffd7e78c2bf R14: 00007f4da76ee300 R15: 0000000000022000