gfs2: fsid=syz:syz.0: Error 10 writing to journal, jid=0 gfs2: fsid=syz:syz.0: fatal: I/O error(s) gfs2: fsid=syz:syz.0: about to withdraw this file system BUG: sleeping function called from invalid context at kernel/sched/completion.c:111 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5388, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 5388 Comm: syz-executor.0 Not tainted 6.5.0-rc3-next-20230728-syzkaller-05284-gd7b3af5a77e8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 __might_resched+0x3c3/0x5e0 kernel/sched/core.c:10203 __wait_for_common+0x91/0x5f0 kernel/sched/completion.c:111 kthread_stop+0x18e/0x5f0 kernel/kthread.c:710 gfs2_make_fs_ro+0x164/0x740 fs/gfs2/super.c:555 signal_our_withdraw fs/gfs2/util.c:153 [inline] gfs2_withdraw+0xc2e/0x10c0 fs/gfs2/util.c:334 gfs2_ail1_empty+0x8cc/0xab0 fs/gfs2/log.c:377 gfs2_flush_revokes+0x6b/0x90 fs/gfs2/log.c:815 revoke_lo_before_commit+0x22/0x640 fs/gfs2/lops.c:868 lops_before_commit fs/gfs2/lops.h:40 [inline] gfs2_log_flush+0x105e/0x27f0 fs/gfs2/log.c:1101 do_sync+0x5fa/0xc90 fs/gfs2/quota.c:977 gfs2_quota_sync+0x2a0/0x5f0 fs/gfs2/quota.c:1320 gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:680 sync_filesystem fs/sync.c:56 [inline] sync_filesystem+0x109/0x280 fs/sync.c:30 generic_shutdown_super+0x74/0x480 fs/super.c:472 kill_block_super+0x3b/0xc0 fs/super.c:1416 gfs2_kill_sb+0x361/0x410 fs/gfs2/ops_fstype.c:1795 deactivate_locked_super+0x9a/0x170 fs/super.c:330 deactivate_super+0xde/0x100 fs/super.c:361 cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254 task_work_run+0x14d/0x240 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f311fc7dc87 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:00007fffb001c468 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f311fc7dc87 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fffb001c520 RBP: 00007fffb001c520 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffb001d5e0 R13: 00007f311fcd7c5a R14: 0000000000010a4e R15: 0000000000000001 BUG: scheduling while atomic: syz-executor.0/5388/0x00000002 INFO: lockdep is turned off. Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0