INFO: task syz-executor.2:19145 blocked for more than 143 seconds.
Not tainted 6.2.0-syzkaller-13413-g0a3f9a6b0265 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:22424 pid:19145 ppid:5110 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5304 [inline]
__schedule+0x17d8/0x4990 kernel/sched/core.c:6622
schedule+0xc3/0x180 kernel/sched/core.c:6698
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757
rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
inode_lock include/linux/fs.h:758 [inline]
f2fs_file_write_iter+0x29b/0x2680 fs/f2fs/file.c:4681
do_iter_write+0x6ea/0xc50 fs/read_write.c:861
iter_file_splice_write+0x843/0xfe0 fs/splice.c:778
do_splice_from fs/splice.c:856 [inline]
direct_splice_actor+0xe7/0x1c0 fs/splice.c:1023
splice_direct_to_actor+0x4c4/0xbd0 fs/splice.c:978
do_splice_direct+0x283/0x3d0 fs/splice.c:1066
do_sendfile+0x620/0xff0 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1309
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa6ad48c0f9
RSP: 002b:00007fa6ae183168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fa6ad5abf80 RCX: 00007fa6ad48c0f9
RDX: 0000000000000000 RSI: 000000000000000b RDI: 000000000000000a
RBP: 00007fa6ad4e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 000100000020100f R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe0007a15f R14: 00007fa6ae183300 R15: 0000000000022000
INFO: task syz-executor.2:19200 blocked for more than 144 seconds.
Not tainted 6.2.0-syzkaller-13413-g0a3f9a6b0265 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:22232 pid:19200 ppid:5110 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5304 [inline]
__schedule+0x17d8/0x4990 kernel/sched/core.c:6622
schedule+0xc3/0x180 kernel/sched/core.c:6698
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757
rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
f2fs_down_write fs/f2fs/f2fs.h:2207 [inline]
f2fs_balance_fs+0x51a/0x6f0 fs/f2fs/segment.c:427
f2fs_write_single_data_page+0x119d/0x20f0 fs/f2fs/data.c:2897
f2fs_write_cache_pages fs/f2fs/data.c:3144 [inline]
__f2fs_write_data_pages fs/f2fs/data.c:3295 [inline]
f2fs_write_data_pages+0x1fac/0x35e0 fs/f2fs/data.c:3322
do_writepages+0x3a6/0x670 mm/page-writeback.c:2551
filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:390
__filemap_fdatawrite_range mm/filemap.c:423 [inline]
file_write_and_wait_range+0x20f/0x300 mm/filemap.c:781
f2fs_do_sync_file+0x7cd/0x1df0 fs/f2fs/file.c:273
generic_write_sync include/linux/fs.h:2452 [inline]
f2fs_file_write_iter+0x7e4/0x2680 fs/f2fs/file.c:4727
do_iter_write+0x6ea/0xc50 fs/read_write.c:861
iter_file_splice_write+0x843/0xfe0 fs/splice.c:778
do_splice_from fs/splice.c:856 [inline]
direct_splice_actor+0xe7/0x1c0 fs/splice.c:1023
splice_direct_to_actor+0x4c4/0xbd0 fs/splice.c:978
do_splice_direct+0x283/0x3d0 fs/splice.c:1066
do_sendfile+0x620/0xff0 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1309
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa6ad48c0f9
RSP: 002b:00007fa6ae162168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fa6ad5ac050 RCX: 00007fa6ad48c0f9
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000007
RBP: 00007fa6ad4e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 000100000020100f R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe0007a15f R14: 00007fa6ae162300 R15: 0000000000022000
Showing all locks held in the system:
4 locks held by kworker/u4:1/11:
#0: ffff888144ed9138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
#1: ffffc90000107d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
#2: ffff888038cbe0e0 (&type->s_umount_key#49){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414
#3: ffff88801e5cd2a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2207 [inline]
#3: ffff88801e5cd2a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x51a/0x6f0 fs/f2fs/segment.c:427
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8d127a70 (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: ffffffff8d128270 (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: ffffffff8d1278a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by kworker/0:2/897:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
#1: ffffc90004a1fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
2 locks held by getty/4756:
#0: ffff88814a4fd098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177
3 locks held by syz-executor.1/5102:
#0: ffff88801f09c0e0 (&type->s_umount_key#49){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:361
#1: ffffffff8cfc4bd0 (cpu_hotplug_lock){++++}-{0:0}, at: kmem_cache_destroy+0x30/0x160 mm/slab_common.c:488
#2: ffffffff8d1ed5b8 (slab_mutex){+.+.}-{3:3}, at: kmem_cache_destroy+0x3e/0x160 mm/slab_common.c:489
1 lock held by syz-executor.0/5104:
1 lock held by syz-executor.5/5111:
3 locks held by syz-executor.4/5112:
2 locks held by kworker/0:13/5511:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
#1: ffffc9000590fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
3 locks held by kworker/0:17/6751:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
#1: ffffc90016c4fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
#2: ffffffff8d12cf78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline]
#2: ffffffff8d12cf78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:989
3 locks held by kworker/0:1/15291:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
#1: ffffc90004c7fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
#2: ffffffff8d12cf78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
#2: ffffffff8d12cf78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:989
2 locks held by kworker/1:1/16252:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
#1: ffffc9001600fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
2 locks held by syz-executor.2/19145:
#0: ffff888038cbe460 (sb_writers#14){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1254
#1: ffff88803d6d3fa8 (&sb->s_type->i_mutex_key#21){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
#1: ffff88803d6d3fa8 (&sb->s_type->i_mutex_key#21){+.+.}-{3:3}, at: f2fs_file_write_iter+0x29b/0x2680 fs/f2fs/file.c:4681
2 locks held by syz-executor.2/19200:
#0: ffff888038cbe460 (sb_writers#14){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1254
#1: ffff88801e5cd2a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2207 [inline]
#1: ffff88801e5cd2a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x51a/0x6f0 fs/f2fs/segment.c:427
5 locks held by syz-executor.2/19201:
1 lock held by syz-executor.1/21051:
2 locks held by syz-executor.0/21053:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-syzkaller-13413-g0a3f9a6b0265 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x4e5/0x560 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x1b4/0x410 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0x1024/0x1070 kernel/hung_task.c:379
kthread+0x270/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 21029 Comm: syz-executor.5 Not tainted 6.2.0-syzkaller-13413-g0a3f9a6b0265 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
RIP: 0010:PageHeadHuge+0xdc/0x1d0 mm/hugetlb.c:2064
Code: f0 48 c1 e8 03 42 0f b6 04 38 84 c0 75 25 41 0f b6 36 45 31 e4 83 fe 02 41 0f 94 c4 bf 02 00 00 00 e8 f8 02 b0 ff 44 89 e0 5b <41> 5c 41 5d 41 5e 41 5f c3 44 89 f1 80 e1 07 38 c1 7c d1 4c 89 f7
RSP: 0018:ffffc9000b50f9f8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc9000b5b1000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc9000b50fad0 R08: ffffffff81dcbcfb R09: fffff9400044fb69
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 00fff00000080013 R14: ffffea000227db40 R15: dffffc0000000000
FS: 00007f2be2fb0700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0fed347000 CR3: 000000001cb00000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
folio_test_hugetlb include/linux/page-flags.h:830 [inline]
folio_file_page include/linux/pagemap.h:702 [inline]
shmem_write_begin+0x1b7/0x4f0 mm/shmem.c:2566
generic_perform_write+0x300/0x5e0 mm/filemap.c:3926
__generic_file_write_iter+0x17a/0x400 mm/filemap.c:4054
generic_file_write_iter+0xaf/0x310 mm/filemap.c:4086
call_write_iter include/linux/fs.h:1851 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x7b2/0xbb0 fs/read_write.c:584
ksys_write+0x1a0/0x2c0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f2be223de7f
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 cc fd ff ff 48
RSP: 002b:00007f2be2faff10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f2be223de7f
RDX: 0000000001ee4e54 RSI: 00007f2bd89ff000 RDI: 0000000000000003
RBP: 00007f2bd89ff000 R08: 0000000000000000 R09: 0000000000007e5e
R10: 0000000001ee4e54 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f2be2faffdc R14: 00007f2be2faffe0 R15: 0000000020000102