------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: CPU: 1 PID: 2821 at fs/btrfs/extent-tree.c:2975 do_free_extent_accounting fs/btrfs/extent-tree.c:2975 [inline] WARNING: CPU: 1 PID: 2821 at fs/btrfs/extent-tree.c:2975 __btrfs_free_extent+0x1376/0x1500 fs/btrfs/extent-tree.c:3349 Modules linked in: CPU: 1 PID: 2821 Comm: syz-executor.3 Not tainted 6.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:do_free_extent_accounting fs/btrfs/extent-tree.c:2975 [inline] RIP: 0010:__btrfs_free_extent+0x1376/0x1500 fs/btrfs/extent-tree.c:3349 Code: 48 c7 c7 7f 36 39 83 44 89 f6 e8 95 07 9b ff 90 0f 0b 90 90 e9 d0 f9 ff ff 90 48 c7 c7 7f 36 39 83 44 89 f6 e8 7b 07 9b ff 90 <0f> 0b 90 90 e9 17 fa ff ff 90 48 c7 c7 7f 36 39 83 44 89 f6 e8 61 RSP: 0018:ffffc90002b9baf8 EFLAGS: 00010246 RAX: fc2aa286c850f600 RBX: 0000000000503000 RCX: 0000000000000002 RDX: 0000000000000000 RSI: c0000000ffffdfff RDI: 00000000ffffffff RBP: 0000000000001000 R08: 0000000000000000 R09: ffffffff836cce30 R10: 00000000ffffffff R11: 00000000ffffdfff R12: ffff88817ecc0000 R13: ffff88810befecb0 R14: 00000000fffffffe R15: 0000000000000001 FS: 0000555557172480(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b7c88f5f70 CR3: 000000010e2e2000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1751 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1776 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2034 [inline] __btrfs_run_delayed_refs+0x58b/0x15b0 fs/btrfs/extent-tree.c:2104 btrfs_run_delayed_refs+0x33/0x110 fs/btrfs/extent-tree.c:2216 btrfs_commit_transaction+0x183/0x1200 fs/btrfs/transaction.c:2271 sync_filesystem+0x75/0x90 fs/sync.c:66 generic_shutdown_super+0x25/0x110 fs/super.c:666 kill_anon_super+0x16/0x30 fs/super.c:1292 btrfs_kill_super+0x11/0x20 fs/btrfs/super.c:2097 deactivate_locked_super+0x2d/0x90 fs/super.c:481 cleanup_mnt+0xfe/0x150 fs/namespace.c:1254 task_work_run+0x81/0xb0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xa9/0xc0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x64/0xe0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x2d/0x220 kernel/entry/common.c:296 do_syscall_64+0x55/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x6f/0xd9 RIP: 0033:0x7fe065a7e257 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff3def29e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fe065a7e257 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff3def2aa0 RBP: 00007fff3def2aa0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff3def3b50 R13: 00007fe065ad96c6 R14: 000000000000c98e R15: 0000000000000005