kworker/u4:1: attempt to access beyond end of device loop4: rw=1, sector=3280942697285464, nr_sectors = 8 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:2081 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 11287, name: kworker/u4:1 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 11287 Comm: kworker/u4:1 Not tainted 6.5.0-syzkaller-11329-g708283abf896 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: writeback wb_workfn (flush-7:4) 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_write_inode+0x20e/0x3b0 fs/gfs2/super.c:453 write_inode fs/fs-writeback.c:1456 [inline] __writeback_single_inode+0x69b/0xfa0 fs/fs-writeback.c:1668 writeback_sb_inodes+0x8e3/0x11d0 fs/fs-writeback.c:1894 wb_writeback+0x44d/0xc60 fs/fs-writeback.c:2070 wb_do_writeback fs/fs-writeback.c:2217 [inline] wb_workfn+0x400/0xff0 fs/fs-writeback.c:2257 process_one_work+0x781/0x1130 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0xabf/0x1060 kernel/workqueue.c:2784 kthread+0x2b8/0x350 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 BUG: scheduling while atomic: kworker/u4:1/11287/0x00000002 INFO: lockdep is turned off. Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0