loop0: detected capacity change from 0 to 32768 BTRFS: device fsid ed167579-eb65-4e76-9a50-61ac97e9b59d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5319) BTRFS info (device loop0): first mount of filesystem ed167579-eb65-4e76-9a50-61ac97e9b59d BTRFS info (device loop0): using sha256 (sha256-avx2) checksum algorithm BTRFS info (device loop0): rebuilding free space tree BTRFS info (device loop0): disabling free space tree BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5319 at fs/btrfs/extent-tree.c:3196 __btrfs_free_extent+0x29b1/0x3980 fs/btrfs/extent-tree.c:3196 Modules linked in: CPU: 0 UID: 0 PID: 5319 Comm: syz.0.0 Not tainted 6.14.0-rc1-syzkaller-00020-g0de63bb7d919 #0 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+0x29b1/0x3980 fs/btrfs/extent-tree.c:3196 Code: 8b 44 24 08 8b 10 48 89 df 48 c7 c6 a0 ca 4b 8c e8 04 06 4e fd 49 be 00 00 00 00 00 fc ff df bb 8b ff ff ff e9 8d f3 ff ff 90 <0f> 0b 90 48 8b 44 24 20 42 80 3c 20 00 48 8b 1c 24 74 08 48 89 df RSP: 0018:ffffc9000d0de940 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000fffffffe RCX: ffff88800092a440 RDX: 0000000000000002 RSI: ffffffff8eeabd30 RDI: 00000000fffffffe RBP: ffffc9000d0deb10 R08: 0000000000000005 R09: ffffffff83d98daa R10: 0000000000000002 R11: ffff88800092a440 R12: dffffc0000000000 R13: ffff88805447b300 R14: 00000000fffffffe R15: ffff888054463210 FS: 00007f2064f5d6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 0000000040832000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1976 [inline] __btrfs_run_delayed_refs+0xf9f/0x40f0 fs/btrfs/extent-tree.c:2046 btrfs_run_delayed_refs+0xe3/0x2f0 fs/btrfs/extent-tree.c:2158 btrfs_start_dirty_block_groups+0xccc/0x10f0 fs/btrfs/block-group.c:3481 btrfs_commit_transaction+0x6ab/0x3760 fs/btrfs/transaction.c:2224 btrfs_sync_file+0xdd7/0x11e0 fs/btrfs/file.c:1735 generic_write_sync include/linux/fs.h:2958 [inline] btrfs_do_write_iter+0x5fc/0x7b0 fs/btrfs/file.c:1386 iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1164 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x564/0x8a0 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1418 [inline] __se_sys_sendfile64+0x100/0x1e0 fs/read_write.c:1410 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f206418cda9 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:00007f2064f5d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f20643a5fa0 RCX: 00007f206418cda9 RDX: 0000000020000240 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 00007f206420e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000007f06 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f20643a5fa0 R15: 00007ffe8482fab8