RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f1a8d962120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000280404 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007f1a8cd9c050 R15: 00007fffb78c5e18 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:419! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 5546 Comm: syz-executor.0 Not tainted 6.9.0-rc3-next-20240412-syzkaller-06010-g9ed46da14b9b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:419 [inline] RIP: 0010:__set_extent_bit+0x1984/0x1e10 fs/btrfs/extent-io-tree.c:1129 Code: ff ff 48 8b 4c 24 50 80 e1 07 80 c1 03 38 c1 0f 8c d7 fd ff ff 48 8b 7c 24 50 e8 47 5f 25 fe e9 c8 fd ff ff e8 8d e2 bf fd 90 <0f> 0b 48 8b 44 24 40 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f RSP: 0018:ffffc90004f679e0 EFLAGS: 00010293 RAX: ffffffff83d654e3 RBX: 00000000fffffff4 RCX: ffff888071a31e00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 1ffff1100f4cc457 R08: ffffffff83d642ed R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c888a7 R12: 0000000000280fff R13: ffff88807a662240 R14: ffff88807a6622bc R15: 0000000000000000 FS: 00007f1a8d9626c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1a8d961ff8 CR3: 000000001ec50000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: set_record_extent_bits+0x51/0x90 fs/btrfs/extent-io-tree.c:1818 qgroup_reserve_data+0x27c/0x8d0 fs/btrfs/qgroup.c:4130 btrfs_qgroup_reserve_data+0x2e/0xb0 fs/btrfs/qgroup.c:4173 btrfs_fallocate+0x135c/0x2060 fs/btrfs/file.c:3157 vfs_fallocate+0x564/0x6c0 fs/open.c:330 ksys_fallocate fs/open.c:353 [inline] __do_sys_fallocate fs/open.c:361 [inline] __se_sys_fallocate fs/open.c:359 [inline] __x64_sys_fallocate+0xbd/0x110 fs/open.c:359 do_syscall_x64 arch/x86/entry/common.c:74 [inline] do_syscall_64+0xfa/0x250 arch/x86/entry/common.c:105 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1a8cc7c899 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1a8d9620c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f1a8cd9c050 RCX: 00007f1a8cc7c899 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f1a8d962120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000280404 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007f1a8cd9c050 R15: 00007fffb78c5e18 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:419 [inline] RIP: 0010:__set_extent_bit+0x1984/0x1e10 fs/btrfs/extent-io-tree.c:1129 Code: ff ff 48 8b 4c 24 50 80 e1 07 80 c1 03 38 c1 0f 8c d7 fd ff ff 48 8b 7c 24 50 e8 47 5f 25 fe e9 c8 fd ff ff e8 8d e2 bf fd 90 <0f> 0b 48 8b 44 24 40 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f RSP: 0018:ffffc90004f679e0 EFLAGS: 00010293 RAX: ffffffff83d654e3 RBX: 00000000fffffff4 RCX: ffff888071a31e00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 1ffff1100f4cc457 R08: ffffffff83d642ed R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c888a7 R12: 0000000000280fff R13: ffff88807a662240 R14: ffff88807a6622bc R15: 0000000000000000 FS: 00007f1a8d9626c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1a8d961ff8 CR3: 000000001ec50000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400