loop0: rw=1, sector=131324, nr_sectors = 4 limit=32768 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:1336 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5345, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 4 locks held by syz-executor.0/5345: #0: ffff88802b5c80e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:361 #1: ffff888018704b78 (&sdp->sd_quota_sync_mutex){+.+.}-{3:3}, at: gfs2_quota_sync+0x9f/0x820 fs/gfs2/quota.c:1302 #2: ffff888018705060 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0xec/0x2610 fs/gfs2/log.c:1043 #3: ffff888018704e88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] #3: ffff888018704e88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #3: ffff888018704e88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x53/0x90 fs/gfs2/log.c:814 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 5345 Comm: syz-executor.0 Not tainted 6.4.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10153 gfs2_glock_wait+0x56/0x2b0 fs/gfs2/glock.c:1336 gfs2_glock_nq_init fs/gfs2/glock.h:261 [inline] gfs2_freeze_lock+0x63/0xc0 fs/gfs2/util.c:107 signal_our_withdraw fs/gfs2/util.c:160 [inline] gfs2_withdraw+0x5ee/0x1550 fs/gfs2/util.c:351 gfs2_ail1_empty+0x7d0/0x860 fs/gfs2/log.c:377 gfs2_flush_revokes+0x5e/0x90 fs/gfs2/log.c:815 revoke_lo_before_commit+0x2c/0x5f0 fs/gfs2/lops.c:869 lops_before_commit fs/gfs2/lops.h:40 [inline] gfs2_log_flush+0xc77/0x2610 fs/gfs2/log.c:1102 do_sync+0xa30/0xc70 fs/gfs2/quota.c:975 gfs2_quota_sync+0x37d/0x820 fs/gfs2/quota.c:1318 gfs2_sync_fs+0x4d/0xb0 fs/gfs2/super.c:665 sync_filesystem+0xec/0x220 fs/sync.c:56 generic_shutdown_super+0x6f/0x340 fs/super.c:473 kill_block_super+0x84/0xf0 fs/super.c:1407 deactivate_locked_super+0xa4/0x110 fs/super.c:331 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1177 task_work_run+0x24a/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f753b88d537 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 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 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcbfd3b2b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f753b88d537 RDX: 00007ffcbfd3b389 RSI: 000000000000000a RDI: 00007ffcbfd3b380 RBP: 00007ffcbfd3b380 R08: 00000000ffffffff R09: 00007ffcbfd3b150 R10: 00005555560d9893 R11: 0000000000000246 R12: 00007f753b8e6b24 R13: 00007ffcbfd3c440 R14: 00005555560d9810 R15: 00007ffcbfd3c480 BUG: scheduling while atomic: syz-executor.0/5345/0x00000002 4 locks held by syz-executor.0/5345: #0: ffff88802b5c80e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:361 #1: ffff888018704b78 (&sdp->sd_quota_sync_mutex){+.+.}-{3:3}, at: gfs2_quota_sync+0x9f/0x820 fs/gfs2/quota.c:1302 #2: ffff888018705060 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0xec/0x2610 fs/gfs2/log.c:1043 #3: ffff888018704e88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] #3: ffff888018704e88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #3: ffff888018704e88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x53/0x90 fs/gfs2/log.c:814 Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0