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: 6082 Comm: syz.0.59 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 45 dd ca fd 48 c7 c7 00 d5 b0 8b 48 c7 c6 20 e1 b0 8b 31 d2 48 c7 c1 e0 d1 b0 8b 41 b8 88 06 00 00 e8 e3 ee 30 fd 90 <0f> 0b f3 0f 1e fa 65 8b 1d a9 0e 7f 0e bf 07 00 00 00 89 de e8 49 RSP: 0018:ffffc9000aaaf560 EFLAGS: 00010246 RAX: 000000000000005c RBX: 0000000000000000 RCX: f722635961de8700 RDX: ffffc9000b25a000 RSI: 000000000000b233 RDI: 000000000000b234 RBP: ffffc9000aaaf7a0 R08: ffffc9000aaaf287 R09: 1ffff92001555e50 R10: dffffc0000000000 R11: fffff52001555e51 R12: ffff8880280c0800 R13: dffffc0000000000 R14: 00000000fffffffc R15: ffffc9000aaaf600 FS: 00007fd1fe2b46c0(0000) GS:ffff888125fc5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555d60808 CR3: 000000001e7fc000 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:0x7fd1fd38f6c9 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:00007fd1fe2b4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd1fd5e5fa0 RCX: 00007fd1fd38f6c9 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007fd1fd411f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd1fd5e6038 R14: 00007fd1fd5e5fa0 R15: 00007ffd6759faa8 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 45 dd ca fd 48 c7 c7 00 d5 b0 8b 48 c7 c6 20 e1 b0 8b 31 d2 48 c7 c1 e0 d1 b0 8b 41 b8 88 06 00 00 e8 e3 ee 30 fd 90 <0f> 0b f3 0f 1e fa 65 8b 1d a9 0e 7f 0e bf 07 00 00 00 89 de e8 49 RSP: 0018:ffffc9000aaaf560 EFLAGS: 00010246 RAX: 000000000000005c RBX: 0000000000000000 RCX: f722635961de8700 RDX: ffffc9000b25a000 RSI: 000000000000b233 RDI: 000000000000b234 RBP: ffffc9000aaaf7a0 R08: ffffc9000aaaf287 R09: 1ffff92001555e50 R10: dffffc0000000000 R11: fffff52001555e51 R12: ffff8880280c0800 R13: dffffc0000000000 R14: 00000000fffffffc R15: ffffc9000aaaf600 FS: 00007fd1fe2b46c0(0000) GS:ffff888125fc5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f06b8e46000 CR3: 000000001e7fc000 CR4: 00000000003526f0