WARNING: CPU: 0 PID: 6065 at fs/btrfs/extent-tree.c:2158 btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2158 Modules linked in: CPU: 0 PID: 6065 Comm: syz.1.402 Not tainted 5.15.163-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2158 lr : btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2158 sp : ffff80001da77890 x29: ffff80001da778a0 x28: dfff800000000000 x27: ffff0000ca2b6024 x26: 00000000fffffff4 x25: ffff0000dd68a738 x24: 1fffe0001bad14e7 x23: ffff0000dd68a738 x22: 0000000000000000 x21: 0000000000000009 x20: ffff0000ca2b6000 x19: ffff0000dd68a6e0 x18: 1fffe000368f698e x17: 1fffe000368f698e x16: ffff800011ab3128 x15: ffff800014b5edc0 x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : b310aabdd5d70800 x8 : b310aabdd5d70800 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff8000085554d8 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026 Call trace: btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2158 btrfs_commit_transaction+0x1b8/0x30f0 fs/btrfs/transaction.c:2166 btrfs_sync_fs+0x678/0xc94 fs/btrfs/super.c:1454 sync_fs_one_sb+0xd8/0x120 fs/sync.c:84 iterate_supers+0x124/0x1dc fs/super.c:705 ksys_sync+0xd4/0x1cc fs/sync.c:104 __arm64_sys_sync+0x14/0x24 fs/sync.c:113 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 774 hardirqs last enabled at (773): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (773): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4784 hardirqs last disabled at (774): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (718): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (718): [] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586 softirqs last disabled at (493): [] __do_softirq kernel/softirq.c:592 [inline] softirqs last disabled at (493): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (493): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (493): [] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641 ---[ end trace 7baed3501602bbbc ]--- BTRFS: error (device loop3) in btrfs_run_delayed_refs:2158: errno=-12 Out of memory BTRFS info (device loop3): forced readonly