gfs2: fsid=syz:syz.0: about to withdraw this file system BUG: sleeping function called from invalid context at fs/gfs2/glock.c:2081 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 13916, name: syz-executor.1 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 13916 Comm: syz-executor.1 Not tainted 6.5.0-syzkaller-09276-g99d99825fc07 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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:10187 glock_hash_walk+0x13b/0x1b0 fs/gfs2/glock.c:2081 gfs2_flush_delete_work+0x1c/0x50 fs/gfs2/glock.c:2108 gfs2_make_fs_ro+0x109/0x680 fs/gfs2/super.c:550 signal_our_withdraw fs/gfs2/util.c:153 [inline] gfs2_withdraw+0x48a/0x11e0 fs/gfs2/util.c:334 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:868 lops_before_commit fs/gfs2/lops.h:40 [inline] gfs2_log_flush+0xc93/0x25f0 fs/gfs2/log.c:1101 gfs2_trans_end+0x39f/0x560 fs/gfs2/trans.c:158 gfs2_iomap_begin_write fs/gfs2/bmap.c:1074 [inline] gfs2_iomap_begin+0xd3f/0x1360 fs/gfs2/bmap.c:1126 iomap_iter+0x677/0xec0 fs/iomap/iter.c:91 iomap_file_buffered_write+0xde7/0x1020 fs/iomap/buffered-io.c:967 gfs2_file_buffered_write+0x4cb/0x850 fs/gfs2/file.c:1059 gfs2_file_write_iter+0x46a/0xe60 fs/gfs2/file.c:1157 call_write_iter include/linux/fs.h:1985 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x782/0xaf0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc57d87cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc57e5630c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc57d99bf80 RCX: 00007fc57d87cae9 RDX: 000000000208e24b RSI: 0000000020000080 RDI: 0000000000000005 RBP: 00007fc57d8c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc57d99bf80 R15: 00007ffd11cbb2c8 BUG: scheduling while atomic: syz-executor.1/13916/0x00000002 INFO: lockdep is turned off. Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0