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 fs/gfs2/glock.c:1281 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4194, name: syz-executor 3 locks held by syz-executor/4194: #0: ffff88807bd8c0e0 (&type->s_umount_key#58){+.+.}-{3:3}, at: deactivate_super+0xa0/0xd0 fs/super.c:365 #1: ffff88807aa990a8 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0x23/0x40 fs/gfs2/log.c:1173 #2: ffff88807aa98ed0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:364 [inline] #2: ffff88807aa98ed0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #2: ffff88807aa98ed0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x4e/0x80 fs/gfs2/log.c:807 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 4194 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 ___might_sleep+0x493/0x610 kernel/sched/core.c:9658 gfs2_glock_wait+0x53/0x1c0 fs/gfs2/glock.c:1281 gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline] gfs2_freeze_lock+0x5a/0xc0 fs/gfs2/util.c:107 signal_our_withdraw fs/gfs2/util.c:160 [inline] gfs2_withdraw+0x615/0x14e0 fs/gfs2/util.c:335 gfs2_ail1_empty+0x7d4/0x860 fs/gfs2/log.c:369 gfs2_flush_revokes+0x58/0x80 fs/gfs2/log.c:808 revoke_lo_before_commit+0x28/0x5e0 fs/gfs2/lops.c:872 lops_before_commit fs/gfs2/lops.h:40 [inline] __gfs2_log_flush+0xc5c/0x25f0 fs/gfs2/log.c:1095 gfs2_log_flush+0x30/0x40 fs/gfs2/log.c:1174 gfs2_kill_sb+0x50/0xd0 fs/gfs2/ops_fstype.c:1734 deactivate_locked_super+0x93/0xf0 fs/super.c:335 cleanup_mnt+0x426/0x4d0 fs/namespace.c:1148 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f71053d0097 Code: a2 c7 05 5c 06 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 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 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff148c41c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f71054642ca RCX: 00007f71053d0097 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff148c4280 RBP: 00007fff148c4280 R08: 00007fff148c5280 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff148c5310 R13: 00007f71054642ca R14: 000000000000fce7 R15: 00007fff148c5350 ============================= [ BUG: Invalid wait context ] syzkaller #0 Tainted: G W ----------------------------- syz-executor/4194 is trying to lock: ffff88801bff2888 (&wq->mutex){+.+.}-{3:3}, at: flush_workqueue+0x18e/0x1390 kernel/workqueue.c:2833 other info that might help us debug this: context-{4:4} 3 locks held by syz-executor/4194: #0: ffff88807bd8c0e0 (&type->s_umount_key #58){+.+.}-{3:3}, at: deactivate_super+0xa0/0xd0 fs/super.c:365 #1: ffff88807aa990a8 (&sdp->sd_log_flush_lock){++++}-{3:3} , at: gfs2_log_flush+0x23/0x40 fs/gfs2/log.c:1173 #2: ffff88807aa98ed0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:364 [inline] #2: ffff88807aa98ed0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #2: ffff88807aa98ed0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x4e/0x80 fs/gfs2/log.c:807 stack backtrace: CPU: 0 PID: 4194 Comm: syz-executor Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_lock_invalid_wait_context kernel/locking/lockdep.c:4664 [inline] check_wait_context kernel/locking/lockdep.c:4725 [inline] __lock_acquire+0x1bb7/0x7b50 kernel/locking/lockdep.c:4962 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623 __mutex_lock_common+0x1e5/0x2400 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743 flush_workqueue+0x18e/0x1390 kernel/workqueue.c:2833 gfs2_make_fs_ro+0xd7/0x620 fs/gfs2/super.c:533 signal_our_withdraw fs/gfs2/util.c:166 [inline] gfs2_withdraw+0x660/0x14e0 fs/gfs2/util.c:335 gfs2_ail1_empty+0x7d4/0x860 fs/gfs2/log.c:369 gfs2_flush_revokes+0x58/0x80 fs/gfs2/log.c:808 revoke_lo_before_commit+0x28/0x5e0 fs/gfs2/lops.c:872 lops_before_commit fs/gfs2/lops.h:40 [inline] __gfs2_log_flush+0xc5c/0x25f0 fs/gfs2/log.c:1095 gfs2_log_flush+0x30/0x40 fs/gfs2/log.c:1174 gfs2_kill_sb+0x50/0xd0 fs/gfs2/ops_fstype.c:1734 deactivate_locked_super+0x93/0xf0 fs/super.c:335 cleanup_mnt+0x426/0x4d0 fs/namespace.c:1148 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f71053d0097 Code: a2 c7 05 5c 06 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 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 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff148c41c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f71054642ca RCX: 00007f71053d0097 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff148c4280 RBP: 00007fff148c4280 R08: 00007fff148c5280 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff148c5310 R13: 00007f71054642ca R14: 000000000000fce7 R15: 00007fff148c5350 BUG: scheduling while atomic: syz-executor/4194/0x00000002 INFO: lockdep is turned off. Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0