loop0: detected capacity change from 0 to 32768 BTRFS: device fsid c9fe44da-de57-406a-8241-57ec7d4412cf devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5337) BTRFS info (device loop0): first mount of filesystem c9fe44da-de57-406a-8241-57ec7d4412cf BTRFS info (device loop0): using crc32c (crc32c-lib) checksum algorithm BTRFS info (device loop0): rebuilding free space tree BTRFS info (device loop0): allowing degraded mounts BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): enabling free space tree BTRFS info (device loop0): force clearing of disk cache BTRFS info (device loop0): use zstd compression, level 3 BTRFS info (device loop0): max_inline set to 0 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/extent-tree.c:3235 at __btrfs_free_extent+0x1d81/0x3f40 fs/btrfs/extent-tree.c:3235, CPU#0: syz.0.0/5337 Modules linked in: CPU: 0 UID: 0 PID: 5337 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+0x1d84/0x3f40 fs/btrfs/extent-tree.c:3235 Code: ae 0b 00 00 e8 9d f3 d9 fd 84 c0 0f 84 99 02 00 00 e8 20 fe f3 fd e9 97 0b 00 00 e8 16 fe f3 fd 48 8d 3d df 09 be 0b 44 89 e6 <67> 48 0f b9 3a e9 87 e9 ff ff e8 2d 9d 8e 07 89 c3 31 ff 89 c6 e8 RSP: 0018:ffffc9000dba6be0 EFLAGS: 00010246 RAX: ffffffff83cd094a RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc90020491000 RSI: 00000000ffffffe4 RDI: ffffffff8f8b1330 RBP: ffffc9000dba6d90 R08: ffff888035fb24c0 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: 00000000ffffffe4 R13: dffffc0000000000 R14: 00000000ffffffe4 R15: ffff888000c1c001 FS: 00007fe9a62126c0(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe9a54d45d8 CR3: 0000000041be5000 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:1973 [inline] __btrfs_run_delayed_refs+0xe6a/0x3af0 fs/btrfs/extent-tree.c:2048 btrfs_run_delayed_refs+0xe6/0x3a0 fs/btrfs/extent-tree.c:2160 btrfs_commit_transaction+0x28b/0x3b10 fs/btrfs/transaction.c:2229 btrfs_sync_file+0xd20/0x1140 fs/btrfs/file.c:1819 generic_write_sync include/linux/fs.h:2616 [inline] btrfs_do_write_iter+0x689/0x820 fs/btrfs/file.c:1470 iter_file_splice_write+0x972/0x10b0 fs/splice.c:738 do_splice_from fs/splice.c:938 [inline] direct_splice_actor+0x101/0x160 fs/splice.c:1161 splice_direct_to_actor+0x5a8/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+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe9a538f7c9 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:00007fe9a6212038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fe9a55e5fa0 RCX: 00007fe9a538f7c9 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000009 RBP: 00007fe9a5413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe9a55e6038 R14: 00007fe9a55e5fa0 R15: 00007fffbfa98798 ---------------- Code disassembly (best guess): 0: ae scas %es:(%rdi),%al 1: 0b 00 or (%rax),%eax 3: 00 e8 add %ch,%al 5: 9d popf 6: f3 d9 fd repz fscale 9: 84 c0 test %al,%al b: 0f 84 99 02 00 00 je 0x2aa 11: e8 20 fe f3 fd call 0xfdf3fe36 16: e9 97 0b 00 00 jmp 0xbb2 1b: e8 16 fe f3 fd call 0xfdf3fe36 20: 48 8d 3d df 09 be 0b lea 0xbbe09df(%rip),%rdi # 0xbbe0a06 27: 44 89 e6 mov %r12d,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 87 e9 ff ff jmp 0xffffe9bb 34: e8 2d 9d 8e 07 call 0x78e9d66 39: 89 c3 mov %eax,%ebx 3b: 31 ff xor %edi,%edi 3d: 89 c6 mov %eax,%esi 3f: e8 .byte 0xe8