loop0: detected capacity change from 0 to 32768 BTRFS: device fsid e417788f-7a09-42b2-9266-8ddc5d5d35d2 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5358) BTRFS info (device loop0): first mount of filesystem e417788f-7a09-42b2-9266-8ddc5d5d35d2 BTRFS info (device loop0): using xxhash64 (xxhash64-generic) checksum algorithm BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): enabling free space tree ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 5358 at fs/btrfs/extent-tree.c:3237 __btrfs_free_extent+0x2cd5/0x4250 fs/btrfs/extent-tree.c:3237 Modules linked in: CPU: 0 UID: 0 PID: 5358 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__btrfs_free_extent+0x2cd5/0x4250 fs/btrfs/extent-tree.c:3237 Code: 3c e2 fd 84 c0 74 58 e8 69 99 fb fd e9 dd 02 00 00 e8 5f 99 fb fd 90 48 c7 c7 40 3a ed 8b 45 89 f7 44 89 f6 e8 6c 26 bf fd 90 <0f> 0b 90 90 e9 47 da ff ff e8 dd 2a b8 07 89 c3 31 ff 89 c6 e8 72 RSP: 0018:ffffc9000f5bea00 EFLAGS: 00010246 RAX: 7f3134a15df0d700 RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000dd82000 RSI: 00000000000320e1 RDI: 00000000000320e2 RBP: ffffc9000f5bebb0 R08: ffff88801fc24253 R09: 1ffff11003f8484a R10: dffffc0000000000 R11: ffffed1003f8484b R12: 00000000ffffffe4 R13: 0000000000000345 R14: 00000000ffffffe4 R15: 00000000ffffffe4 FS: 00007f42d8ad66c0(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f42d8ab4fc8 CR3: 0000000043e02000 CR4: 0000000000352ef0 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1749 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1775 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1972 [inline] __btrfs_run_delayed_refs+0xe7f/0x4130 fs/btrfs/extent-tree.c:2047 btrfs_run_delayed_refs+0xe6/0x3b0 fs/btrfs/extent-tree.c:2159 btrfs_commit_transaction+0x269/0x3950 fs/btrfs/transaction.c:2214 btrfs_sync_file+0xd30/0x1160 fs/btrfs/file.c:1819 generic_write_sync include/linux/fs.h:3043 [inline] btrfs_do_write_iter+0x59a/0x710 fs/btrfs/file.c:1470 iter_file_splice_write+0x975/0x10e0 fs/splice.c:738 backing_file_splice_write+0x3c1/0x5e0 fs/backing-file.c:315 ovl_splice_write+0x43d/0x580 fs/overlayfs/file.c:440 do_splice_from fs/splice.c:938 [inline] direct_splice_actor+0x101/0x160 fs/splice.c:1161 splice_direct_to_actor+0x5a5/0xcc0 fs/splice.c:1105 do_splice_direct_actor fs/splice.c:1204 [inline] do_splice_direct+0x181/0x270 fs/splice.c:1230 do_sendfile+0x4da/0x7e0 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1431 [inline] __se_sys_sendfile64+0x13e/0x190 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f42d7b8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f42d8ad6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f42d7de5fa0 RCX: 00007f42d7b8eec9 RDX: 0000000000000000 RSI: 000000000000000c RDI: 000000000000000d RBP: 00007f42d7c11f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000040001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f42d7de6038 R14: 00007f42d7de5fa0 R15: 00007ffd7fd45358