INFO: task syz-executor.2:24333 blocked for more than 143 seconds.
Not tainted 6.6.0-syzkaller-15494-g6bc986ab839c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:24688 pid:24333 tgid:24332 ppid:15654 flags:0x00000006
Call Trace:
context_switch kernel/sched/core.c:5376 [inline]
__schedule+0xee2/0x59a0 kernel/sched/core.c:6688
__schedule_loop kernel/sched/core.c:6763 [inline]
schedule+0xe7/0x270 kernel/sched/core.c:6778
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835
rwsem_down_write_slowpath+0x53d/0x12a0 kernel/locking/rwsem.c:1178
__down_write_common kernel/locking/rwsem.c:1306 [inline]
__down_write kernel/locking/rwsem.c:1315 [inline]
down_write+0x1d3/0x200 kernel/locking/rwsem.c:1580
inode_lock include/linux/fs.h:802 [inline]
f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2172 [inline]
__f2fs_ioctl+0x1e1c/0x9cc0 fs/f2fs/file.c:4234
f2fs_ioctl+0x192/0x220 fs/f2fs/file.c:4322
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:871 [inline]
__se_sys_ioctl fs/ioctl.c:857 [inline]
__x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fd4f547cae9
RSP: 002b:00007fd4f3ffe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd4f559bf80 RCX: 00007fd4f547cae9
RDX: 0000000000008301 RSI: 000000000000f502 RDI: 0000000000000005
RBP: 00007fd4f54c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fd4f559bf80 R15: 00007ffe2780da08
Showing all locks held in the system:
3 locks held by kworker/0:0/8:
#0: ffff888013070d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc900000d7d80 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffff88802e24c240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1bb/0x26e0 drivers/net/netdevsim/fib.c:1489
1 lock held by khungtaskd/29:
#0: ffffffff8cfacfe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
#0: ffffffff8cfacfe0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
#0: ffffffff8cfacfe0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613
2 locks held by getty/4831:
#0: ffff88801fb770a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc6/0x1490 drivers/tty/n_tty.c:2201
3 locks held by kworker/1:6/5173:
#0: ffff888013070d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc900046d7d80 (fqdir_free_work){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffffffff8cfb8900 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x6c0 kernel/rcu/tree.c:4030
3 locks held by kworker/0:4/5175:
#0: ffff8880260c0538 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc90004707d80 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffffffff8eab7e28 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xcf/0x14b0 net/ipv6/addrconf.c:4137
3 locks held by kworker/1:0/8753:
#0: ffff8880260c0538 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc9000332fd80 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffffffff8eab7e28 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xcf/0x14b0 net/ipv6/addrconf.c:4137
2 locks held by kworker/0:5/11132:
#0: ffff888013072938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc90015c2fd80 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
4 locks held by kworker/u4:23/11677:
#0: ffff888015654d38 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc900049e7d80 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffffffff8eaa2ad0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9f/0xb20 net/core/net_namespace.c:576
#3: ffffffff8eab7e28 (rtnl_mutex){+.+.}-{3:3}, at: tc_action_net_exit include/net/act_api.h:172 [inline]
#3: ffffffff8eab7e28 (rtnl_mutex){+.+.}-{3:3}, at: gate_exit_net+0x24/0x130 net/sched/act_gate.c:658
4 locks held by kworker/u4:35/11749:
#0: ffff888140050538 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc90004c77d80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffff88801f0a60e0 (&type->s_umount_key#56){++++}-{3:3}, at: super_trylock_shared+0x1e/0xf0 fs/super.c:610
#3: ffff88801ef152a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2133 [inline]
#3: ffff88801ef152a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x553/0x750 fs/f2fs/segment.c:437
2 locks held by syz-executor.2/24333:
#0: ffff88801f0a6418 (sb_writers#25){.+.+}-{0:0}, at: f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2166 [inline]
#0: ffff88801f0a6418 (sb_writers#25){.+.+}-{0:0}, at: __f2fs_ioctl+0x1d95/0x9cc0 fs/f2fs/file.c:4234
#1: ffff888039f6f448 (&sb->s_type->i_mutex_key#34){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
#1: ffff888039f6f448 (&sb->s_type->i_mutex_key#34){+.+.}-{3:3}, at: f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2172 [inline]
#1: ffff888039f6f448 (&sb->s_type->i_mutex_key#34){+.+.}-{3:3}, at: __f2fs_ioctl+0x1e1c/0x9cc0 fs/f2fs/file.c:4234
7 locks held by syz-executor.2/24338:
3 locks held by syz-executor.0/26946:
#0: ffffffff8eab7e28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
#0: ffffffff8eab7e28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x372/0xe00 net/core/rtnetlink.c:6555
#1: ffff8880315d93e8 (&wg->device_update_lock){+.+.}-{3:3}, at: wg_open+0x203/0x4e0 drivers/net/wireguard/device.c:50
#2: ffffffff8cfb8a38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
#2: ffffffff8cfb8a38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x404/0x7e0 kernel/rcu/tree_exp.h:996
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.6.0-syzkaller-15494-g6bc986ab839c #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+0xd9/0x1b0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0xf87/0x1210 kernel/hung_task.c:379
kthread+0x33c/0x440 kernel/kthread.c:388
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 24338 Comm: syz-executor.2 Not tainted 6.6.0-syzkaller-15494-g6bc986ab839c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline]
RIP: 0010:write_comp_data+0x1e/0x80 kernel/kcov.c:236
Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 49 89 d2 49 89 f8 49 89 f1 65 48 8b 14 25 c0 bc 03 00 65 8b 05 ef 21 7b 7e a9 00 01 ff 00 <74> 0f f6 c4 01 74 59 8b 82 fc 15 00 00 85 c0 74 4f 8b 82 d8 15 00
RSP: 0018:ffffc90004b4e5e0 EFLAGS: 00000246
RAX: 0000000080000001 RBX: 0000000000000004 RCX: ffffffff813a7ce5
RDX: ffff88801eac8000 RSI: 0000000000000005 RDI: 0000000000000001
RBP: ffffffff8ac9d6e0 R08: 0000000000000001 R09: 0000000000000005
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000005
R13: 0000000000000001 R14: 0000000000000008 R15: ffffc90004b4e6cd
FS: 00007fd4f3fdd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa16d039440 CR3: 000000006650c000 CR4: 0000000000350ef0
Call Trace:
__sanitizer_cov_trace_switch+0x54/0x90 kernel/kcov.c:341
unwind_next_frame+0x6b5/0x2390 arch/x86/kernel/unwind_orc.c:515
arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:763 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
slab_alloc mm/slub.c:3486 [inline]
__kmem_cache_alloc_lru mm/slub.c:3493 [inline]
kmem_cache_alloc+0x15d/0x380 mm/slub.c:3502
mempool_alloc+0x176/0x390 mm/mempool.c:398
bio_alloc_bioset+0x47d/0x8b0 block/bio.c:543
f2fs_grab_read_bio+0x268/0x7d0 fs/f2fs/data.c:1116
f2fs_submit_page_read+0xaa/0x1d0 fs/f2fs/data.c:1161
f2fs_get_read_data_page+0x55e/0x9f0 fs/f2fs/data.c:1348
gc_data_segment fs/f2fs/gc.c:1598 [inline]
do_garbage_collect+0x35c5/0x3fa0 fs/f2fs/gc.c:1766
f2fs_gc+0x9f8/0x2140 fs/f2fs/gc.c:1869
f2fs_balance_fs+0x5c4/0x750 fs/f2fs/segment.c:439
f2fs_write_single_data_page+0x141b/0x1aa0 fs/f2fs/data.c:2970
f2fs_write_cache_pages+0xd65/0x20c0 fs/f2fs/data.c:3226
__f2fs_write_data_pages fs/f2fs/data.c:3381 [inline]
f2fs_write_data_pages+0x9b5/0xde0 fs/f2fs/data.c:3408
do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
filemap_fdatawrite_wbc mm/filemap.c:387 [inline]
filemap_fdatawrite_wbc+0x144/0x1b0 mm/filemap.c:377
__filemap_fdatawrite_range+0xba/0x100 mm/filemap.c:420
filemap_write_and_wait_range mm/filemap.c:675 [inline]
filemap_write_and_wait_range+0x9f/0x120 mm/filemap.c:666
f2fs_flush_buffered_write fs/f2fs/file.c:4631 [inline]
f2fs_dio_write_iter fs/f2fs/file.c:4738 [inline]
f2fs_file_write_iter+0x1e0f/0x2410 fs/f2fs/file.c:4800
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fd4f547cae9
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:00007fd4f3fdd0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd4f559c050 RCX: 00007fd4f547cae9
RDX: 00000000fffffdef RSI: 0000000020000000 RDI: 0000000000000007
RBP: 00007fd4f54c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fd4f559c050 R15: 00007ffe2780da08