------------[ cut here ]------------ WARNING: CPU: 1 PID: 51 at include/linux/backing-dev.h:256 folio_account_dirtied+0x4e9/0x6e0 mm/page-writeback.c:2677 Modules linked in: CPU: 1 PID: 51 Comm: kworker/u4:3 Not tainted 6.2.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: writeback wb_workfn (flush-7:0) 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 65 46 cf ff 4c 89 ef 4c 89 e6 48 83 c4 20 5b 41 5c 41 5d 41 5e 41 5f 5d e9 3c 64 2c 00 e8 47 46 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:ffffc90000bc70d0 EFLAGS: 00010093 RAX: ffffffff81bc9529 RBX: 0000000000000000 RCX: ffff888017e01d40 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff888140d02878 R08: ffffffff81bc92ad R09: ffffed10281a0510 R10: ffffed10281a0510 R11: 1ffff110281a050f R12: dffffc0000000000 R13: ffffea0001f11500 R14: 0000000000000001 R15: 1ffff110281a050f FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1bda342c3b CR3: 000000001df63000 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 gfs2_write_inode+0x208/0x3a0 fs/gfs2/super.c:436 write_inode fs/fs-writeback.c:1451 [inline] __writeback_single_inode+0x4d6/0x670 fs/fs-writeback.c:1663 writeback_sb_inodes+0x812/0x1050 fs/fs-writeback.c:1889 __writeback_inodes_wb+0x11d/0x260 fs/fs-writeback.c:1960 wb_writeback+0x440/0x7b0 fs/fs-writeback.c:2065 wb_check_old_data_flush fs/fs-writeback.c:2165 [inline] wb_do_writeback fs/fs-writeback.c:2218 [inline] wb_workfn+0xa78/0xef0 fs/fs-writeback.c:2246 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