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:101 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4279, name: syz-executor preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 4 locks held by syz-executor/4279: #0: ffff8880276ec0e0 (&type->s_umount_key#63){+.+.}-{3:3}, at: deactivate_super+0xa0/0xd0 fs/super.c:362 #1: ffff88802efe9058 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0xd9/0x24e0 fs/gfs2/log.c:1043 #2: ffff88802efe8e80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffff88802efe8e80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #2: ffff88802efe8e80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x4e/0x80 fs/gfs2/log.c:814 #3: ffff88802efe9248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: signal_our_withdraw fs/gfs2/util.c:155 [inline] #3: ffff88802efe9248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: gfs2_withdraw+0x5d0/0x1780 fs/gfs2/util.c:354 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 4279 Comm: syz-executor Not tainted 6.1.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 __might_resched+0x48d/0x610 kernel/sched/core.c:9966 __wait_for_common kernel/sched/completion.c:101 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x8e/0x590 kernel/sched/completion.c:138 kthread_stop+0x197/0x650 kernel/kthread.c:711 signal_our_withdraw fs/gfs2/util.c:159 [inline] gfs2_withdraw+0x643/0x1780 fs/gfs2/util.c:354 gfs2_ail1_empty+0x7be/0x850 fs/gfs2/log.c:377 gfs2_flush_revokes+0x58/0x80 fs/gfs2/log.c:815 revoke_lo_before_commit+0x28/0x5f0 fs/gfs2/lops.c:869 lops_before_commit fs/gfs2/lops.h:40 [inline] gfs2_log_flush+0xb83/0x24e0 fs/gfs2/log.c:1102 gfs2_kill_sb+0x50/0xd0 fs/gfs2/ops_fstype.c:1729 deactivate_locked_super+0x93/0xf0 fs/super.c:332 cleanup_mnt+0x463/0x4f0 fs/namespace.c:1182 task_work_run+0x1ca/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fb3a838fcd7 Code: a8 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 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fffd249d418 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000064 RCX: 00007fb3a838fcd7 RDX: 0000000000000200 RSI: 0000000000000009 RDI: 00007fffd249e5c0 RBP: 00007fb3a8410b55 R08: 000055556ea02643 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 00007fffd249e5c0 R13: 00007fb3a8410b55 R14: 000055556e9e74a8 R15: 00007fffd249f690 BUG: scheduling while atomic: syz-executor/4279/0x00000002 4 locks held by syz-executor/4279: #0: ffff8880276ec0e0 (&type->s_umount_key#63){+.+.}-{3:3}, at: deactivate_super+0xa0/0xd0 fs/super.c:362 #1: ffff88802efe9058 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0xd9/0x24e0 fs/gfs2/log.c:1043 #2: ffff88802efe8e80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffff88802efe8e80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #2: ffff88802efe8e80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x4e/0x80 fs/gfs2/log.c:814 #3: ffff88802efe9248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: signal_our_withdraw fs/gfs2/util.c:155 [inline] #3: ffff88802efe9248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: gfs2_withdraw+0x5d0/0x1780 fs/gfs2/util.c:354 Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0