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/util.c:159 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 7181, name: syz.4.217 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 5 locks held by syz.4.217/7181: #0: ffff88802461e418 (sb_writers#26){.+.+}-{0:0}, at: do_sendfile+0x5b9/0xf70 fs/read_write.c:1253 #1: ffff88805892d8b8 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] #1: ffff88805892d8b8 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: gfs2_file_write_iter+0x304/0xe10 fs/gfs2/file.c:1115 #2: ffff888023aed060 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0x104/0x24b0 fs/gfs2/log.c:1042 #3: ffff888023aece88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #3: ffff888023aece88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #3: ffff888023aece88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x52/0x80 fs/gfs2/log.c:814 #4: ffff888023aed248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: signal_our_withdraw fs/gfs2/util.c:152 [inline] #4: ffff888023aed248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: gfs2_withdraw+0x413/0x14b0 fs/gfs2/util.c:342 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 7181 Comm: syz.4.217 Not tainted 6.6.101-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 __might_resched+0x491/0x610 kernel/sched/core.c:10209 signal_our_withdraw fs/gfs2/util.c:157 [inline] gfs2_withdraw+0x461/0x14b0 fs/gfs2/util.c:342 gfs2_ail1_empty+0x7be/0x850 fs/gfs2/log.c:377 gfs2_flush_revokes+0x5c/0x80 fs/gfs2/log.c:815 revoke_lo_before_commit+0x2c/0x5f0 fs/gfs2/lops.c:867 lops_before_commit fs/gfs2/lops.h:42 [inline] gfs2_log_flush+0xb84/0x24b0 fs/gfs2/log.c:1102 gfs2_write_inode+0x23f/0x3d0 fs/gfs2/super.c:457 write_inode fs/fs-writeback.c:1473 [inline] __writeback_single_inode+0x705/0xee0 fs/fs-writeback.c:1690 writeback_single_inode+0x211/0x720 fs/fs-writeback.c:1746 sync_inode_metadata+0xba/0x110 fs/fs-writeback.c:2811 gfs2_fsync+0x1b6/0x350 fs/gfs2/file.c:762 generic_write_sync+0x18d/0x200 include/linux/fs.h:2651 gfs2_file_write_iter+0xb97/0xe10 fs/gfs2/file.c:1151 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x79a/0xc70 fs/read_write.c:860 iter_file_splice_write+0x66f/0xc50 fs/splice.c:736 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0xe8/0x130 fs/splice.c:1142 splice_direct_to_actor+0x2f0/0x870 fs/splice.c:1088 do_splice_direct+0x1b7/0x2c0 fs/splice.c:1194 do_sendfile+0x5dc/0xf70 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x13f/0x190 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa9f198ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa9f2725038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fa9f1bb6090 RCX: 00007fa9f198ebe9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000007 RBP: 00007fa9f1a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000080000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa9f1bb6128 R14: 00007fa9f1bb6090 R15: 00007ffd0f0b5458 BUG: scheduling while atomic: syz.4.217/7181/0x00000002 5 locks held by syz.4.217/7181: #0: ffff88802461e418 (sb_writers#26){.+.+}-{0:0}, at: do_sendfile+0x5b9/0xf70 fs/read_write.c:1253 #1: ffff88805892d8b8 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] #1: ffff88805892d8b8 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: gfs2_file_write_iter+0x304/0xe10 fs/gfs2/file.c:1115 #2: ffff888023aed060 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0x104/0x24b0 fs/gfs2/log.c:1042 #3: ffff888023aece88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #3: ffff888023aece88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #3: ffff888023aece88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x52/0x80 fs/gfs2/log.c:814 #4: ffff888023aed248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: signal_our_withdraw fs/gfs2/util.c:152 [inline] #4: ffff888023aed248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: gfs2_withdraw+0x413/0x14b0 fs/gfs2/util.c:342 Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0