------------[ cut here ]------------ WARNING: CPU: 1 PID: 39 at include/linux/backing-dev.h:246 inode_to_wb include/linux/backing-dev.h:243 [inline] WARNING: CPU: 1 PID: 39 at include/linux/backing-dev.h:246 folio_account_dirtied mm/page-writeback.c:2587 [inline] WARNING: CPU: 1 PID: 39 at include/linux/backing-dev.h:246 __folio_mark_dirty+0x878/0xd04 mm/page-writeback.c:2638 Modules linked in: CPU: 1 PID: 39 Comm: kworker/u4:2 Not tainted 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: writeback wb_workfn (flush-7:0) pstate: 804000c5 (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 : ffff80001d636ee0 x29: ffff80001d636f00 x28: dfff800000000000 x27: 1fffe000180a83b2 x26: 0000000000000000 x25: ffff0000c0541d90 x24: 0000000000000001 x23: 0000000000000000 x22: fffffc000334dbc8 x21: 1fffff8000669b78 x20: ffff0000d5866258 x19: fffffc000334dbc0 x18: ffff80001d636bc0 x17: ffff800018aab000 x16: ffff8000083042fc x15: ffff80001858bf80 x14: ffff0000c0a5ddb8 x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff800008779128 x8 : ffff0000c0a5d340 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000020 x4 : 0000000000000000 x3 : ffff800008afd588 x2 : ffff0000ce3b4060 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 gfs2_write_inode+0x184/0x350 fs/gfs2/super.c:453 write_inode fs/fs-writeback.c:1460 [inline] __writeback_single_inode+0x614/0x1770 fs/fs-writeback.c:1677 writeback_sb_inodes+0x978/0x1718 fs/fs-writeback.c:1903 __writeback_inodes_wb+0x110/0x39c fs/fs-writeback.c:1974 wb_writeback+0x428/0x1130 fs/fs-writeback.c:2079 wb_check_old_data_flush fs/fs-writeback.c:2179 [inline] wb_do_writeback fs/fs-writeback.c:2232 [inline] wb_workfn+0xc08/0x1034 fs/fs-writeback.c:2260 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 irq event stamp: 209068 hardirqs last enabled at (209067): [] folio_memcg_lock+0xf4/0x20c mm/memcontrol.c:2110 hardirqs last disabled at (209068): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (209068): [] _raw_spin_lock_irqsave+0xa4/0xb4 kernel/locking/spinlock.c:162 softirqs last enabled at (198394): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (198394): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (198387): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 1 PID: 39 at include/linux/backing-dev.h:246 inode_to_wb include/linux/backing-dev.h:243 [inline] WARNING: CPU: 1 PID: 39 at include/linux/backing-dev.h:246 __folio_start_writeback+0x8fc/0xaf8 mm/page-writeback.c:3003 Modules linked in: CPU: 1 PID: 39 Comm: kworker/u4:2 Tainted: G W 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: writeback wb_workfn (flush-7:0) pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : inode_to_wb include/linux/backing-dev.h:243 [inline] pc : __folio_start_writeback+0x8fc/0xaf8 mm/page-writeback.c:3003 lr : inode_to_wb include/linux/backing-dev.h:243 [inline] lr : __folio_start_writeback+0x8fc/0xaf8 mm/page-writeback.c:3003 sp : ffff80001d636aa0 x29: ffff80001d636b80 x28: 0000000000000000 x27: ffff700003ac6d5c x26: 0000000000000000 x25: 0000000000000000 x24: ffff0000d58642a0 x23: ffff80001d636b00 x22: ffff0000c0541be8 x21: 0000000000000001 x20: fffffc00032af388 x19: fffffc00032af380 x18: ffff80001d636780 x17: ffff800018aab000 x16: ffff8000083042fc x15: ffff80001858bf80 x14: ffff0000c0a5ddb8 x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000877b708 x8 : ffff0000c0a5d340 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000020 x4 : 0000000000000000 x3 : ffff80000877b1a4 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: inode_to_wb include/linux/backing-dev.h:243 [inline] __folio_start_writeback+0x8fc/0xaf8 mm/page-writeback.c:3003 set_page_writeback+0x5c/0x7c mm/folio-compat.c:56 gfs2_aspace_writepage+0x524/0x6f8 fs/gfs2/meta_io.c:73 __writepage+0x70/0x18c mm/page-writeback.c:2447 write_cache_pages+0x7fc/0xf60 mm/page-writeback.c:2382 generic_writepages mm/page-writeback.c:2473 [inline] do_writepages+0x340/0x56c mm/page-writeback.c:2493 filemap_fdatawrite_wbc+0x124/0x174 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] __filemap_fdatawrite mm/filemap.c:427 [inline] filemap_fdatawrite+0x12c/0x19c mm/filemap.c:432 gfs2_write_inode+0x234/0x350 fs/gfs2/super.c:459 write_inode fs/fs-writeback.c:1460 [inline] __writeback_single_inode+0x614/0x1770 fs/fs-writeback.c:1677 writeback_sb_inodes+0x978/0x1718 fs/fs-writeback.c:1903 __writeback_inodes_wb+0x110/0x39c fs/fs-writeback.c:1974 wb_writeback+0x428/0x1130 fs/fs-writeback.c:2079 wb_check_old_data_flush fs/fs-writeback.c:2179 [inline] wb_do_writeback fs/fs-writeback.c:2232 [inline] wb_workfn+0xc08/0x1034 fs/fs-writeback.c:2260 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 irq event stamp: 209204 hardirqs last enabled at (209203): [] folio_memcg_lock+0xf4/0x20c mm/memcontrol.c:2110 hardirqs last disabled at (209204): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (209204): [] _raw_spin_lock_irqsave+0xa4/0xb4 kernel/locking/spinlock.c:162 softirqs last enabled at (209180): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (209180): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (209071): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ end trace 0000000000000000 ]---