------------[ cut here ]------------ WARNING: CPU: 1 PID: 3624 at include/linux/backing-dev.h:272 folio_account_dirtied mm/page-writeback.c:2460 [inline] WARNING: CPU: 1 PID: 3624 at include/linux/backing-dev.h:272 __folio_mark_dirty+0x754/0x8d0 mm/page-writeback.c:2513 Modules linked in: CPU: 1 PID: 3624 Comm: syz-executor.5 Not tainted 5.17.0-rc6-syzkaller-00251-gdcde98da9970 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:inode_to_wb include/linux/backing-dev.h:269 [inline] RIP: 0010:folio_account_dirtied mm/page-writeback.c:2460 [inline] RIP: 0010:__folio_mark_dirty+0x754/0x8d0 mm/page-writeback.c:2513 Code: 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d e9 93 37 6b 08 e8 8e c9 d2 ff 48 89 df e8 a6 37 17 00 48 89 c6 eb cb e8 7c c9 d2 ff <0f> 0b e9 16 fc ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ff f9 ff RSP: 0018:ffffc900028cf788 EFLAGS: 00010093 RAX: ffffffff81b2cfa4 RBX: 0000000000000000 RCX: ffff88801a6a9d00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88801724d880 R08: ffffffff81b2cbb4 R09: fffff940003dde09 R10: fffff940003dde09 R11: 0000000000000000 R12: 0000000000000001 R13: ffff88801724d708 R14: ffffea0001eef040 R15: 1ffff11002e49b10 FS: 0000555556ed0400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efc70551000 CR3: 0000000024c99000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __set_page_dirty include/linux/pagemap.h:879 [inline] mark_buffer_dirty+0x260/0x320 fs/buffer.c:1108 gfs2_unpin+0x116/0xa40 fs/gfs2/lops.c:111 buf_lo_after_commit+0x172/0x1d0 fs/gfs2/lops.c:750 lops_after_commit fs/gfs2/lops.h:49 [inline] gfs2_log_flush+0x137a/0x2dd0 fs/gfs2/log.c:1108 do_sync+0xb74/0xdf0 fs/gfs2/quota.c:967 gfs2_quota_sync+0x3d3/0x9b0 fs/gfs2/quota.c:1310 gfs2_sync_fs+0x49/0xb0 fs/gfs2/super.c:642 sync_filesystem+0xe8/0x220 fs/sync.c:56 generic_shutdown_super+0x6b/0x300 fs/super.c:445 kill_block_super+0x79/0xd0 fs/super.c:1394 deactivate_locked_super+0xa7/0xf0 fs/super.c:332 cleanup_mnt+0x462/0x510 fs/namespace.c:1173 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x209/0x220 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f6a716344b7 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 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 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffdb2544728 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6a716344b7 RDX: 00007ffdb25447fb RSI: 000000000000000a RDI: 00007ffdb25447f0 RBP: 00007ffdb25447f0 R08: 00000000ffffffff R09: 00007ffdb25445c0 R10: 0000555556ed18b3 R11: 0000000000000246 R12: 00007f6a7168c1ea R13: 00007ffdb25458b0 R14: 0000555556ed1810 R15: 00007ffdb25458f0