------------[ cut here ]------------ WARNING: CPU: 0 PID: 4297 at include/linux/backing-dev.h:288 account_page_dirtied mm/page-writeback.c:2474 [inline] WARNING: CPU: 0 PID: 4297 at include/linux/backing-dev.h:288 __set_page_dirty+0xa69/0xd40 mm/page-writeback.c:2522 Modules linked in: CPU: 0 PID: 4297 Comm: kworker/u4:7 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: writeback wb_workfn (flush-7:1) 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:ffffc900033e71b0 EFLAGS: 00010093 RAX: ffffffff81ab6679 RBX: ffff888145f35a70 RCX: ffff888023540000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff81ab6023 R09: fffffbfff1bd2d3e R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888145f358f8 R13: dffffc0000000000 R14: ffffea000169fac0 R15: 1ffff11028be6b4e FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3116fb CR3: 00000000759f8000 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_write_inode+0x2be/0x450 fs/gfs2/super.c:439 write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x644/0xe30 fs/fs-writeback.c:1705 writeback_sb_inodes+0xbce/0x1a40 fs/fs-writeback.c:1930 wb_writeback+0x451/0xc50 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x46c/0x1130 fs/fs-writeback.c:2288 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287