INFO: task syz-executor.4:5998 blocked for more than 145 seconds. Not tainted 6.2.0-rc8-syzkaller-00021-ge1c04510f521 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:21184 pid:5998 ppid:5086 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5293 [inline] __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606 schedule+0xde/0x1b0 kernel/sched/core.c:6682 wb_wait_for_completion+0x182/0x240 fs/fs-writeback.c:192 __writeback_inodes_sb_nr+0x1d7/0x280 fs/fs-writeback.c:2639 sync_filesystem.part.0+0x1f/0x1d0 fs/sync.c:54 sync_filesystem+0x8f/0xc0 fs/sync.c:43 generic_shutdown_super+0x74/0x410 fs/super.c:474 kill_block_super+0x9b/0xf0 fs/super.c:1386 kill_f2fs_super+0x2af/0x3c0 fs/f2fs/super.c:4640 deactivate_locked_super+0x98/0x160 fs/super.c:332 deactivate_super+0xb1/0xd0 fs/super.c:363 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291 task_work_run+0x16f/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xaa8/0x2950 kernel/exit.c:867 do_group_exit+0xd4/0x2a0 kernel/exit.c:1012 get_signal+0x21b7/0x2440 kernel/signal.c:2859 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:203 irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309 exc_page_fault+0xc0/0x170 arch/x86/mm/fault.c:1578 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x0 RSP: 002b:00000000200004c8 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fa061babf80 RCX: 00007fa061a8c0f9 RDX: 0000000020000280 RSI: 00000000200004c0 RDI: 0000000000100000 RBP: 00007fa061ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000580 R11: 0000000000000206 R12: 0000000000000000 R13: 00007ffea30e277f R14: 00007fa06274c300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c791750 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c791450 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8c7922a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x57/0x264 kernel/locking/lockdep.c:6494 3 locks held by kworker/u4:2/41: 2 locks held by kworker/1:3/4728: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc9000364fda8 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 2 locks held by getty/4751: #0: ffff88802728a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 1 lock held by syz-executor.4/5998: #0: ffff888078f800e0 (&type->s_umount_key#78){++++}-{3:3}, at: deactivate_super+0xa9/0xd0 fs/super.c:362 4 locks held by kworker/u4:18/6256: 1 lock held by syz-executor.2/8290: #0: ffff888072f44410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #0: ffff888072f44410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:649 2 locks held by syz-executor.4/8294: #0: ffff888074ebac10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #0: ffff888074ebac10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:649 #1: ffffffff8c79cf78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #1: ffffffff8c79cf78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x24f/0x780 kernel/rcu/tree_exp.h:946 1 lock held by syz-executor.0/8299: #0: ffff888037392c10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #0: ffff888037392c10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:649 2 locks held by syz-executor.3/8301: #0: ffff888074cb3210 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #0: ffff888074cb3210 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:649 #1: ffffffff8c79cf78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #1: ffffffff8c79cf78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x24f/0x780 kernel/rcu/tree_exp.h:946 1 lock held by syz-executor.1/8303: #0: ffff8880500c2c10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #0: ffff8880500c2c10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:649 2 locks held by syz-executor.5/8305: #0: ffff8880500cc410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #0: ffff8880500cc410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:649 #1: ffff88807a6c8130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1725 [inline] #1: ffff88807a6c8130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_release+0x544/0xd00 net/packet/af_packet.c:3144 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc8-syzkaller-00021-ge1c04510f521 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x333/0x3c0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xc75/0xfc0 kernel/hung_task.c:377 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 6256 Comm: kworker/u4:18 Not tainted 6.2.0-rc8-syzkaller-00021-ge1c04510f521 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Workqueue: writeback wb_workfn (flush-7:4) RIP: 0010:__might_sleep+0x0/0x160 kernel/sched/core.c:9958 Code: ff ff 48 c7 c7 00 f2 40 8c e8 fc 79 7a 00 e9 87 fe ff ff e8 d2 79 7a 00 e9 ec fe ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 41 54 41 89 f4 55 48 89 RSP: 0018:ffffc90016227280 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff888051ade450 RCX: 0000000000000000 RDX: ffff88801f61ba80 RSI: 00000000000005e4 RDI: ffffffff8a4c41e0 RBP: ffff888051ade450 R08: 0000000000000004 R09: 0000000000000200 R10: 0000000000000001 R11: 0000000000000000 R12: 1ffff92002c44e52 R13: dffffc0000000000 R14: dffffc0000000000 R15: 000000000000000e FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30723000 CR3: 00000000594b8000 CR4: 0000000000350ee0 Call Trace: down_read+0x75/0x450 kernel/locking/rwsem.c:1508 check_valid_map fs/f2fs/gc.c:960 [inline] gc_data_segment fs/f2fs/gc.c:1514 [inline] do_garbage_collect+0x1b7d/0x3e50 fs/f2fs/gc.c:1743 f2fs_gc+0x890/0x20a0 fs/f2fs/gc.c:1841 f2fs_balance_fs+0x548/0x6b0 fs/f2fs/segment.c:422 f2fs_write_inode+0x582/0xe20 fs/f2fs/inode.c:759 write_inode fs/fs-writeback.c:1451 [inline] __writeback_single_inode+0xcfc/0x1440 fs/fs-writeback.c:1663 writeback_sb_inodes+0x54d/0xf90 fs/fs-writeback.c:1889 wb_writeback+0x2c5/0xd70 fs/fs-writeback.c:2063 wb_do_writeback fs/fs-writeback.c:2206 [inline] wb_workfn+0x2e0/0x12f0 fs/fs-writeback.c:2246 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308