------------[ cut here ]------------ WARNING: CPU: 0 PID: 4164 at include/linux/backing-dev.h:288 account_page_dirtied mm/page-writeback.c:2474 [inline] WARNING: CPU: 0 PID: 4164 at include/linux/backing-dev.h:288 __set_page_dirty+0xa69/0xd40 mm/page-writeback.c:2522 Modules linked in: CPU: 0 PID: 4164 Comm: gfs2_logd Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:inode_to_wb include/linux/backing-dev.h:285 [inline] RIP: 0010:account_page_dirtied mm/page-writeback.c:2474 [inline] RIP: 0010:__set_page_dirty+0xa69/0xd40 mm/page-writeback.c:2522 Code: 0d d5 ff 49 ff cf e9 6b fc ff ff e8 41 0d d5 ff 48 ff cb e9 fb fb ff ff e8 34 0d d5 ff 48 ff cb e9 c9 fc ff ff e8 27 0d d5 ff <0f> 0b 43 80 3c 2f 00 0f 85 b1 f9 ff ff e9 b4 f9 ff ff 89 d9 80 e1 RSP: 0018:ffffc90002cb79f0 EFLAGS: 00010093 RAX: ffffffff81ab6679 RBX: ffff888145c9ceb0 RCX: ffff888023c5d940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff81ab6023 R09: ffffed1028b939d7 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888145c9cd38 R13: dffffc0000000000 R14: ffffea0001d147c0 R15: 1ffff11028b939d6 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe7e12de0c CR3: 00000000254f5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_buffer_dirty+0x2e4/0x4b0 fs/buffer.c:1108 gfs2_unpin+0x11e/0xa50 fs/gfs2/lops.c:111 buf_lo_after_commit+0x14b/0x1a0 fs/gfs2/lops.c:750 lops_after_commit fs/gfs2/lops.h:49 [inline] gfs2_log_flush+0x11e0/0x2680 fs/gfs2/log.c:1108 gfs2_logd+0x34b/0xf90 fs/gfs2/log.c:1316 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287