INFO: task syz.2.608:6172 blocked for more than 143 seconds.
Not tainted 5.15.184-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.608 state:D stack:23392 pid: 6172 ppid: 4168 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5030 [inline]
__schedule+0x11b8/0x43b0 kernel/sched/core.c:6376
schedule+0x11b/0x1e0 kernel/sched/core.c:6459
io_schedule+0x7c/0xd0 kernel/sched/core.c:8484
f2fs_balance_fs+0x436/0x660 fs/f2fs/segment.c:525
f2fs_map_blocks+0x196a/0x3310 fs/f2fs/data.c:1700
expand_inode_data+0x4a0/0x6e0 fs/f2fs/file.c:1716
f2fs_fallocate+0x423/0x8c0 fs/f2fs/file.c:1818
vfs_fallocate+0x587/0x6f0 fs/open.c:308
ioctl_preallocate fs/ioctl.c:294 [inline]
file_ioctl fs/ioctl.c:-1 [inline]
do_vfs_ioctl+0x1b70/0x1de0 fs/ioctl.c:853
__do_sys_ioctl fs/ioctl.c:872 [inline]
__se_sys_ioctl+0x83/0x170 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fb529848969
RSP: 002b:00007fb5276b0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb529a6ffa0 RCX: 00007fb529848969
RDX: 00002000000000c0 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00007fb5298caab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb529a6ffa0 R15: 00007ffef0dbfe68
Showing all locks held in the system:
2 locks held by kworker/u4:0/9:
#0: ffff888016879138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1
#1: ffffc90000ce7d00 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x7a3/0x1000 kernel/workqueue.c:2285
1 lock held by khungtaskd/27:
#0: ffffffff8c11c060 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
3 locks held by kworker/u4:2/154:
#0: ffff8880169cd938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1
#1: ffffc90002017d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7a3/0x1000 kernel/workqueue.c:2285
#2: ffffffff8c1209f0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0xa1/0x4b0 kernel/rcu/tree.c:4039
2 locks held by getty/3943:
#0: ffff88802b35a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
#1: ffffc900026362e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x5ba/0x1a30 drivers/tty/n_tty.c:2158
3 locks held by kworker/u4:6/4260:
#0: ffff888142598938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1
#1: ffffc900032bfd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7a3/0x1000 kernel/workqueue.c:2285
#2: ffff88805d9520e0 (&type->s_umount_key#73){++++}-{3:3}, at: trylock_super+0x1c/0xf0 fs/super.c:418
3 locks held by kworker/u4:15/5911:
3 locks held by syz.2.608/6172:
#0: ffff88805d952460 (sb_writers#25){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3042 [inline]
#0: ffff88805d952460 (sb_writers#25){.+.+}-{0:0}, at: vfs_fallocate+0x4f4/0x6f0 fs/open.c:307
#1: ffff88805fba1dd0 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline]
#1: ffff88805fba1dd0 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: f2fs_fallocate+0x20a/0x8c0 fs/f2fs/file.c:1783
#2: ffff88807a48d2c8 (&sbi->pin_sem){+.+.}-{3:3}, at: expand_inode_data+0x45a/0x6e0 fs/f2fs/file.c:1709
2 locks held by f2fs_gc-7:2/6209:
3 locks held by kworker/0:15/8191:
#0: ffff888016870938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1
#1: ffffc90003a8fd00 (fqdir_free_work){+.+.}-{0:0}, at: process_one_work+0x7a3/0x1000 kernel/workqueue.c:2285
#2: ffffffff8c1209f0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0xa1/0x4b0 kernel/rcu/tree.c:4039
6 locks held by kworker/0:16/8192:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.184-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
nmi_cpu_backtrace+0x397/0x3d0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x163/0x280 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
watchdog+0xe0f/0xe50 kernel/hung_task.c:369
kthread+0x436/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6209 Comm: f2fs_gc-7:2 Not tainted 5.15.184-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline]
RIP: 0010:arch_atomic_long_read include/linux/atomic/atomic-long.h:29 [inline]
RIP: 0010:atomic_long_read include/linux/atomic/atomic-instrumented.h:1184 [inline]
RIP: 0010:is_rwsem_reader_owned kernel/locking/rwsem.c:193 [inline]
RIP: 0010:__up_read+0x118/0x660 kernel/locking/rwsem.c:1323
Code: a5 0d 0c 00 75 7e 48 89 df be 08 00 00 00 e8 af ff 61 00 49 89 dd 49 c1 ed 03 48 b8 00 00 00 00 00 fc ff df 41 80 7c 05 00 00 <74> 08 48 89 df e8 fe fd 61 00 48 8b 03 a8 01 75 37 4c 8d 7b 08 4c
RSP: 0018:ffffc9000334f4a0 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffff888060195050 RCX: ffffffff815b38f1
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888060195050
RBP: ffffc9000334f550 R08: dffffc0000000000 R09: ffffed100c032a0b
R10: ffffed100c032a0b R11: 1ffff1100c032a0a R12: ffff8880601950b8
R13: 1ffff1100c032a0a R14: 1ffff1100c032a17 R15: 1ffff1100ae02f95
FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6189cceab8 CR3: 0000000072559000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
check_valid_map fs/f2fs/gc.c:884 [inline]
gc_data_segment fs/f2fs/gc.c:1451 [inline]
do_garbage_collect+0x1d13/0x60a0 fs/f2fs/gc.c:1671
f2fs_gc+0x8a9/0x1900 fs/f2fs/gc.c:1765
gc_thread_func+0x14a0/0x26c0 fs/f2fs/gc.c:129
kthread+0x436/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287