------------[ cut here ]------------ WARNING: CPU: 0 PID: 29270 at include/linux/backing-dev.h:256 folio_account_dirtied mm/page-writeback.c:2677 [inline] WARNING: CPU: 0 PID: 29270 at include/linux/backing-dev.h:256 __folio_mark_dirty+0xa10/0x1240 mm/page-writeback.c:2728 Modules linked in: CPU: 0 PID: 29270 Comm: kworker/u4:6 Not tainted 6.2.0-syzkaller-05251-g5b7c4cabbb65 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Workqueue: writeback wb_workfn (flush-7:4) RIP: 0010:inode_to_wb include/linux/backing-dev.h:253 [inline] RIP: 0010:folio_account_dirtied mm/page-writeback.c:2677 [inline] RIP: 0010:__folio_mark_dirty+0xa10/0x1240 mm/page-writeback.c:2728 Code: ff ff e8 83 e8 cd ff e8 6e e2 41 ff e9 89 f8 ff ff e8 74 e8 cd ff 4c 89 f7 48 8b 74 24 20 e8 f7 bc 2b 00 eb 9c e8 60 e8 cd ff <0f> 0b e9 36 fb ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 9e f8 ff RSP: 0018:ffffc9000498f198 EFLAGS: 00010093 RAX: ffffffff81beb7b0 RBX: 0000000000000000 RCX: ffff888027539d40 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88801283f578 R08: ffffffff81beb2e0 R09: fffff9400010a7d9 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff88801283f400 R14: ffffea0000853ec0 R15: 1ffff11002507eaf FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3155455000 CR3: 000000004339c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __set_page_dirty include/linux/pagemap.h:1052 [inline] mark_buffer_dirty+0x407/0x8d0 fs/buffer.c:1148 gfs2_unpin+0x129/0xa60 fs/gfs2/lops.c:111 buf_lo_after_commit+0x14f/0x1a0 fs/gfs2/lops.c:747 lops_after_commit fs/gfs2/lops.h:49 [inline] gfs2_log_flush+0x1155/0x2610 fs/gfs2/log.c:1116 gfs2_write_inode+0x20e/0x3b0 fs/gfs2/super.c:436 write_inode fs/fs-writeback.c:1451 [inline] __writeback_single_inode+0x84d/0x15e0 fs/fs-writeback.c:1663 writeback_sb_inodes+0x92c/0x1360 fs/fs-writeback.c:1889 wb_writeback+0x508/0x1080 fs/fs-writeback.c:2063 wb_do_writeback fs/fs-writeback.c:2206 [inline] wb_workfn+0x48b/0x1100 fs/fs-writeback.c:2246 process_one_work+0x915/0x13a0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308