INFO: task kworker/u4:10:4658 blocked for more than 143 seconds. Not tainted 6.1.22-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:10 state:D stack:21176 pid:4658 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:2) Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x132c/0x4330 kernel/sched/core.c:6554 schedule+0xbf/0x180 kernel/sched/core.c:6630 rwsem_down_write_slowpath+0xe93/0x14a0 kernel/locking/rwsem.c:1189 f2fs_down_write fs/f2fs/f2fs.h:2207 [inline] f2fs_balance_fs+0x4fb/0x6c0 fs/f2fs/segment.c:418 f2fs_write_inode+0x4c3/0x540 fs/f2fs/inode.c:757 write_inode fs/fs-writeback.c:1440 [inline] __writeback_single_inode+0x67d/0x11e0 fs/fs-writeback.c:1652 writeback_sb_inodes+0xc21/0x1ac0 fs/fs-writeback.c:1878 __writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:1949 wb_writeback+0x4b1/0xe10 fs/fs-writeback.c:2054 wb_check_old_data_flush fs/fs-writeback.c:2154 [inline] wb_do_writeback fs/fs-writeback.c:2207 [inline] wb_workfn+0xbec/0x1020 fs/fs-writeback.c:2235 process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436 kthread+0x268/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf26830 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf27030 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf26660 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3316: #0: ffff888027b7e098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2177 4 locks held by kworker/u4:10/4658: #0: ffff8880181be138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77a/0x11f0 #1: ffffc90015867d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7bd/0x11f0 kernel/workqueue.c:2264 #2: ffff888078aa20e0 (&type->s_umount_key#68){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:415 #3: ffff88808ece9140 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2207 [inline] #3: ffff88808ece9140 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4fb/0x6c0 fs/f2fs/segment.c:418 3 locks held by syz-executor.2/29509: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.22-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 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+0xf18/0xf60 kernel/hung_task.c:377 kthread+0x268/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 22315 Comm: kworker/u4:16 Not tainted 6.1.22-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Workqueue: bat_events batadv_nc_worker 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+0x7b/0x290 mm/kasan/generic.c:189 Code: 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 00 45 89 cf RSP: 0018:ffffc9000afa7970 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 1ffffffff204de4b RCX: ffffffff816a0f4a RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9026f258 RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff204de4b R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88809144a7b0 R13: dffffc0000000000 R14: fffffbfff204de4c R15: ffff88809144a790 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0cecb87218 CR3: 000000000cc8e000 CR4: 00000000003506f0 Call Trace: instrument_atomic_read include/linux/instrumented.h:72 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:228 [inline] mark_lock+0x9a/0x340 kernel/locking/lockdep.c:4613 mark_held_locks kernel/locking/lockdep.c:4237 [inline] __trace_hardirqs_on_caller kernel/locking/lockdep.c:4263 [inline] lockdep_hardirqs_on_prepare+0x3a0/0x7a0 kernel/locking/lockdep.c:4322 trace_hardirqs_on+0x34/0x40 kernel/trace/trace_preemptirq.c:49 __local_bh_enable_ip+0x164/0x1f0 kernel/softirq.c:401 spin_unlock_bh include/linux/spinlock.h:395 [inline] batadv_nc_purge_paths+0x30e/0x3b0 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x30b/0x5b0 net/batman-adv/network-coding.c:722 process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436 kthread+0x268/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306