------------[ cut here ]------------ WARNING: CPU: 0 PID: 12 at include/linux/backing-dev.h:254 inode_to_wb include/linux/backing-dev.h:251 [inline] WARNING: CPU: 0 PID: 12 at include/linux/backing-dev.h:254 folio_account_dirtied mm/page-writeback.c:2743 [inline] WARNING: CPU: 0 PID: 12 at include/linux/backing-dev.h:254 __folio_mark_dirty+0x907/0xed0 mm/page-writeback.c:2797 Modules linked in: CPU: 0 UID: 0 PID: 12 Comm: kworker/u4:1 Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: writeback wb_workfn (flush-7:0) RIP: 0010:inode_to_wb include/linux/backing-dev.h:251 [inline] RIP: 0010:folio_account_dirtied mm/page-writeback.c:2743 [inline] RIP: 0010:__folio_mark_dirty+0x907/0xed0 mm/page-writeback.c:2797 Code: f9 ff ff e8 8b bf c4 ff 4c 89 f7 48 8b 34 24 e8 9f fc 37 00 eb 87 e8 78 bf c4 ff 90 0f 0b 90 e9 45 ff ff ff e8 6a bf c4 ff 90 <0f> 0b 90 e9 40 fb ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 07 f9 RSP: 0018:ffffc900003e7030 EFLAGS: 00010093 RAX: ffffffff81d01aa6 RBX: 0000000000000000 RCX: ffff88801b7a4880 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff888031cf4cf8 R08: ffffffff81d015e2 R09: 1ffff1100639e99f R10: dffffc0000000000 R11: ffffed100639e9a0 R12: 0000000000000001 R13: ffff888031cf4b88 R14: ffffea0001012380 R15: 1ffff1100639e99f FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f17c87ff000 CR3: 0000000043f44000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_buffer_dirty+0x2a4/0x520 fs/buffer.c:1201 gfs2_unpin+0x129/0xa60 fs/gfs2/lops.c:111 buf_lo_after_commit+0x14f/0x1a0 fs/gfs2/lops.c:738 lops_after_commit fs/gfs2/lops.h:51 [inline] gfs2_log_flush+0x118d/0x2610 fs/gfs2/log.c:1115 gfs2_write_inode+0x20e/0x3c0 fs/gfs2/super.c:457 write_inode fs/fs-writeback.c:1503 [inline] __writeback_single_inode+0x711/0x10d0 fs/fs-writeback.c:1723 writeback_sb_inodes+0x80c/0x1370 fs/fs-writeback.c:1954 __writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:2025 wb_writeback+0x42f/0xbd0 fs/fs-writeback.c:2136 wb_check_old_data_flush fs/fs-writeback.c:2240 [inline] wb_do_writeback fs/fs-writeback.c:2293 [inline] wb_workfn+0xba1/0x1090 fs/fs-writeback.c:2321 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244