BTRFS info (device loop0): enabling free space tree ------------[ cut here ]------------ btrfs_abort_should_print_stack(__error) WARNING: fs/btrfs/extent-tree.c:3425 at __btrfs_free_extent.isra.0+0x82e/0x21b0 fs/btrfs/extent-tree.c:3425, CPU#2: syz-executor.0/6005 Modules linked in: CPU: 2 UID: 0 PID: 6005 Comm: syz-executor.0 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:__btrfs_free_extent.isra.0+0x82e/0x21b0 fs/btrfs/extent-tree.c:3425 Code: c6 60 0e 6a 8c 48 89 fb e8 7f 5d 9e fd 8d 43 1e 83 f8 19 77 0f ba 01 00 04 02 48 0f a3 c2 0f 82 f1 f2 be fc e8 93 62 9e fd 90 <0f> 0b 90 e9 e3 f2 be fc e8 85 62 9e fd 48 8d 7b 60 48 b8 00 00 00 RSP: 0018:ffffc900043defd8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffffffffffffe4 RCX: 0000000000000000 RDX: ffff88802cec2580 RSI: ffffffff8470160d RDI: 0000000000000005 RBP: 0000000000625000 R08: fffffffffffffffb R09: ffffffffffffffe4 R10: ffff88802f675c2f R11: 0000000000000000 R12: ffff88803dbfb8f0 R13: ffff888032ecf510 R14: ffff88802f674000 R15: 00000000ffffffe4 FS: 00007fb960e826c0(0000) GS:ffff8880d4675000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d9ad8c286 CR3: 000000002ddab000 CR4: 0000000000352ef0 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+0x9b6/0x3990 fs/btrfs/extent-tree.c:2134 btrfs_run_delayed_refs+0x1a0/0x2c0 fs/btrfs/extent-tree.c:2246 btrfs_commit_transaction+0x1f2d/0x3660 fs/btrfs/transaction.c:2283 btrfs_sync_file+0xbc7/0x1120 fs/btrfs/file.c:1774 vfs_fsync_range+0x9b/0x190 fs/sync.c:186 generic_write_sync include/linux/fs.h:2695 [inline] iomap_dio_complete+0x82e/0xa70 fs/iomap/direct-io.c:162 btrfs_direct_write+0x678/0xed0 fs/btrfs/direct-io.c:988 btrfs_do_write_iter+0x6b8/0x8f0 fs/btrfs/file.c:1427 iter_file_splice_write+0x830/0x10b0 fs/splice.c:736 do_splice_from fs/splice.c:936 [inline] direct_splice_actor+0x192/0x690 fs/splice.c:1187 splice_direct_to_actor+0x341/0xa30 fs/splice.c:1096 do_splice_direct_actor fs/splice.c:1230 [inline] do_splice_direct+0x174/0x240 fs/splice.c:1256 do_sendfile+0xadc/0xe20 fs/read_write.c:1371 __do_sys_sendfile64 fs/read_write.c:1432 [inline] __se_sys_sendfile64 fs/read_write.c:1418 [inline] __x64_sys_sendfile64+0x1d8/0x220 fs/read_write.c:1418 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb96006e3b9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb960e82078 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fb9601abf80 RCX: 00007fb96006e3b9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb9600cf498 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000880000c R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fb9601abf80 R15: 00007ffde601ea18