------------[ cut here ]------------ WARNING: CPU: 1 PID: 75 at include/linux/backing-dev.h:246 folio_account_dirtied mm/page-writeback.c:2587 [inline] WARNING: CPU: 1 PID: 75 at include/linux/backing-dev.h:246 __folio_mark_dirty+0x924/0x1140 mm/page-writeback.c:2638 Modules linked in: CPU: 1 PID: 75 Comm: kworker/u4:4 Not tainted 6.1.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: writeback wb_workfn (flush-7:0) 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:ffffc900015a70d8 EFLAGS: 00010093 RAX: ffffffff81baafe4 RBX: 0000000000000000 RCX: ffff888019f01dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff888018081278 R08: ffffffff81baab14 R09: ffffed1003010250 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff888018081100 R14: ffffea0001f02800 R15: 1ffff1100301024f FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3870455000 CR3: 00000000796b9000 CR4: 00000000003506e0 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 gfs2_write_inode+0x20a/0x3b0 fs/gfs2/super.c:453 write_inode fs/fs-writeback.c:1460 [inline] __writeback_single_inode+0x67d/0x11e0 fs/fs-writeback.c:1677 writeback_sb_inodes+0xc2b/0x1b20 fs/fs-writeback.c:1903 __writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:1974 wb_writeback+0x4b1/0xe10 fs/fs-writeback.c:2079 wb_check_old_data_flush fs/fs-writeback.c:2179 [inline] wb_do_writeback fs/fs-writeback.c:2232 [inline] wb_workfn+0xbec/0x1020 fs/fs-writeback.c:2260 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295