------------[ cut here ]------------ WARNING: CPU: 1 PID: 52 at include/linux/backing-dev.h:256 folio_account_dirtied+0x4e9/0x6e0 mm/page-writeback.c:2677 Modules linked in: CPU: 1 PID: 52 Comm: kworker/1:1H Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: glock_workqueue glock_work_func RIP: 0010:inode_to_wb include/linux/backing-dev.h:253 [inline] RIP: 0010:folio_account_dirtied+0x4e9/0x6e0 mm/page-writeback.c:2677 Code: 5d 41 5e 41 5f 5d c3 e8 f5 4a cf ff 4c 89 ef 4c 89 e6 48 83 c4 20 5b 41 5c 41 5d 41 5e 41 5f 5d e9 6c 58 2c 00 e8 d7 4a cf ff <0f> 0b e9 8a fd ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 7a fb ff RSP: 0018:ffffc90000bd77d0 EFLAGS: 00010093 RAX: ffffffff81bc8ae9 RBX: 0000000000000000 RCX: ffff8880182c8000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff888012c6ea78 R08: ffffffff81bc886d R09: ffffed100258dd50 R10: ffffed100258dd50 R11: 1ffff1100258dd4f R12: dffffc0000000000 R13: ffffea0000718b80 R14: 0000000000000001 R15: 1ffff1100258dd4f FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5d43734000 CR3: 000000002abd3000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __folio_mark_dirty+0x125/0x260 mm/page-writeback.c:2728 __set_page_dirty include/linux/pagemap.h:1052 [inline] mark_buffer_dirty+0x253/0x550 fs/buffer.c:1105 gfs2_unpin+0x10b/0xa20 fs/gfs2/lops.c:111 buf_lo_after_commit+0x172/0x1d0 fs/gfs2/lops.c:747 lops_after_commit fs/gfs2/lops.h:49 [inline] gfs2_log_flush+0x1179/0x26a0 fs/gfs2/log.c:1107 inode_go_sync+0x28d/0x520 fs/gfs2/glops.c:314 do_xmote+0x34d/0x13d0 fs/gfs2/glock.c:708 glock_work_func+0x2c2/0x450 fs/gfs2/glock.c:1056 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308