syz.0.1: attempt to access beyond end of device loop0: rw=1, sector=2056, nr_sectors = 8 limit=0 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 kernel/sched/completion.c:101 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4390, name: syz.0.1 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 5 locks held by syz.0.1/4390: #0: ffff888074472460 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write_file+0x5c/0x200 fs/namespace.c:446 #1: ffff888054e84b38 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:764 [inline] #1: ffff888054e84b38 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: vfs_fileattr_set+0x150/0xb10 fs/ioctl.c:681 #2: ffff88802ca0d058 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0x23/0x40 fs/gfs2/log.c:1179 #3: ffff88802ca0ce80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #3: ffff88802ca0ce80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #3: ffff88802ca0ce80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x4e/0x80 fs/gfs2/log.c:815 #4: ffff88802ca0d248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: signal_our_withdraw fs/gfs2/util.c:155 [inline] #4: ffff88802ca0d248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: gfs2_withdraw+0x506/0x1450 fs/gfs2/util.c:345 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 4390 Comm: syz.0.1 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 __might_resched+0x489/0x5f0 kernel/sched/core.c:9970 __wait_for_common kernel/sched/completion.c:101 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x8e/0x590 kernel/sched/completion.c:138 kthread_stop+0x197/0x650 kernel/kthread.c:711 signal_our_withdraw fs/gfs2/util.c:159 [inline] gfs2_withdraw+0x56f/0x1450 fs/gfs2/util.c:345 gfs2_ail1_empty+0x7d1/0x860 fs/gfs2/log.c:377 gfs2_flush_revokes+0x58/0x80 fs/gfs2/log.c:816 revoke_lo_before_commit+0x28/0x5e0 fs/gfs2/lops.c:869 lops_before_commit fs/gfs2/lops.h:40 [inline] __gfs2_log_flush+0xbf4/0x24e0 fs/gfs2/log.c:1103 gfs2_log_flush+0x30/0x40 fs/gfs2/log.c:1180 do_gfs2_set_flags fs/gfs2/file.c:244 [inline] gfs2_fileattr_set+0x5d5/0x9c0 fs/gfs2/file.c:310 vfs_fileattr_set+0x859/0xb10 fs/ioctl.c:696 ioctl_setflags fs/ioctl.c:728 [inline] do_vfs_ioctl+0x16eb/0x1d40 fs/ioctl.c:839 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl+0x83/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f538799f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f53888ed028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5387c25fa0 RCX: 00007f538799f559 RDX: 0000200000013880 RSI: 0000000040086602 RDI: 0000000000000004 RBP: 00007f5387a36b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5387c26038 R14: 00007f5387c25fa0 R15: 00007ffed963efb8 BUG: scheduling while atomic: syz.0.1/4390/0x00000002 5 locks held by syz.0.1/4390: #0: ffff888074472460 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write_file+0x5c/0x200 fs/namespace.c:446 #1: ffff888054e84b38 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:764 [inline] #1: ffff888054e84b38 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: vfs_fileattr_set+0x150/0xb10 fs/ioctl.c:681 #2: ffff88802ca0d058 (&sdp->sd_log_flush_lock){++++}-{3:3}, at: gfs2_log_flush+0x23/0x40 fs/gfs2/log.c:1179 #3: ffff88802ca0ce80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #3: ffff88802ca0ce80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #3: ffff88802ca0ce80 (&sdp->sd_log_lock){+.+.}-{2:2}, at: gfs2_flush_revokes+0x4e/0x80 fs/gfs2/log.c:815 #4: ffff88802ca0d248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: signal_our_withdraw fs/gfs2/util.c:155 [inline] #4: ffff88802ca0d248 (&sdp->sd_freeze_mutex){+.+.}-{3:3}, at: gfs2_withdraw+0x506/0x1450 fs/gfs2/util.c:345 Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0