syz-executor: attempt to access beyond end of device
loop2: rw=1, sector=320, nr_sectors = 8 limit=64
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: 5787, name: syz-executor
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
4 locks held by syz-executor/5787:
#0: ffff88807a77c0e0 (&type->s_umount_key#69){+.+.}-{3:3}, at: __super_lock fs/super.c:56 [inline]
#0: ffff88807a77c0e0 (&type->s_umount_key#69){+.+.}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff88807a77c0e0 (&type->s_umount_key#69){+.+.}-{3:3}, at: deactivate_super+0xa4/0xe0 fs/super.c:513
#1: ffff88801ef5d060 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0x104/0x24b0 fs/gfs2/log.c:1042
#2: ffff88801ef5ce88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
#2: ffff88801ef5ce88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline]
#2: ffff88801ef5ce88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x52/0x80 fs/gfs2/log.c:814
#3: ffff88801ef5d248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: signal_our_withdraw fs/gfs2/util.c:152 [inline]
#3: ffff88801ef5d248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: gfs2_withdraw+0x413/0x14b0 fs/gfs2/util.c:342
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 5787 Comm: syz-executor Not tainted 6.6.101-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
<TASK>
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_kill_sb+0x5d/0x320 fs/gfs2/ops_fstype.c:1789
deactivate_locked_super+0x97/0x100 fs/super.c:481
cleanup_mnt+0x429/0x4c0 fs/namespace.c:1250
task_work_run+0x1ce/0x250 kernel/task_work.c:239
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc8a618ff17
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 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 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd0e436ac8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000064 RCX: 00007fc8a618ff17
RDX: 0000000000000200 RSI: 0000000000000009 RDI: 00007ffd0e437c70
RBP: 00007fc8a6211c05 R08: 000055558999b663 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000202 R12: 00007ffd0e437c70
R13: 00007fc8a6211c05 R14: 00005555899804a8 R15: 00007ffd0e438d40
</TASK>
BUG: scheduling while atomic: syz-executor/5787/0x00000002
4 locks held by syz-executor/5787:
#0: ffff88807a77c0e0 (&type->s_umount_key#69){+.+.}-{3:3}, at: __super_lock fs/super.c:56 [inline]
#0: ffff88807a77c0e0 (&type->s_umount_key#69){+.+.}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff88807a77c0e0 (&type->s_umount_key#69){+.+.}-{3:3}, at: deactivate_super+0xa4/0xe0 fs/super.c:513
#1: ffff88801ef5d060 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0x104/0x24b0 fs/gfs2/log.c:1042
#2: ffff88801ef5ce88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
#2: ffff88801ef5ce88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline]
#2: ffff88801ef5ce88 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x52/0x80 fs/gfs2/log.c:814
#3: ffff88801ef5d248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: signal_our_withdraw fs/gfs2/util.c:152 [inline]
#3: ffff88801ef5d248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: gfs2_withdraw+0x413/0x14b0 fs/gfs2/util.c:342
Modules linked in:
Preemption disabled at:
[<0000000000000000>] 0x0