------------[ cut here ]------------ WARNING: CPU: 0 PID: 4254 at include/linux/backing-dev.h:246 folio_account_dirtied mm/page-writeback.c:2587 [inline] WARNING: CPU: 0 PID: 4254 at include/linux/backing-dev.h:246 __folio_mark_dirty+0x924/0x1140 mm/page-writeback.c:2638 Modules linked in: CPU: 0 PID: 4254 Comm: syz-executor Not tainted 6.1.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:inode_to_wb include/linux/backing-dev.h:243 [inline] RIP: 0010:folio_account_dirtied mm/page-writeback.c:2587 [inline] RIP: 0010:__folio_mark_dirty+0x924/0x1140 mm/page-writeback.c:2638 Code: e9 90 f8 ff ff e8 2c dc cf ff 0f 0b e9 e3 f8 ff ff e8 20 dc cf ff 4c 89 f7 48 8b 74 24 20 e8 63 a8 2e 00 eb 9f e8 0c dc cf ff <0f> 0b e9 36 fb ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c f8 f8 ff RSP: 0018:ffffc90003caf778 EFLAGS: 00010093 RAX: ffffffff81baafe4 RBX: 0000000000000000 RCX: ffff888031109dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff888148c8df78 R08: ffffffff81baab14 R09: fffff940002ca389 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff888148c8de00 R14: ffffea0001651c40 R15: 1ffff11029191bef FS: 00005555754d2500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c373e42 CR3: 000000005c97b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __set_page_dirty include/linux/pagemap.h:1088 [inline] mark_buffer_dirty+0x34f/0x7d0 fs/buffer.c:1105 gfs2_unpin+0x129/0xa60 fs/gfs2/lops.c:111 buf_lo_after_commit+0x14b/0x1a0 fs/gfs2/lops.c:747 lops_after_commit fs/gfs2/lops.h:49 [inline] gfs2_log_flush+0x1175/0x25d0 fs/gfs2/log.c:1116 do_sync+0xa2c/0xc70 fs/gfs2/quota.c:986 gfs2_quota_sync+0x379/0x810 fs/gfs2/quota.c:1329 gfs2_sync_fs+0x49/0xb0 fs/gfs2/super.c:660 sync_filesystem+0xe8/0x220 fs/sync.c:56 generic_shutdown_super+0x6b/0x340 fs/super.c:474 kill_block_super+0x7a/0xe0 fs/super.c:1470 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 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:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fdf5b97fb47 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:00007ffd30ab9198 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fdf5b9f15fc RCX: 00007fdf5b97fb47 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd30ab9250 RBP: 00007ffd30ab9250 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd30aba2d0 R13: 00007fdf5b9f15fc R14: 0000000000046a5e R15: 00007ffd30aba310