------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: fs/btrfs/extent-tree.c:3105 at do_free_extent_accounting fs/btrfs/extent-tree.c:3105 [inline], CPU#0: syz-executor/5444 WARNING: fs/btrfs/extent-tree.c:3105 at __btrfs_free_extent+0x3a28/0x4350 fs/btrfs/extent-tree.c:3474, CPU#0: syz-executor/5444 Modules linked in: CPU: 0 UID: 0 PID: 5444 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:do_free_extent_accounting fs/btrfs/extent-tree.c:3105 [inline] RIP: 0010:__btrfs_free_extent+0x3a2b/0x4350 fs/btrfs/extent-tree.c:3474 Code: c0 05 00 00 e8 66 1d c4 fd 84 c0 0f 84 f3 00 00 00 e8 09 14 df fd e9 a9 05 00 00 e8 ff 13 df fd 48 8d 3d 28 27 34 0c 44 89 ee <67> 48 0f b9 3a e9 af e2 ff ff e8 e6 13 df fd eb 05 e8 df 13 df fd RSP: 0018:ffffc90001f97440 EFLAGS: 00010293 RAX: ffffffff83e68831 RBX: ffff888040d07bf0 RCX: ffff88801f7b8000 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff901aaf60 RBP: ffffc90001f975f0 R08: ffff88801f7b8000 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: ffff88804274b000 R13: 00000000fffffffe R14: 0000000000000000 R15: ffff888041e80001 FS: 0000555590818500(0000) GS:ffff88808ca5b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f28a1000218 CR3: 0000000041639000 CR4: 0000000000352ef0 Call Trace: run_one_delayed_ref fs/btrfs/extent-tree.c:-1 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2003 [inline] __btrfs_run_delayed_refs+0x15e7/0x4240 fs/btrfs/extent-tree.c:2078 btrfs_run_delayed_refs+0xe6/0x3b0 fs/btrfs/extent-tree.c:2190 btrfs_commit_transaction+0xfb6/0x31a0 fs/btrfs/transaction.c:2457 sync_filesystem+0x1cf/0x230 fs/sync.c:66 generic_shutdown_super+0x77/0x2d0 fs/super.c:625 kill_anon_super+0x3b/0x70 fs/super.c:1292 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2127 deactivate_locked_super+0xbc/0x130 fs/super.c:476 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312 task_work_run+0x1d9/0x270 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+0xed/0x480 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+0x32d/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3d90d9d897 Code: a2 c7 05 5c ee 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:00007fff874f9a28 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f3d90e31ef0 RCX: 00007f3d90d9d897 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff874f9ae0 RBP: 00007fff874f9ae0 R08: 00007fff874faae0 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff874fab70 R13: 00007f3d90e31ef0 R14: 000000000001b972 R15: 00007fff874fabb0 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 05 00 00 e8 66 add $0x66e80000,%eax 5: 1d c4 fd 84 c0 sbb $0xc084fdc4,%eax a: 0f 84 f3 00 00 00 je 0x103 10: e8 09 14 df fd call 0xfddf141e 15: e9 a9 05 00 00 jmp 0x5c3 1a: e8 ff 13 df fd call 0xfddf141e 1f: 48 8d 3d 28 27 34 0c lea 0xc342728(%rip),%rdi # 0xc34274e 26: 44 89 ee mov %r13d,%esi * 29: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2e: e9 af e2 ff ff jmp 0xffffe2e2 33: e8 e6 13 df fd call 0xfddf141e 38: eb 05 jmp 0x3f 3a: e8 df 13 df fd call 0xfddf141e