BTRFS error (device loop4): failed to run delayed ref for logical 5365760 num_bytes 4096 type 178 action 1 ref_mod 1: -2 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: CPU: 1 PID: 8478 at fs/btrfs/extent-tree.c:2246 btrfs_run_delayed_refs+0x290/0x2bc fs/btrfs/extent-tree.c:2246 Modules linked in: CPU: 1 PID: 8478 Comm: syz-executor.4 Not tainted 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 60401005 (nZCv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : btrfs_run_delayed_refs+0x290/0x2bc fs/btrfs/extent-tree.c:2246 lr : btrfs_run_delayed_refs+0x290/0x2bc fs/btrfs/extent-tree.c:2246 sp : ffff8000a0f07800 x29: ffff8000a0f07800 x28: ffff0000f7bee3d0 x27: dfff800000000000 x26: 1fffe0001d19a934 x25: dfff800000000000 x24: 0000000000000000 x23: 0000000000000000 x22: 0000000000000000 x21: 00000000fffffffe x20: ffff0000e8cd49a0 x19: ffff0000e8cd4940 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008ae725bc x15: 0000000000000001 x14: 1fffe000367bde02 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000002 x10: 0000000000ff0100 x9 : 1c498daa5b470e00 x8 : 1c498daa5b470e00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a0f06f78 x4 : ffff80008ef650a0 x3 : ffff8000805e616c x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: btrfs_run_delayed_refs+0x290/0x2bc fs/btrfs/extent-tree.c:2246 btrfs_commit_transaction+0x220/0x2ba8 fs/btrfs/transaction.c:2185 btrfs_sync_fs+0x53c/0xaec fs/btrfs/super.c:1006 sync_filesystem+0x1a0/0x218 fs/sync.c:66 generic_shutdown_super+0x70/0x2b8 fs/super.c:620 kill_anon_super+0x4c/0x7c fs/super.c:1225 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2091 deactivate_locked_super+0xc4/0x12c fs/super.c:472 deactivate_super+0xe0/0x100 fs/super.c:505 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 596118 hardirqs last enabled at (596117): [] __up_console_sem kernel/printk/printk.c:341 [inline] hardirqs last enabled at (596117): [] __console_unlock kernel/printk/printk.c:2731 [inline] hardirqs last enabled at (596117): [] console_unlock+0x17c/0x3d4 kernel/printk/printk.c:3050 hardirqs last disabled at (596118): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (595628): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (595628): [] __do_softirq+0xb10/0xd2c kernel/softirq.c:583 softirqs last disabled at (595603): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ end trace 0000000000000000 ]--- BTRFS: error (device loop4: state A) in btrfs_run_delayed_refs:2246: errno=-2 No such entry BTRFS info (device loop4: state EA): forced readonly BTRFS info (device loop4: state EA): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8478 at fs/btrfs/block-group.c:159 btrfs_put_block_group+0x2cc/0x360 fs/btrfs/block-group.c:159 Modules linked in: CPU: 0 PID: 8478 Comm: syz-executor.4 Tainted: G W 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 80401005 (Nzcv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : btrfs_put_block_group+0x2cc/0x360 fs/btrfs/block-group.c:159 lr : btrfs_put_block_group+0x2cc/0x360 fs/btrfs/block-group.c:159 sp : ffff8000a0f07900 x29: ffff8000a0f07900 x28: dead000000000100 x27: 0000000000000002 x26: 0000000000000001 x25: ffff0000d260b000 x24: 0000000000000000 x23: dfff800000000000 x22: ffff0000f7bec180 x21: 0000000000000001 x20: fffffffffffff000 x19: ffff0000d260b000 x18: 1fffe000367b9596 x17: ffff80008ee7d000 x16: ffff8000802896e4 x15: 0000000000000001 x14: 1fffe0001a4c1635 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001a4c1636 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000ca6e9e40 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000001 x3 : ffff8000823e6a98 x2 : 0000000000000001 x1 : fffffffffffff000 x0 : 0000000000000000 Call trace: btrfs_put_block_group+0x2cc/0x360 fs/btrfs/block-group.c:159 btrfs_free_block_groups+0x9d8/0xe4c fs/btrfs/block-group.c:4418 close_ctree+0x5f4/0xb44 fs/btrfs/disk-io.c:4387 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:73 generic_shutdown_super+0x128/0x2b8 fs/super.c:641 kill_anon_super+0x4c/0x7c fs/super.c:1225 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2091 deactivate_locked_super+0xc4/0x12c fs/super.c:472 deactivate_super+0xe0/0x100 fs/super.c:505 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 598080 hardirqs last enabled at (598079): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (598080): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (597276): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (597276): [] __do_softirq+0xb10/0xd2c kernel/softirq.c:583 softirqs last disabled at (597253): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8478 at fs/btrfs/block-group.c:4448 btrfs_free_block_groups+0xcfc/0xe4c fs/btrfs/block-group.c:4448 Modules linked in: CPU: 0 PID: 8478 Comm: syz-executor.4 Tainted: G W 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 80401005 (Nzcv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : btrfs_free_block_groups+0xcfc/0xe4c fs/btrfs/block-group.c:4448 lr : btrfs_free_block_groups+0xcfc/0xe4c fs/btrfs/block-group.c:4448 sp : ffff8000a0f07940 x29: ffff8000a0f07960 x28: dead000000000100 x27: 0000000000100000 x26: 1fffe0001ef7da21 x25: ffff0000d260b800 x24: fffffffffffff000 x23: ffff0000d260c800 x22: ffff0000d260c8b0 x21: ffff0000f7bed9d8 x20: ffff0000f7bed108 x19: dfff800000000000 x18: 1fffe000367b9596 x17: ffff80008ee7d000 x16: ffff8000802896e4 x15: 0000000000000001 x14: 1fffe0001a4c1900 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000ca6e9e40 x7 : ffff8000823e1d58 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008034d408 x2 : 0000000000000001 x1 : fffffffffffff000 x0 : 0000000000000000 Call trace: btrfs_free_block_groups+0xcfc/0xe4c fs/btrfs/block-group.c:4448 close_ctree+0x5f4/0xb44 fs/btrfs/disk-io.c:4387 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:73 generic_shutdown_super+0x128/0x2b8 fs/super.c:641 kill_anon_super+0x4c/0x7c fs/super.c:1225 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2091 deactivate_locked_super+0xc4/0x12c fs/super.c:472 deactivate_super+0xe0/0x100 fs/super.c:505 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 598306 hardirqs last enabled at (598305): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (598306): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (598280): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (598280): [] __do_softirq+0xb10/0xd2c kernel/softirq.c:583 softirqs last disabled at (598085): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop4: state EA): space_info DATA+METADATA has 3227648 free, is not full BTRFS info (device loop4: state EA): space_info total=3276800, used=53248, pinned=0, reserved=18446744073709547520, may_use=0, readonly=0 zone_unusable=0 BTRFS info (device loop4: state EA): global_block_rsv: size 0 reserved 0 BTRFS info (device loop4: state EA): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop4: state EA): chunk_block_rsv: size 0 reserved 0 BTRFS info (device loop4: state EA): delayed_block_rsv: size 0 reserved 0 BTRFS info (device loop4: state EA): delayed_refs_rsv: size 0 reserved 0 EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000.