BTRFS info (device loop0): balance: start -d -m BTRFS info (device loop0): relocating block group 6881280 flags data|metadata BTRFS info (device loop0): relocating block group 5242880 flags data|metadata BTRFS info (device loop0): found 10 extents, stage: move data extents BTRFS info (device loop0): leaf 8630272 gen 17 total ptrs 7 free space 3307 owner 18446744073709551607 item 0 key (256 INODE_ITEM 0) itemoff 3835 itemsize 160 inode generation 5 transid 0 size 0 nbytes 0 block group 0 mode 40755 links 1 uid 0 gid 0 rdev 0 sequence 0 flags 0x0 atime 1669132762.0 ctime 1669132762.0 mtime 1669132762.0 otime 0.0 item 1 key (256 INODE_REF 256) itemoff 3823 itemsize 12 index 0 name_len 2 item 2 key (258 INODE_ITEM 0) itemoff 3663 itemsize 160 inode generation 1 transid 17 size 126976 nbytes 20480 block group 0 mode 100600 links 0 uid 0 gid 0 rdev 0 sequence 3 flags 0x18 atime 0.0 ctime 1781733004.750421105 mtime 0.0 otime 0.0 item 3 key (258 EXTENT_DATA 0) itemoff 3588 itemsize 75 generation 15 type 0 inline extent data size 54 ram_bytes 4096 compression 1 item 4 key (258 EXTENT_DATA 53248) itemoff 3535 itemsize 53 generation 17 type 1 extent data disk bytenr 8560640 nr 12288 extent data offset 0 nr 12288 ram 12288 extent compression 0 item 5 key (258 EXTENT_DATA 122880) itemoff 3482 itemsize 53 generation 17 type 1 extent data disk bytenr 8593408 nr 4096 extent data offset 0 nr 4096 ram 4096 extent compression 0 item 6 key (18446744073709551611 ORPHAN_ITEM 258) itemoff 3482 itemsize 0 BTRFS error (device loop0): unexpected non-zero offset in file extent item for data reloc inode 258 key offset 0 offset 144417985149540801 ------------[ cut here ]------------ btrfs_abort_should_print_stack(__error) WARNING: fs/btrfs/ctree.c:531 at btrfs_force_cow_block+0x1a3a/0x1bf0 fs/btrfs/ctree.c:531, CPU#0: syz.0.0/5319 Modules linked in: CPU: 0 UID: 0 PID: 5319 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 04/01/2014 RIP: 0010:btrfs_force_cow_block+0x1a3a/0x1bf0 fs/btrfs/ctree.c:531 Code: 87 db fd 90 0f 0b 90 44 89 f1 f7 d9 4c 8b 6c 24 08 e9 d8 f7 ff ff e8 b5 87 db fd eb 10 e8 ae 87 db fd eb 09 e8 a7 87 db fd 90 <0f> 0b 90 44 89 f1 f7 d9 4c 8b 6c 24 08 e9 1e f8 ff ff e8 8f 87 db RSP: 0018:ffffc900063970e0 EFLAGS: 00010283 RAX: ffffffff83eaa849 RBX: ffff88803faac001 RCX: 0000000000100000 RDX: ffffc90021003000 RSI: 0000000000049d06 RDI: 0000000000049d07 RBP: ffffc90006397260 R08: ffff8880337c4a80 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: dffffc0000000000 R13: ffff888011e6b608 R14: 00000000ffffff8b R15: ffff88801f5c603f FS: 00007f33de5d46c0(0000) GS:ffff88808c85f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f33e240e348 CR3: 000000003bf95000 CR4: 0000000000352ef0 Call Trace: btrfs_cow_block+0x3f1/0xaf0 fs/btrfs/ctree.c:696 do_relocation+0xd1c/0x17a0 fs/btrfs/relocation.c:2350 relocate_tree_block fs/btrfs/relocation.c:2600 [inline] relocate_tree_blocks+0x11a3/0x1fc0 fs/btrfs/relocation.c:2707 relocate_block_group+0x77c/0xe90 fs/btrfs/relocation.c:3635 do_nonremap_reloc+0xa7/0x560 fs/btrfs/relocation.c:5323 btrfs_relocate_block_group+0x6e2/0xaf0 fs/btrfs/relocation.c:5490 btrfs_relocate_chunk+0x114/0x810 fs/btrfs/volumes.c:3647 __btrfs_balance+0x1b5f/0x29d0 fs/btrfs/volumes.c:4586 btrfs_balance+0xaa6/0x1180 fs/btrfs/volumes.c:4973 btrfs_ioctl_balance+0x3da/0x640 fs/btrfs/ioctl.c:3474 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f33e219ce59 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f33de5d3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f33e2416090 RCX: 00007f33e219ce59 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000008 RBP: 00007f33e2232d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f33e2416128 R14: 00007f33e2416090 R15: 00007ffc934d30a8