BTRFS info (device loop0): balance: start -d -m assertion failed: !(ticket->bytes == 0 && ticket->error) :: 0, in fs/btrfs/space-info.c:1672 ------------[ cut here ]------------ kernel BUG at fs/btrfs/space-info.c:1672! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 7540 Comm: syz.0.618 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:handle_reserve_ticket fs/btrfs/space-info.c:1672 [inline] RIP: 0010:reserve_bytes+0x129e/0x1410 fs/btrfs/space-info.c:1865 Code: 0f 0b e8 05 39 cc fd 48 c7 c7 40 d8 b0 8b 48 c7 c6 60 e4 b0 8b 31 d2 48 c7 c1 20 d5 b0 8b 41 b8 88 06 00 00 e8 83 bc 32 fd 90 <0f> 0b f3 0f 1e fa 65 8b 1d f9 5b 80 0e bf 07 00 00 00 89 de e8 09 RSP: 0000:ffffc9001a537560 EFLAGS: 00010246 RAX: 000000000000005c RBX: 0000000000000000 RCX: ab59a82616e58800 RDX: ffffc90004692000 RSI: 000000000000da9b RDI: 000000000000da9c RBP: ffffc9001a5377a0 R08: ffffc9001a537287 R09: 1ffff920034a6e50 R10: dffffc0000000000 R11: fffff520034a6e51 R12: ffff888033db9800 R13: dffffc0000000000 R14: 00000000fffffffc R15: ffffc9001a537600 FS: 00007f8a6667c6c0(0000) GS:ffff888125fcd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555792135c8 CR3: 00000000795b4000 CR4: 00000000003526f0 Call Trace: btrfs_reserve_metadata_bytes+0x28/0x150 fs/btrfs/space-info.c:1888 btrfs_reserve_trans_metadata fs/btrfs/transaction.c:579 [inline] start_transaction+0x102c/0x1610 fs/btrfs/transaction.c:660 create_reloc_inode+0x1f5/0x8d0 fs/btrfs/relocation.c:3734 btrfs_relocate_block_group+0x508/0xc70 fs/btrfs/relocation.c:3945 btrfs_relocate_chunk+0x12f/0x5c0 fs/btrfs/volumes.c:3427 __btrfs_balance+0x1860/0x23f0 fs/btrfs/volumes.c:4200 btrfs_balance+0xac2/0x11b0 fs/btrfs/volumes.c:4575 btrfs_ioctl_balance+0x3d3/0x610 fs/btrfs/ioctl.c:3572 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+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8a6578f6c9 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:00007f8a6667c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8a659e5fa0 RCX: 00007f8a6578f6c9 RDX: 0000200000000440 RSI: 00000000c4009420 RDI: 0000000000000003 RBP: 00007f8a65811f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8a659e6038 R14: 00007f8a659e5fa0 R15: 00007ffdb24167f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:handle_reserve_ticket fs/btrfs/space-info.c:1672 [inline] RIP: 0010:reserve_bytes+0x129e/0x1410 fs/btrfs/space-info.c:1865 Code: 0f 0b e8 05 39 cc fd 48 c7 c7 40 d8 b0 8b 48 c7 c6 60 e4 b0 8b 31 d2 48 c7 c1 20 d5 b0 8b 41 b8 88 06 00 00 e8 83 bc 32 fd 90 <0f> 0b f3 0f 1e fa 65 8b 1d f9 5b 80 0e bf 07 00 00 00 89 de e8 09 RSP: 0000:ffffc9001a537560 EFLAGS: 00010246 RAX: 000000000000005c RBX: 0000000000000000 RCX: ab59a82616e58800 RDX: ffffc90004692000 RSI: 000000000000da9b RDI: 000000000000da9c RBP: ffffc9001a5377a0 R08: ffffc9001a537287 R09: 1ffff920034a6e50 R10: dffffc0000000000 R11: fffff520034a6e51 R12: ffff888033db9800 R13: dffffc0000000000 R14: 00000000fffffffc R15: ffffc9001a537600 FS: 00007f8a6667c6c0(0000) GS:ffff888125fcd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0017614000 CR3: 00000000795b4000 CR4: 00000000003526f0