BUG: scheduling while atomic: syz-executor.2/3805/0x00000002 Modules linked in: Preemption disabled at: [] spin_lock include/linux/spinlock.h:350 [inline] [] f2fs_destroy_node_manager+0x31c/0xef0 fs/f2fs/node.c:3337 CPU: 1 PID: 3805 Comm: syz-executor.2 Not tainted 6.1.75-syzkaller-00002-gcf685d2b0273 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5964 schedule_debug kernel/sched/core.c:5991 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6626 schedule+0xc3/0x180 kernel/sched/core.c:6809 schedule_timeout+0xa9/0x380 kernel/time/timer.c:1917 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common+0x39a/0x640 kernel/sched/completion.c:117 wait_for_completion+0x18/0x20 kernel/sched/completion.c:138 kthread_stop+0x118/0x420 kernel/kthread.c:721 f2fs_destroy_flush_cmd_control fs/f2fs/segment.c:698 [inline] f2fs_destroy_segment_manager+0xba/0xe70 fs/f2fs/segment.c:5327 f2fs_put_super+0x6bc/0xce0 fs/f2fs/super.c:1660 generic_shutdown_super+0x14f/0x370 fs/super.c:503 kill_block_super+0x7e/0xe0 fs/super.c:1461 kill_f2fs_super+0x2f9/0x3c0 fs/f2fs/super.c:4750 deactivate_locked_super+0xad/0x110 fs/super.c:334 deactivate_super+0xbe/0xf0 fs/super.c:365 cleanup_mnt+0x485/0x510 fs/namespace.c:1186 __cleanup_mnt+0x19/0x20 fs/namespace.c:1193 task_work_run+0x24d/0x2e0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x94/0xa0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5a5aa7f097 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff56432e38 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f5a5aa7f097 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff56432ef0 RBP: 00007fff56432ef0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff56433fb0 R13: 00007f5a5aac9336 R14: 000000000007cd20 R15: 0000000000000003