gfs2: fsid=syz:syz.0: found 1 quota changes ================================================================== BUG: KASAN: stack-out-of-bounds in should_fault_in_pages fs/gfs2/file.c:785 [inline] BUG: KASAN: stack-out-of-bounds in gfs2_file_buffered_write+0x4bc/0x880 fs/gfs2/file.c:1070 Read of size 8 at addr ffff80001feb7bb0 by task syz.5.51/4419 CPU: 1 PID: 4419 Comm: syz.5.51 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 should_fault_in_pages fs/gfs2/file.c:785 [inline] gfs2_file_buffered_write+0x4bc/0x880 fs/gfs2/file.c:1070 gfs2_file_write_iter+0x39c/0xbd8 fs/gfs2/file.c:1166 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x7c8/0xa2c fs/read_write.c:594 ksys_pwrite64 fs/read_write.c:701 [inline] __do_sys_pwrite64 fs/read_write.c:711 [inline] __se_sys_pwrite64 fs/read_write.c:708 [inline] __arm64_sys_pwrite64+0x170/0x200 fs/read_write.c:708 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 addr ffff80001feb7bb0 is located in stack of task syz.5.51/4419 at offset 48 in frame: percpu_up_read include/linux/percpu-rwsem.h:-1 [inline] __sb_end_write include/linux/fs.h:1806 [inline] vfs_write+0x0/0xa2c include/linux/fs.h:3056 this frame has 3 objects: [32, 48) 'iov.i' [64, 112) 'kiocb.i' [144, 184) 'iter.i' Memory state around the buggy address: ffff80001feb7a80: 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ffff80001feb7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff80001feb7b80: f1 f1 f1 f1 00 00 f2 f2 00 00 00 00 00 00 f2 f2 ^ ffff80001feb7c00: f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 ffff80001feb7c80: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ================================================================== gfs2: fsid=syz:syz.0: fatal: filesystem consistency error inode = 11 2339 function = gfs2_dinode_in, file = fs/gfs2/glops.c, line = 465 gfs2: fsid=syz:syz.0: about to withdraw this file system gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485 CPU: 1 PID: 4419 Comm: syz.5.51 Tainted: G B 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 gfs2_assert_warn_i+0x16c/0x26c fs/gfs2/util.c:416 gfs2_quota_cleanup+0x458/0x670 fs/gfs2/quota.c:1485 gfs2_make_fs_ro+0x3f0/0x51c fs/gfs2/super.c:557 signal_our_withdraw fs/gfs2/util.c:166 [inline] gfs2_withdraw+0x4cc/0x129c fs/gfs2/util.c:343 gfs2_consist_inode_i+0xcc/0xe8 fs/gfs2/util.c:456 gfs2_dinode_in fs/gfs2/glops.c:465 [inline] gfs2_inode_refresh+0x920/0xda8 fs/gfs2/glops.c:485 inode_go_lock+0xfc/0x38c fs/gfs2/glops.c:510 do_promote+0x678/0xa70 fs/gfs2/glock.c:507 finish_xmote+0x450/0xb2c fs/gfs2/glock.c:678 do_xmote+0x674/0xf90 fs/gfs2/glock.c:824 run_queue+0x3fc/0x6c0 fs/gfs2/glock.c:872 gfs2_glock_nq+0x828/0x141c fs/gfs2/glock.c:1534 gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline] do_sync+0x3c4/0xa4c fs/gfs2/quota.c:927 gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329 gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647 sync_filesystem+0xe8/0x218 fs/sync.c:56 generic_shutdown_super+0x70/0x2f0 fs/super.c:448 kill_block_super+0x70/0xdc fs/super.c:1427 gfs2_kill_sb+0xc0/0xd4 fs/gfs2/ops_fstype.c:-1 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x67c/0x1f58 kernel/exit.c:874 do_group_exit+0x100/0x268 kernel/exit.c:996 get_signal+0x73c/0x1340 kernel/signal.c:2900 do_signal arch/arm64/kernel/signal.c:893 [inline] do_notify_resume+0x35c/0x3128 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 gfs2: fsid=syz:syz.0: Journal recovery skipped for jid 0 until next mount. gfs2: fsid=syz:syz.0: Glock dequeues delayed: 0 gfs2: fsid=syz:syz.0: File system withdrawn CPU: 0 PID: 4419 Comm: syz.5.51 Tainted: G B 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 gfs2_withdraw+0xc60/0x129c fs/gfs2/util.c:355 gfs2_consist_inode_i+0xcc/0xe8 fs/gfs2/util.c:456 gfs2_dinode_in fs/gfs2/glops.c:465 [inline] gfs2_inode_refresh+0x920/0xda8 fs/gfs2/glops.c:485 inode_go_lock+0xfc/0x38c fs/gfs2/glops.c:510 do_promote+0x678/0xa70 fs/gfs2/glock.c:507 finish_xmote+0x450/0xb2c fs/gfs2/glock.c:678 do_xmote+0x674/0xf90 fs/gfs2/glock.c:824 run_queue+0x3fc/0x6c0 fs/gfs2/glock.c:872 gfs2_glock_nq+0x828/0x141c fs/gfs2/glock.c:1534 gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline] do_sync+0x3c4/0xa4c fs/gfs2/quota.c:927 gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329 gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647 sync_filesystem+0xe8/0x218 fs/sync.c:56 generic_shutdown_super+0x70/0x2f0 fs/super.c:448 kill_block_super+0x70/0xdc fs/super.c:1427 gfs2_kill_sb+0xc0/0xd4 fs/gfs2/ops_fstype.c:-1 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x67c/0x1f58 kernel/exit.c:874 do_group_exit+0x100/0x268 kernel/exit.c:996 get_signal+0x73c/0x1340 kernel/signal.c:2900 do_signal arch/arm64/kernel/signal.c:893 [inline] do_notify_resume+0x35c/0x3128 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584