------------[ cut here ]------------ WARNING: CPU: 1 PID: 5072 at include/linux/backing-dev.h:256 folio_account_dirtied mm/page-writeback.c:2656 [inline] WARNING: CPU: 1 PID: 5072 at include/linux/backing-dev.h:256 __folio_mark_dirty+0xa10/0x1240 mm/page-writeback.c:2707 Modules linked in: CPU: 1 PID: 5072 Comm: gfs2_logd Not tainted 6.2.0-syzkaller-09238-gd2980d8d8265 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:inode_to_wb include/linux/backing-dev.h:253 [inline] RIP: 0010:folio_account_dirtied mm/page-writeback.c:2656 [inline] RIP: 0010:__folio_mark_dirty+0xa10/0x1240 mm/page-writeback.c:2707 Code: ff ff e8 a3 cb cd ff e8 9e b7 41 ff e9 89 f8 ff ff e8 94 cb cd ff 4c 89 f7 48 8b 74 24 20 e8 a7 db 2b 00 eb 9c e8 80 cb 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:ffffc90003b7f9e0 EFLAGS: 00010093 RAX: ffffffff81bee220 RBX: 0000000000000000 RCX: ffff888021a457c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88801c412878 R08: ffffffff81bedd50 R09: ffffed1003882510 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff88801c412700 R14: ffffea00009577c0 R15: 1ffff1100388250f FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd53336c000 CR3: 000000001d3b9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_buffer_dirty+0x35f/0x670 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_logd+0x488/0xec0 fs/gfs2/log.c:1328 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308