------------[ cut here ]------------ WARNING: CPU: 0 PID: 1160 at include/linux/backing-dev.h:288 account_page_dirtied mm/page-writeback.c:2474 [inline] WARNING: CPU: 0 PID: 1160 at include/linux/backing-dev.h:288 __set_page_dirty+0xa69/0xd40 mm/page-writeback.c:2522 Modules linked in: CPU: 0 PID: 1160 Comm: kworker/u4:3 Not tainted 5.15.165-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: writeback wb_workfn (flush-7:0) 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: 0e d5 ff 49 ff cf e9 6b fc ff ff e8 a1 0e d5 ff 48 ff cb e9 fb fb ff ff e8 94 0e d5 ff 48 ff cb e9 c9 fc ff ff e8 87 0e 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:ffffc900047ef110 EFLAGS: 00010093 RAX: ffffffff81ab5319 RBX: ffff888146275a70 RCX: ffff88801cc75940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff81ab4cc3 R09: ffffed1028c4eb4f R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881462758f8 R13: dffffc0000000000 R14: ffffea0001d52540 R15: 1ffff11028c4eb4e FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6110386130 CR3: 0000000079789000 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 __writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:2001 wb_writeback+0x465/0xc50 fs/fs-writeback.c:2106 wb_check_old_data_flush fs/fs-writeback.c:2206 [inline] wb_do_writeback fs/fs-writeback.c:2259 [inline] wb_workfn+0xc55/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