INFO: task kworker/u8:1:12 blocked for more than 143 seconds.
Not tainted 6.12.0-rc4-syzkaller-00261-g850925a8133c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:1 state:D stack:22064 pid:12 tgid:12 ppid:2 flags:0x00004000
Workqueue: writeback wb_workfn (flush-7:2)
Call Trace:
context_switch kernel/sched/core.c:5328 [inline]
__schedule+0x18af/0x4bd0 kernel/sched/core.c:6690
__schedule_loop kernel/sched/core.c:6767 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6782
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6839
rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176
__down_write_common kernel/locking/rwsem.c:1304 [inline]
__down_write kernel/locking/rwsem.c:1313 [inline]
down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578
f2fs_down_write fs/f2fs/f2fs.h:2199 [inline]
f2fs_balance_fs+0x5b0/0x7a0 fs/f2fs/segment.c:448
f2fs_write_inode+0x3a0/0x4d0 fs/f2fs/inode.c:787
write_inode fs/fs-writeback.c:1503 [inline]
__writeback_single_inode+0x713/0x10d0 fs/fs-writeback.c:1723
writeback_sb_inodes+0x80c/0x1370 fs/fs-writeback.c:1954
__writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:2025
wb_writeback+0x42f/0xbd0 fs/fs-writeback.c:2136
wb_check_old_data_flush fs/fs-writeback.c:2240 [inline]
wb_do_writeback fs/fs-writeback.c:2293 [inline]
wb_workfn+0xba1/0x1090 fs/fs-writeback.c:2321
process_one_work kernel/workqueue.c:3229 [inline]
process_scheduled_works+0xa65/0x1850 kernel/workqueue.c:3310
worker_thread+0x870/0xd30 kernel/workqueue.c:3391
kthread+0x2f2/0x390 kernel/kthread.c:389
ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Showing all locks held in the system:
4 locks held by kworker/u8:1/12:
#0: ffff88801dec4148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801dec4148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
#1: ffffc90000117d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90000117d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
#2: ffff888011d360e0 (&type->s_umount_key#52){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:562
#3: ffff88807ece9350 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2199 [inline]
#3: ffff88807ece9350 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x5b0/0x7a0 fs/f2fs/segment.c:448
1 lock held by khungtaskd/30:
#0: ffffffff8e937e20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937e20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937e20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6720
2 locks held by getty/5593:
#0: ffff8880349820a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900032532f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
3 locks held by kworker/u8:0/5932:
2 locks held by syz-executor/5979:
#0: ffff88814bc9e0e0 (&type->s_umount_key#52){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline]
#0: ffff88814bc9e0e0 (&type->s_umount_key#52){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff88814bc9e0e0 (&type->s_umount_key#52){++++}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
#1: ffffffff8e93d280 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:4562
5 locks held by syz.2.518/9552:
2 locks held by syz-executor/9685:
#0: ffff888076bac0e0 (&type->s_umount_key#52){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline]
#0: ffff888076bac0e0 (&type->s_umount_key#52){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff888076bac0e0 (&type->s_umount_key#52){++++}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
#1: ffffffff8e93d280 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:4562
1 lock held by syz.5.748/10954:
3 locks held by syz.4.747/10958:
3 locks held by syz.1.751/10957:
2 locks held by syz.0.752/10960:
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc4-syzkaller-00261-g850925a8133c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
watchdog+0xff4/0x1040 kernel/hung_task.c:379
kthread+0x2f2/0x390 kernel/kthread.c:389
ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 9552 Comm: syz.2.518 Not tainted 6.12.0-rc4-syzkaller-00261-g850925a8133c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:do_garbage_collect+0x5104/0x8210 fs/f2fs/gc.c:1829
Code: 03 00 00 4c 89 e7 e8 7b 85 00 00 84 c0 0f 84 ef 02 00 00 e8 6e 86 99 fd e9 fa 05 00 00 e8 64 86 99 fd 48 8b bc 24 08 02 00 00 <4c> 89 fe e8 54 98 00 00 44 8b 6c 24 28 e9 6e d9 ff ff 44 89 e1 80
RSP: 0018:ffffc9000c246880 EFLAGS: 00000293
RAX: ffffffff83fbe534 RBX: ffffea000168e200 RCX: ffff888032815a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000c247120
RBP: ffffc9000c246eb0 R08: ffffffff83fbe514 R09: 1ffffd40002d1c46
R10: dffffc0000000000 R11: fffff940002d1c47 R12: 000000000000001c
R13: 0000000000000004 R14: ffff88805bea5e80 R15: ffff88805bea57d0
FS: 00007f16a14a66c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055dd0bc9f008 CR3: 0000000028032000 CR4: 0000000000350ef0
Call Trace:
f2fs_gc+0xf90/0x2ff0 fs/f2fs/gc.c:1933
f2fs_balance_fs+0x5f8/0x7a0 fs/f2fs/segment.c:450
f2fs_map_blocks+0x44ec/0x4f10 fs/f2fs/data.c:1788
f2fs_expand_inode_data+0x622/0xbb0 fs/f2fs/file.c:1811
f2fs_fallocate+0x448/0x960 fs/f2fs/file.c:1914
vfs_fallocate+0x56b/0x6e0 fs/open.c:333
do_vfs_ioctl+0x2583/0x2e40 fs/ioctl.c:886
__do_sys_ioctl fs/ioctl.c:905 [inline]
__se_sys_ioctl+0x81/0x170 fs/ioctl.c:893
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f16a077e719
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f16a14a6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f16a0935f80 RCX: 00007f16a077e719
RDX: 00000000200003c0 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00007f16a07f132e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f16a0935f80 R15: 00007ffd5b2c9ea8