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: 6519 Comm: syz.1.161 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 95 98 ca fd 48 c7 c7 00 d9 b0 8b 48 c7 c6 20 e5 b0 8b 31 d2 48 c7 c1 e0 d5 b0 8b 41 b8 88 06 00 00 e8 a3 a8 30 fd 90 <0f> 0b f3 0f 1e fa 65 8b 1d 69 f8 7e 0e bf 07 00 00 00 89 de e8 99 RSP: 0018:ffffc9001af77940 EFLAGS: 00010246 RAX: 000000000000005c RBX: 0000000000000000 RCX: 2eca5cda87ab9d00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9001af77b78 R08: ffffc9001af77667 R09: 1ffff920035eeecc R10: dffffc0000000000 R11: fffff520035eeecd R12: ffff888067df5800 R13: dffffc0000000000 R14: 00000000fffffffc R15: ffffc9001af779e0 FS: 00007eff4f65a6c0(0000) GS:ffff888125fc2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055558bad9608 CR3: 0000000076d02000 CR4: 00000000003526f0 Call Trace: btrfs_reserve_data_bytes+0xcc/0x230 fs/btrfs/space-info.c:1922 btrfs_fallocate+0x171e/0x1c10 fs/btrfs/file.c:3237 vfs_fallocate+0x669/0x7e0 fs/open.c:339 ksys_fallocate fs/open.c:363 [inline] __do_sys_fallocate fs/open.c:368 [inline] __se_sys_fallocate fs/open.c:366 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:366 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:0x7eff4e78f6c9 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:00007eff4f65a038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007eff4e9e5fa0 RCX: 00007eff4e78f6c9 RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007eff4f65a090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000800000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007eff4e9e6038 R14: 00007eff4e9e5fa0 R15: 00007ffdee273bd8 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 95 98 ca fd 48 c7 c7 00 d9 b0 8b 48 c7 c6 20 e5 b0 8b 31 d2 48 c7 c1 e0 d5 b0 8b 41 b8 88 06 00 00 e8 a3 a8 30 fd 90 <0f> 0b f3 0f 1e fa 65 8b 1d 69 f8 7e 0e bf 07 00 00 00 89 de e8 99 RSP: 0018:ffffc9001af77940 EFLAGS: 00010246 RAX: 000000000000005c RBX: 0000000000000000 RCX: 2eca5cda87ab9d00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9001af77b78 R08: ffffc9001af77667 R09: 1ffff920035eeecc R10: dffffc0000000000 R11: fffff520035eeecd R12: ffff888067df5800 R13: dffffc0000000000 R14: 00000000fffffffc R15: ffffc9001af779e0 FS: 00007eff4f65a6c0(0000) GS:ffff888125fc2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558cba3355f8 CR3: 0000000076d02000 CR4: 00000000003526f0