INFO: task kworker/u4:17:7638 blocked for more than 143 seconds. Not tainted 5.15.132-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:17 state:D stack:21088 pid: 7638 ppid: 2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:0) 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 f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:529 f2fs_write_inode+0x4c3/0x540 fs/f2fs/inode.c:727 write_inode fs/fs-writeback.c:1478 [inline] __writeback_single_inode+0x644/0xe30 fs/fs-writeback.c:1683 writeback_sb_inodes+0xbf0/0x1a50 fs/fs-writeback.c:1908 __writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:1979 wb_writeback+0x465/0xc50 fs/fs-writeback.c:2084 wb_check_old_data_flush fs/fs-writeback.c:2184 [inline] wb_do_writeback fs/fs-writeback.c:2237 [inline] wb_workfn+0xc55/0x1130 fs/fs-writeback.c:2266 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c91f0a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3260: #0: ffff88814b823098 (&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/0x1db0 drivers/tty/n_tty.c:2158 4 locks held by kworker/u4:17/7638: #0: ffff888014bac938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004fd7d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff8881486540e0 (&type->s_umount_key#60){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418 #3: ffff8880a3f81108 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:529 6 locks held by syz-executor.0/9827: 2 locks held by syz-executor.1/12827: #0: ffff8881486540e0 (&type->s_umount_key#60){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703 #1: ffff88814bb0e7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff88814bb0e7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2746 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.132-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/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: 9827 Comm: syz-executor.0 Not tainted 5.15.132-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0x77/0x290 mm/kasan/generic.c:189 Code: 03 49 bb 01 00 00 00 00 fc ff df 4f 8d 34 1a 4c 89 f5 4c 29 cd 48 83 fd 10 7f 26 48 85 ed 0f 84 3a 01 00 00 49 f7 d2 49 01 da <41> 80 39 00 0f 85 c4 01 00 00 49 ff c1 49 ff c2 75 ee e9 1d 01 00 RSP: 0018:ffffc90000dd0658 EFLAGS: 00000086 RAX: ffff88807df69d01 RBX: 1ffff920001ba0e0 RCX: ffffffff813888c2 RDX: 0000000000000001 RSI: 0000000000000060 RDI: ffffc90000dd0700 RBP: 000000000000000c R08: dffffc0000000000 R09: fffff520001ba0e2 R10: fffffffffffffff6 R11: dffffc0000000001 R12: 0000000000000000 R13: ffffffff816dc560 R14: fffff520001ba0ec R15: 0000000000000000 FS: 00007f590fe4d6c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055996c8a6030 CR3: 00000000a1155000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: memset+0x1f/0x40 mm/kasan/shadow.c:44 __unwind_start+0x32/0x720 arch/x86/kernel/unwind_orc.c:632 unwind_start arch/x86/include/asm/unwind.h:60 [inline] arch_stack_walk+0xdb/0x140 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack+0x36/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xba/0x100 mm/kasan/generic.c:348 insert_work+0x54/0x3e0 kernel/workqueue.c:1366 __queue_work+0x963/0xd00 kernel/workqueue.c:1532 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1461 [inline] __run_timers+0x6a8/0x890 kernel/time/timer.c:1737 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:console_trylock_spinning+0x36b/0x3f0 kernel/printk/printk.c:1909 Code: 0f 84 75 ff ff ff e8 c4 00 1a 00 fb 31 db eb 41 e8 ba 00 1a 00 e8 f5 bb b6 08 4d 85 ed 74 cd e8 ab 00 1a 00 fb bb 01 00 00 00 <48> c7 c7 40 b9 7f 8c 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 RSP: 0018:ffffc9000c1a5ee0 EFLAGS: 00000293 RAX: ffffffff81661cb5 RBX: 0000000000000001 RCX: ffff88807df69dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000c1a5fb0 R08: ffffffff81661c6e R09: fffffbfff1f7b24c R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92001834bdc R13: 0000000000000200 R14: 0000000000000046 R15: dffffc0000000000 vprintk_emit+0xa1/0x150 kernel/printk/printk.c:2267 _printk+0xd1/0x111 kernel/printk/printk.c:2289 f2fs_printk+0x29b/0x330 fs/f2fs/super.c:253 f2fs_inode_chksum_verify+0x25b/0x360 fs/f2fs/inode.c:187 __get_node_page+0x3da/0x820 fs/f2fs/node.c:1446 gc_node_segment fs/f2fs/gc.c:937 [inline] do_garbage_collect+0x18f6/0x7600 fs/f2fs/gc.c:1667 f2fs_gc+0x9e5/0x1ad0 fs/f2fs/gc.c:1764 f2fs_balance_fs+0x4e8/0x6a0 fs/f2fs/segment.c:530 f2fs_map_blocks+0x1e24/0x28d0 fs/f2fs/data.c:1698 f2fs_preallocate_blocks+0x3bc/0x5c0 fs/f2fs/data.c:1427 f2fs_file_write_iter+0x5b7/0xb80 fs/f2fs/file.c:4328 __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:867 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/0x40 kernel/entry/common.c:314 exc_general_protection+0x358/0x4f0 arch/x86/kernel/traps.c:562 asm_exc_general_protection+0x22/0x30 arch/x86/include/asm/idtentry.h:562 RIP: 0033:0x7f59118cbaf1 Code: 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 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:0000000020000150 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f59119eaf80 RCX: 00007f59118cbae9 RDX: 0000000020000000 RSI: 0000000020000150 RDI: 000000004c003600 RBP: 00007f591191747a R08: 00000000200001c0 R09: 00000000200001c0 R10: 0000000020000180 R11: 0000000000000206 R12: 0000000000000000 R13: 000000000000000b R14: 00007f59119eaf80 R15: 00007ffff9c98598