------------[ cut here ]------------ WARNING: CPU: 1 PID: 6297 at include/linux/backing-dev.h:256 inode_to_wb include/linux/backing-dev.h:253 [inline] WARNING: CPU: 1 PID: 6297 at include/linux/backing-dev.h:256 folio_account_dirtied+0x3b0/0x650 mm/page-writeback.c:2677 Modules linked in: CPU: 1 PID: 6297 Comm: syz-executor.3 Not tainted 6.2.0-rc6-syzkaller-17549-gca72d58361ee #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : inode_to_wb include/linux/backing-dev.h:253 [inline] pc : folio_account_dirtied+0x3b0/0x650 mm/page-writeback.c:2677 lr : inode_to_wb include/linux/backing-dev.h:253 [inline] lr : folio_account_dirtied+0x3b0/0x650 mm/page-writeback.c:2677 sp : ffff800013ec3580 x29: ffff800013ec3580 x28: ffff00011af8aed0 x27: ffff80000d804000 x26: 0000000000000176 x25: ffff800009296ea8 x24: 000000000000000e x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000001 x20: ffff0000c58d4f60 x19: fffffc00046c7700 x18: 000000000000015c x17: ffff80000c17e8bc x16: ffff80000ddcb118 x15: ffff00011bd73400 x14: 0000000000000050 x13: 00000000ffffffff x12: 0000000000040000 x11: 000000000003ffff x10: ffff80001b66c000 x9 : ffff8000083fd140 x8 : 0000000000040000 x7 : ffff8000083fcc44 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: inode_to_wb include/linux/backing-dev.h:253 [inline] folio_account_dirtied+0x3b0/0x650 mm/page-writeback.c:2677 __folio_mark_dirty+0xbc/0x180 mm/page-writeback.c:2728 __set_page_dirty include/linux/pagemap.h:1052 [inline] mark_buffer_dirty+0x148/0x368 fs/buffer.c:1105 gfs2_unpin+0xc4/0x31c fs/gfs2/lops.c:111 buf_lo_after_commit+0x70/0xac fs/gfs2/lops.c:747 lops_after_commit fs/gfs2/lops.h:49 [inline] gfs2_log_flush+0x6a4/0xc98 fs/gfs2/log.c:1116 gfs2_inplace_reserve+0x3c0/0x11c4 fs/gfs2/rgrp.c:2188 gfs2_iomap_begin_write fs/gfs2/bmap.c:1017 [inline] gfs2_iomap_begin+0x3f8/0x5f8 fs/gfs2/bmap.c:1112 iomap_iter+0x2bc/0x400 fs/iomap/iter.c:91 iomap_file_buffered_write+0xac/0x154 fs/iomap/buffered-io.c:850 gfs2_file_buffered_write+0x2e0/0x498 fs/gfs2/file.c:1045 gfs2_file_write_iter+0x238/0x65c fs/gfs2/file.c:1146 do_iter_write+0x318/0x560 fs/read_write.c:861 vfs_writev fs/read_write.c:934 [inline] do_pwritev+0x130/0x1e8 fs/read_write.c:1031 __do_sys_pwritev2 fs/read_write.c:1090 [inline] __se_sys_pwritev2 fs/read_write.c:1081 [inline] __arm64_sys_pwritev2+0x5c/0x90 fs/read_write.c:1081 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x104 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 174682 hardirqs last enabled at (174681): [] folio_memcg_lock+0xdc/0x154 mm/memcontrol.c:2115 hardirqs last disabled at (174682): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (174682): [] _raw_spin_lock_irqsave+0x2c/0x88 kernel/locking/spinlock.c:162 softirqs last enabled at (171234): [] _stext+0x2c4/0x34c softirqs last disabled at (171195): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---