INFO: task kworker/u4:4:4203 blocked for more than 143 seconds.
Not tainted 5.15.175-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:4 state:D stack:20344 pid: 4203 ppid: 2 flags:0x00004000
Workqueue: writeback wb_workfn (flush-7:0)
Call Trace:
context_switch kernel/sched/core.c:5027 [inline]
__schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
schedule+0x11b/0x1f0 kernel/sched/core.c:6456
rwsem_down_write_slowpath+0xf0c/0x16a0 kernel/locking/rwsem.c:1165
f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:528
f2fs_write_inode+0x4be/0x660 fs/f2fs/inode.c:738
write_inode fs/fs-writeback.c:1495 [inline]
__writeback_single_inode+0x644/0xe30 fs/fs-writeback.c:1705
writeback_sb_inodes+0xbce/0x1a40 fs/fs-writeback.c:1930
__writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:2001
wb_writeback+0x465/0xc50 fs/fs-writeback.c:2106
wb_check_background_flush fs/fs-writeback.c:2172 [inline]
wb_do_writeback fs/fs-writeback.c:2260 [inline]
wb_workfn+0xd07/0x1130 fs/fs-writeback.c:2288
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Showing all locks held in the system:
1 lock held by khungtaskd/27:
#0: ffffffff8cb1fd20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3925:
#0: ffff88814cf4a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
#1: ffffc900025c62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
4 locks held by kworker/u4:4/4203:
#0: ffff8881445b4938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc90002edfd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
#2: ffff88807b8080e0 (&type->s_umount_key#52){.+.+}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418
#3: ffff88802312d1b0 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:528
6 locks held by syz.0.15/5194:
2 locks held by syz.0.154/5643:
2 locks held by syz.0.154/5644:
#0: ffff888060afe460 (sb_writers#3){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3044 [inline]
#0: ffff888060afe460 (sb_writers#3){.+.+}-{0:0}, at: vfs_fallocate+0x4bd/0x6b0 fs/open.c:307
#1: ffff88807cd32190 (&sb->s_type->i_mutex_key#8){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline]
#1: ffff88807cd32190 (&sb->s_type->i_mutex_key#8){+.+.}-{3:3}, at: shmem_fallocate+0x14c/0xfb0 mm/shmem.c:2674
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2d0 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: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: 5194 Comm: syz.0.15 Not tainted 5.15.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:unwind_next_frame+0x41b/0x1fa0 arch/x86/kernel/unwind_orc.c:461
Code: 0f b6 04 10 84 c0 0f 85 c5 14 00 00 c6 03 01 49 c7 c6 e0 96 a8 8a 49 8d 6e 04 49 8d 5e 05 49 89 ec 49 c1 ec 03 41 0f b6 04 14 <84> c0 0f 85 33 14 00 00 48 89 d8 48 c1 e8 03 0f b6 04 10 84 c0 0f
RSP: 0018:ffffc90000007688 EFLAGS: 00000a03
RAX: 0000000000000000 RBX: ffffffff8e84c375 RCX: ffffffff8e1adefc
RDX: dffffc0000000000 RSI: ffffffff8e84c370 RDI: ffffffff8e1adef8
RBP: ffffffff8e84c374 R08: 0000000000000001 R09: ffffc90000007830
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff1d0986e
R13: ffffffff816c8fb4 R14: ffffffff8e84c370 R15: ffffc90000007740
FS: 00007fd9861096c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efdf0e90d58 CR3: 00000000605e6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x80 mm/kasan/common.c:46
kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366
kasan_slab_free include/linux/kasan.h:230 [inline]
slab_free_hook mm/slub.c:1705 [inline]
slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731
slab_free mm/slub.c:3499 [inline]
kmem_cache_free+0x91/0x1f0 mm/slub.c:3515
rcu_do_batch kernel/rcu/tree.c:2523 [inline]
rcu_core+0xa15/0x1650 kernel/rcu/tree.c:2763
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
__do_softirq kernel/softirq.c:592 [inline]
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:console_trylock_spinning+0x36b/0x3f0 kernel/printk/printk.c:1909
Code: 0f 84 75 ff ff ff e8 14 16 1a 00 fb 31 db eb 48 e8 0a 16 1a 00 e8 55 80 d8 08 4d 85 ed 74 cd e8 fb 15 1a 00 fb bb 01 00 00 00 <48> c7 c7 e0 c5 9f 8c 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc90002f2e3c0 EFLAGS: 00000293
RAX: ffffffff81666ee5 RBX: 0000000000000001 RCX: ffff8880269b0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002f2e490 R08: ffffffff81666e9e R09: fffffbfff2131249
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920005e5c78
R13: 0000000000000200 R14: 0000000000000046 R15: dffffc0000000000
vprintk_emit+0xa6/0x150 kernel/printk/printk.c:2273
_printk+0xd1/0x120 kernel/printk/printk.c:2299
handle_bad_sector block/blk-core.c:655 [inline]
bio_check_eod block/blk-core.c:728 [inline]
submit_bio_checks+0x10b1/0x1940 block/blk-core.c:812
__submit_bio+0x5a1/0x850 block/blk-core.c:911
__submit_bio_noacct_mq block/blk-core.c:997 [inline]
submit_bio_noacct+0x955/0xb30 block/blk-core.c:1027
submit_bio+0x2dd/0x560 block/blk-core.c:1089
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:1504 [inline]
do_garbage_collect+0x4972/0x7540 fs/f2fs/gc.c:1671
f2fs_gc+0x9d2/0x1c30 fs/f2fs/gc.c:1765
f2fs_balance_fs+0x4e8/0x6a0 fs/f2fs/segment.c:529
f2fs_map_blocks+0x2d56/0x3720 fs/f2fs/data.c:1746
expand_inode_data+0x5dd/0xa40 fs/f2fs/file.c:1709
f2fs_fallocate+0x42d/0x910 fs/f2fs/file.c:1805
vfs_fallocate+0x54a/0x6b0 fs/open.c:308
do_vfs_ioctl+0x2317/0x2b70 fs/ioctl.c:853
__do_sys_ioctl fs/ioctl.c:872 [inline]
__se_sys_ioctl+0x81/0x160 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd986ea9ff9
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:00007fd986109038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd987062058 RCX: 00007fd986ea9ff9
RDX: 0000000020000140 RSI: 0000000040305828 RDI: 0000000000000005
RBP: 00007fd986f1c296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fd987062058 R15: 00007ffe4b727978