INFO: task kworker/u4:1:144 blocked for more than 143 seconds.
Not tainted 5.15.138-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:1 state:D stack:23512 pid: 144 ppid: 2 flags:0x00004000
Workqueue: writeback wb_workfn (flush-7:5)
Call Trace:
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x45b0 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:1688
writeback_sb_inodes+0xbce/0x1a40 fs/fs-writeback.c:1913
__writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:1984
wb_writeback+0x465/0xc50 fs/fs-writeback.c:2089
wb_check_background_flush fs/fs-writeback.c:2155 [inline]
wb_do_writeback fs/fs-writeback.c:2243 [inline]
wb_workfn+0xd07/0x1130 fs/fs-writeback.c:2271
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: ffffffff8c91f020 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
4 locks held by kworker/u4:1/144:
#0: ffff888014fb6938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc9000118fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
#2: ffff8880271080e0 (&type->s_umount_key#93){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418
#3: ffff88807bf71108 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:529
2 locks held by getty/3260:
#0: ffff88807f038098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
#1: ffffc900024bb2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
2 locks held by syz-executor.1/3545:
#0: ffff88802a2860e0 (&type->s_umount_key#99){+.+.}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:365
#1: ffffffff8c9235e8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline]
#1: ffffffff8c9235e8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:845
4 locks held by kworker/0:8/3599:
#0: ffff8880b9a39718 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xa8/0x140 kernel/sched/core.c:483
#1: ffff8880b9a27848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x53d/0x810 kernel/sched/psi.c:891
#2: ffff8880b9a27e78 (krc.lock){..-.}-{2:2}, at: kfree_rcu_monitor+0x29/0x6c0 kernel/rcu/tree.c:3365
#3: ffff8880b9a28098 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x120/0x260 kernel/time/timer.c:946
2 locks held by kworker/u4:16/5217:
#0: ffff8880b9a39718 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xa8/0x140 kernel/sched/core.c:483
#1: ffff8880b9a27848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x53d/0x810 kernel/sched/psi.c:891
2 locks held by kworker/0:14/5325:
#0: ffff888011c72538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc90005387d20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
5 locks held by syz-executor.5/6903:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6903 Comm: syz-executor.5 Not tainted 5.15.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:io_serial_in+0x72/0xb0 drivers/tty/serial/8250/8250_port.c:461
Code: 74 46 07 fd 89 e9 41 d3 e6 48 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 d5 fb 50 fd 44 03 33 44 89 f2 ec <0f> b6 c0 5b 41 5e 41 5f 5d c3 89 e9 80 e1 07 38 c1 7c ad 48 89 ef
RSP: 0018:ffffc90005a56350 EFLAGS: 00000002
RAX: 1ffffffff22dde00 RBX: ffffffff916ef2a0 RCX: 0000000000000000
RDX: 00000000000003fd RSI: 000000000003ffff RDI: 0000000000040000
RBP: 0000000000000000 R08: ffffffff8478dbd2 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffffffff22ddea1
R13: ffffffff916ef260 R14: 00000000000003fd R15: dffffc0000000000
FS: 00007f0ec19026c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffeb95b4ca8 CR3: 00000000272dd000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
serial_in drivers/tty/serial/8250/8250.h:116 [inline]
wait_for_xmitr+0xec/0x260 drivers/tty/serial/8250/8250_port.c:2089
serial8250_console_putchar+0x19/0x50 drivers/tty/serial/8250/8250_port.c:3321
uart_console_write+0xa9/0x100 drivers/tty/serial/serial_core.c:1971
serial8250_console_write+0xc8e/0x1180 drivers/tty/serial/8250/8250_port.c:3398
console_unlock+0xced/0x12b0 kernel/printk/printk.c:2738
vprintk_emit+0xbf/0x150 kernel/printk/printk.c:2268
_printk+0xd1/0x111 kernel/printk/printk.c:2293
handle_bad_sector block/blk-core.c:655 [inline]
bio_check_eod block/blk-core.c:731 [inline]
submit_bio_checks+0x1087/0x1920 block/blk-core.c:816
__submit_bio+0x5a1/0x850 block/blk-core.c:915
__submit_bio_noacct_mq block/blk-core.c:1001 [inline]
submit_bio_noacct+0x955/0xb30 block/blk-core.c:1031
submit_bio+0x2dd/0x560 block/blk-core.c:1093
f2fs_submit_page_read+0x24c/0x2c0 fs/f2fs/data.c:1050
f2fs_get_read_data_page+0x455/0x6b0 fs/f2fs/data.c:1224
gc_data_segment fs/f2fs/gc.c:1503 [inline]
do_garbage_collect+0x4758/0x7600 fs/f2fs/gc.c:1670
f2fs_gc+0x9e5/0x1ad0 fs/f2fs/gc.c:1764
f2fs_balance_fs+0x4e8/0x6a0 fs/f2fs/segment.c:530
f2fs_map_blocks+0x1989/0x28d0 fs/f2fs/data.c:1672
expand_inode_data+0x5ba/0x9d0 fs/f2fs/file.c:1697
f2fs_fallocate+0x35a/0x820 fs/f2fs/file.c:1787
vfs_fallocate+0x54a/0x6b0 fs/open.c:308
ksys_fallocate fs/open.c:331 [inline]
__do_sys_fallocate fs/open.c:339 [inline]
__se_sys_fallocate fs/open.c:337 [inline]
__x64_sys_fallocate+0xb9/0x100 fs/open.c:337
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:0x7f0ec3380ae9
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:00007f0ec19020c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f0ec349ff80 RCX: 00007f0ec3380ae9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f0ec33cc47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f0ec349ff80 R15: 00007fff2c386c88