------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: CPU: 1 PID: 6253 at fs/btrfs/extent-tree.c:3017 do_free_extent_accounting fs/btrfs/extent-tree.c:3017 [inline] WARNING: CPU: 1 PID: 6253 at fs/btrfs/extent-tree.c:3017 __btrfs_free_extent+0x286c/0x3180 fs/btrfs/extent-tree.c:3391 Modules linked in: CPU: 1 PID: 6253 Comm: syz-executor.1 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 : do_free_extent_accounting fs/btrfs/extent-tree.c:3017 [inline] pc : __btrfs_free_extent+0x286c/0x3180 fs/btrfs/extent-tree.c:3391 lr : do_free_extent_accounting fs/btrfs/extent-tree.c:3017 [inline] lr : __btrfs_free_extent+0x286c/0x3180 fs/btrfs/extent-tree.c:3391 sp : ffff80009a537160 x29: ffff80009a537320 x28: 0000000000000191 x27: ffff0000df44a628 x26: 00000000fffffffe x25: dfff800000000000 x24: ffff7000134a6e48 x23: ffff0000df44a5c8 x22: dfff800000000000 x21: ffff0000c43aba50 x20: 0000000000000000 x19: 0000000000000000 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008ae725bc x15: 0000000000000001 x14: 1fffe000367bde02 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000002 x10: 0000000000ff0100 x9 : ef670ae5c9d91200 x8 : ef670ae5c9d91200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009a5368d8 x4 : ffff80008ef650a0 x3 : ffff8000805e616c x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: do_free_extent_accounting fs/btrfs/extent-tree.c:3017 [inline] __btrfs_free_extent+0x286c/0x3180 fs/btrfs/extent-tree.c:3391 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2062 [inline] __btrfs_run_delayed_refs+0x1040/0x3d8c fs/btrfs/extent-tree.c:2132 btrfs_run_delayed_refs+0xc4/0x2bc fs/btrfs/extent-tree.c:2244 btrfs_commit_transaction+0x10e4/0x2ba8 fs/btrfs/transaction.c:2406 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: 1271686 hardirqs last enabled at (1271685): [] __up_console_sem kernel/printk/printk.c:341 [inline] hardirqs last enabled at (1271685): [] __console_unlock kernel/printk/printk.c:2731 [inline] hardirqs last enabled at (1271685): [] console_unlock+0x17c/0x3d4 kernel/printk/printk.c:3050 hardirqs last disabled at (1271686): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (1271352): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (1271352): [] __do_softirq+0xb10/0xd2c kernel/softirq.c:583 softirqs last disabled at (1271333): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ end trace 0000000000000000 ]--- BTRFS: error (device loop1: state A) in do_free_extent_accounting:3017: errno=-2 No such entry BTRFS info (device loop1: state EA): forced readonly BTRFS error (device loop1: state EA): failed to run delayed ref for logical 5365760 num_bytes 4096 type 176 action 2 ref_mod 1: -2 BTRFS: error (device loop1: state EA) in btrfs_run_delayed_refs:2246: errno=-2 No such entry BTRFS warning (device loop1: state EA): Skipping commit of aborted transaction. BTRFS: error (device loop1: state EA) in cleanup_transaction:2005: errno=-2 No such entry BTRFS info (device loop1: state EA): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d NILFS (loop1): DAT doesn't have a block to manage vblocknr = 147 NILFS error (device loop1): nilfs_bmap_truncate: broken bmap (inode number=15) Remounting filesystem read-only NILFS (loop1): error -5 truncating bmap (ino=15) NILFS (loop1): disposed unprocessed dirty file(s) when detaching log writer NILFS (loop1): discard dirty page: offset=0, ino=2 NILFS (loop1): discard dirty block: blocknr=18, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty page: offset=0, ino=6 NILFS (loop1): discard dirty block: blocknr=35, size=1024 NILFS (loop1): discard dirty block: blocknr=36, size=1024 NILFS (loop1): discard dirty block: blocknr=37, size=1024 NILFS (loop1): discard dirty block: blocknr=38, size=1024 NILFS (loop1): discard dirty page: offset=163840, ino=3 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=47, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty page: offset=196608, ino=3 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=49, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): DAT doesn't have a block to manage vblocknr = 147 NILFS error (device loop1): nilfs_bmap_truncate: broken bmap (inode number=15) Remounting filesystem read-only NILFS (loop1): error -5 truncating bmap (ino=15) NILFS (loop1): disposed unprocessed dirty file(s) when detaching log writer NILFS (loop1): discard dirty page: offset=0, ino=2 NILFS (loop1): discard dirty block: blocknr=18, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty page: offset=0, ino=6 NILFS (loop1): discard dirty block: blocknr=35, size=1024 NILFS (loop1): discard dirty block: blocknr=36, size=1024 NILFS (loop1): discard dirty block: blocknr=37, size=1024 NILFS (loop1): discard dirty block: blocknr=38, size=1024 NILFS (loop1): discard dirty page: offset=163840, ino=3 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=47, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty page: offset=196608, ino=3 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop1): discard dirty block: blocknr=49, size=1024 NILFS (loop1): discard dirty block: blocknr=18446744073709551615, size=1024 XFS (loop1): Unmounting Filesystem bfdc47fc-10d8-4eed-a562-11a831b3f791