------------[ cut here ]------------ WARNING: CPU: 0 PID: 6080 at include/linux/backing-dev.h:246 inode_to_wb include/linux/backing-dev.h:243 [inline] WARNING: CPU: 0 PID: 6080 at include/linux/backing-dev.h:246 folio_account_dirtied mm/page-writeback.c:2587 [inline] WARNING: CPU: 0 PID: 6080 at include/linux/backing-dev.h:246 __folio_mark_dirty+0x878/0xd04 mm/page-writeback.c:2638 Modules linked in: CPU: 0 PID: 6080 Comm: syz.1.648 Not tainted 6.1.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : inode_to_wb include/linux/backing-dev.h:243 [inline] pc : folio_account_dirtied mm/page-writeback.c:2587 [inline] pc : __folio_mark_dirty+0x878/0xd04 mm/page-writeback.c:2638 lr : inode_to_wb include/linux/backing-dev.h:243 [inline] lr : folio_account_dirtied mm/page-writeback.c:2587 [inline] lr : __folio_mark_dirty+0x878/0xd04 mm/page-writeback.c:2638 sp : ffff8000218d7680 x29: ffff8000218d76a0 x28: dfff800000000000 x27: 1fffe00018093932 x26: 0000000000000000 x25: ffff0000c049c990 x24: 0000000000000001 x23: 0000000000000000 x22: fffffc000340d188 x21: 1fffff8000681a30 x20: ffff0000d92b1280 x19: fffffc000340d180 x18: ffff8000218d7440 x17: ffff800018aab000 x16: ffff8000082ff2b8 x15: ffff80001858bf80 x14: 1ffff00002b3a0b0 x13: dfff800000000000 x12: 0000000000040000 x11: 000000000003ffff x10: ffff800021d3b000 x9 : ffff800008773e48 x8 : 0000000000040000 x7 : ffff800008773618 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff8000083193e4 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: inode_to_wb include/linux/backing-dev.h:243 [inline] folio_account_dirtied mm/page-writeback.c:2587 [inline] __folio_mark_dirty+0x878/0xd04 mm/page-writeback.c:2638 __set_page_dirty include/linux/pagemap.h:1088 [inline] mark_buffer_dirty+0x2c0/0x624 fs/buffer.c:1105 gfs2_unpin+0x120/0x954 fs/gfs2/lops.c:111 buf_lo_after_commit+0x134/0x18c fs/gfs2/lops.c:747 lops_after_commit fs/gfs2/lops.h:49 [inline] gfs2_log_flush+0xc4c/0x1b20 fs/gfs2/log.c:1116 do_sync+0x934/0xb48 fs/gfs2/quota.c:986 gfs2_quota_sync+0x2e4/0x534 fs/gfs2/quota.c:1329 gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:660 sync_fs_one_sb+0xd8/0x120 fs/sync.c:84 iterate_supers+0x124/0x1dc fs/super.c:757 ksys_sync+0xc8/0x1cc fs/sync.c:103 __arm64_sys_sync+0x14/0x24 fs/sync.c:113 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 2256 hardirqs last enabled at (2255): [] folio_memcg_lock+0xf4/0x20c mm/memcontrol.c:2110 hardirqs last disabled at (2256): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (2256): [] _raw_spin_lock_irqsave+0xa4/0xb4 kernel/locking/spinlock.c:162 softirqs last enabled at (2038): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (2038): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (1851): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ end trace 0000000000000000 ]---