------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: fs/btrfs/extent-tree.c:3181 at do_free_extent_accounting fs/btrfs/extent-tree.c:3181 [inline], CPU#0: syz-executor/5837 WARNING: fs/btrfs/extent-tree.c:3181 at __btrfs_free_extent.isra.0+0x2478/0x2bb0 fs/btrfs/extent-tree.c:3554, CPU#0: syz-executor/5837 Modules linked in: CPU: 0 UID: 0 PID: 5837 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 RIP: 0010:do_free_extent_accounting fs/btrfs/extent-tree.c:3181 [inline] RIP: 0010:__btrfs_free_extent.isra.0+0x247c/0x2bb0 fs/btrfs/extent-tree.c:3554 Code: 00 00 48 c7 c7 00 c3 03 8c c6 05 07 e2 94 0c 01 e8 59 3a b7 fd e9 3b 0f 01 fd e8 2f 7f db fd 48 8d 3d c8 6b b5 0c 8b 74 24 38 <67> 48 0f b9 3a bb 01 00 00 00 e9 ad 15 01 fd e8 10 7f db fd 48 8b RSP: 0018:ffffc90003937750 EFLAGS: 00010293 RAX: 0000000000000000 RBX: fffffffffffffffe RCX: ffffffff842d580d RDX: ffff888025bd8000 RSI: 00000000fffffffe RDI: ffffffff90e2c8a0 RBP: 000000000051c000 R08: 0000000000000005 R09: fffffffffffffffb R10: fffffffffffffffe R11: 0000000000000000 R12: ffff8880267ad160 R13: 0000000000000000 R14: 00000000fffffffe R15: 0000000000001000 FS: 000055557c697500(0000) GS:ffff88812433c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f87fc600020 CR3: 000000005a46a000 CR4: 0000000000350ef0 Call Trace: run_delayed_data_ref fs/btrfs/extent-tree.c:1665 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1855 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2058 [inline] __btrfs_run_delayed_refs+0x910/0x3d20 fs/btrfs/extent-tree.c:2133 btrfs_run_delayed_refs+0x1a4/0x3c0 fs/btrfs/extent-tree.c:2245 btrfs_commit_transaction+0x9ae/0x3860 fs/btrfs/transaction.c:2473 btrfs_sync_fs+0x129/0x7e0 fs/btrfs/super.c:1051 sync_filesystem fs/sync.c:66 [inline] sync_filesystem+0x1d0/0x290 fs/sync.c:30 generic_shutdown_super+0x86/0x360 fs/super.c:625 kill_anon_super+0x3a/0x60 fs/super.c:1292 btrfs_kill_super+0x3b/0x50 fs/btrfs/super.c:2127 deactivate_locked_super+0xc1/0x1b0 fs/super.c:476 deactivate_super fs/super.c:509 [inline] deactivate_super+0xe7/0x110 fs/super.c:505 cleanup_mnt+0x21f/0x450 fs/namespace.c:1312 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0x100/0x4a0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x67c/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f25ff39da57 Code: a2 c7 05 9c fc 24 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 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 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffca7e47738 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f25ff432048 RCX: 00007f25ff39da57 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffca7e477f0 RBP: 00007ffca7e477f0 R08: 00007ffca7e487f0 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffca7e48880 R13: 00007f25ff432048 R14: 0000000000064a96 R15: 00007ffca7e488c0 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 48 c7 c7 00 c3 03 8c mov $0xffffffff8c03c300,%rdi 9: c6 05 07 e2 94 0c 01 movb $0x1,0xc94e207(%rip) # 0xc94e217 10: e8 59 3a b7 fd call 0xfdb73a6e 15: e9 3b 0f 01 fd jmp 0xfd010f55 1a: e8 2f 7f db fd call 0xfddb7f4e 1f: 48 8d 3d c8 6b b5 0c lea 0xcb56bc8(%rip),%rdi # 0xcb56bee 26: 8b 74 24 38 mov 0x38(%rsp),%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: bb 01 00 00 00 mov $0x1,%ebx 34: e9 ad 15 01 fd jmp 0xfd0115e6 39: e8 10 7f db fd call 0xfddb7f4e 3e: 48 rex.W 3f: 8b .byte 0x8b