attempt to access beyond end of device
loop0: rw=1, want=328, 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/glock.c:1281
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4191, name: syz-executor
3 locks held by syz-executor/4191:
#0: ffff88805d4b60e0 (&type->s_umount_key#59){+.+.}-{3:3}, at: deactivate_super+0xa0/0xd0 fs/super.c:365
#1: ffff88807e4ad0a8 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0xdb/0x2600 fs/gfs2/log.c:1035
#2: ffff88807e4aced0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:364 [inline]
#2: ffff88807e4aced0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline]
#2: ffff88807e4aced0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x4e/0x80 fs/gfs2/log.c:806
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 4191 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
___might_sleep+0x493/0x610 kernel/sched/core.c:9658
gfs2_glock_wait+0x53/0x1c0 fs/gfs2/glock.c:1281
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_freeze_lock+0x5a/0xc0 fs/gfs2/util.c:107
signal_our_withdraw fs/gfs2/util.c:160 [inline]
gfs2_withdraw+0x5d4/0x1490 fs/gfs2/util.c:343
gfs2_ail1_empty+0x7c2/0x850 fs/gfs2/log.c:369
gfs2_flush_revokes+0x58/0x80 fs/gfs2/log.c:807
revoke_lo_before_commit+0x28/0x5e0 fs/gfs2/lops.c:872
lops_before_commit fs/gfs2/lops.h:40 [inline]
gfs2_log_flush+0xc23/0x2600 fs/gfs2/log.c:1094
gfs2_kill_sb+0x50/0xd0 fs/gfs2/ops_fstype.c:1734
deactivate_locked_super+0x93/0xf0 fs/super.c:335
cleanup_mnt+0x42d/0x4e0 fs/namespace.c:1148
task_work_run+0x125/0x1a0 kernel/task_work.c:188
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181
exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fcb0bd4b017
Code: a2 c7 05 dc 06 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 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 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fffa8b53bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fcb0bddf120 RCX: 00007fcb0bd4b017
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fffa8b53c70
RBP: 00007fffa8b53c70 R08: 00007fffa8b54c70 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffa8b54d00
R13: 00007fcb0bddf120 R14: 0000000000012323 R15: 00007fffa8b54d40
=============================
[ BUG: Invalid wait context ]
syzkaller #0 Tainted: G W
-----------------------------
syz-executor/4191 is trying to lock:
ffff88801bc0e488 (&wq->mutex){+.+.}-{3:3}, at: flush_workqueue+0x18f/0x13d0 kernel/workqueue.c:2833
other info that might help us debug this:
context-{4:4}
3 locks held by syz-executor/4191:
#0: ffff88805d4b60e0 (&type->s_umount_key#59){+.+.}-{3:3}, at: deactivate_super+0xa0/0xd0 fs/super.c:365
#1: ffff88807e4ad0a8 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0xdb/0x2600 fs/gfs2/log.c:1035
#2: ffff88807e4aced0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:364 [inline]
#2: ffff88807e4aced0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline]
#2: ffff88807e4aced0 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x4e/0x80 fs/gfs2/log.c:806
stack backtrace:
CPU: 0 PID: 4191 Comm: syz-executor Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
print_lock_invalid_wait_context kernel/locking/lockdep.c:4664 [inline]
check_wait_context kernel/locking/lockdep.c:4725 [inline]
__lock_acquire+0x1bf8/0x7d10 kernel/locking/lockdep.c:4962
lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623
__mutex_lock_common+0x1e3/0x2400 kernel/locking/mutex.c:596
__mutex_lock kernel/locking/mutex.c:729 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
flush_workqueue+0x18f/0x13d0 kernel/workqueue.c:2833
gfs2_make_fs_ro+0xd7/0x620 fs/gfs2/super.c:533
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x610/0x1490 fs/gfs2/util.c:343
gfs2_ail1_empty+0x7c2/0x850 fs/gfs2/log.c:369
gfs2_flush_revokes+0x58/0x80 fs/gfs2/log.c:807
revoke_lo_before_commit+0x28/0x5e0 fs/gfs2/lops.c:872
lops_before_commit fs/gfs2/lops.h:40 [inline]
gfs2_log_flush+0xc23/0x2600 fs/gfs2/log.c:1094
gfs2_kill_sb+0x50/0xd0 fs/gfs2/ops_fstype.c:1734
deactivate_locked_super+0x93/0xf0 fs/super.c:335
cleanup_mnt+0x42d/0x4e0 fs/namespace.c:1148
task_work_run+0x125/0x1a0 kernel/task_work.c:188
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181
exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fcb0bd4b017
Code: a2 c7 05 dc 06 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 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 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fffa8b53bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fcb0bddf120 RCX: 00007fcb0bd4b017
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fffa8b53c70
RBP: 00007fffa8b53c70 R08: 00007fffa8b54c70 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffa8b54d00
R13: 00007fcb0bddf120 R14: 0000000000012323 R15: 00007fffa8b54d40
BUG: scheduling while atomic: syz-executor/4191/0x00000002
INFO: lockdep is turned off.
Modules linked in:
Preemption disabled at:
[<0000000000000000>] 0x0