RSP: 002b:00007ffcd72e29c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f75f1b10b39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007ffcd72e29d0 R08: 0000000000000002 R09: 0000000000003131 R10: 0000000000280404 R11: 0000000000000246 R12: 0000000000000006 R13: 0000000000000003 R14: 00007ffcd72e2a30 R15: 0000000000000001 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:515! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5059 Comm: syz-executor337 Not tainted 6.1.0-syzkaller-14594-g72a85e2b0a1e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:clear_state_bit+0x31b/0x3a0 fs/btrfs/extent-io-tree.c:515 Code: 14 02 4c 89 f0 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 33 44 8b 7d 7c e9 af fe ff ff e8 ae 59 f9 fd 0f 0b eb 97 e8 a5 59 f9 fd <0f> 0b 4c 89 f7 e8 2b 61 47 fe e9 72 fd ff ff 4c 89 f7 e8 1e 61 47 RSP: 0018:ffffc90003cff708 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 00000000fffffff4 RCX: 0000000000000000 RDX: ffff8880233dd7c0 RSI: ffffffff8387f89b RDI: 0000000000000005 RBP: ffff88807325e480 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000000 R12: ffff8880734e9400 R13: 0000000000000000 R14: ffff88807325e4fc R15: 0000000000280fff FS: 00005555559ae3c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9d0ae78250 CR3: 00000000209f7000 CR4: 0000000000350ef0 Call Trace: __clear_extent_bit+0x5a6/0xc80 fs/btrfs/extent-io-tree.c:674 clear_record_extent_bits+0x5c/0x70 fs/btrfs/extent-io-tree.c:1703 __btrfs_qgroup_release_data+0x1a2/0xa40 fs/btrfs/qgroup.c:3881 insert_prealloc_file_extent+0x182/0x420 fs/btrfs/inode.c:9886 __btrfs_prealloc_file_range+0x298/0x940 fs/btrfs/inode.c:9983 btrfs_prealloc_file_range+0x42/0x50 fs/btrfs/inode.c:10062 btrfs_fallocate+0x191e/0x27b0 fs/btrfs/file.c:3177 vfs_fallocate+0x48b/0xe00 fs/open.c:323 ksys_fallocate fs/open.c:346 [inline] __do_sys_fallocate fs/open.c:354 [inline] __se_sys_fallocate fs/open.c:352 [inline] __x64_sys_fallocate+0xd3/0x140 fs/open.c:352 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f75f1b10b39 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 18 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcd72e29c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f75f1b10b39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007ffcd72e29d0 R08: 0000000000000002 R09: 0000000000003131 R10: 0000000000280404 R11: 0000000000000246 R12: 0000000000000006 R13: 0000000000000003 R14: 00007ffcd72e2a30 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:clear_state_bit+0x31b/0x3a0 fs/btrfs/extent-io-tree.c:515 Code: 14 02 4c 89 f0 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 33 44 8b 7d 7c e9 af fe ff ff e8 ae 59 f9 fd 0f 0b eb 97 e8 a5 59 f9 fd <0f> 0b 4c 89 f7 e8 2b 61 47 fe e9 72 fd ff ff 4c 89 f7 e8 1e 61 47 RSP: 0018:ffffc90003cff708 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 00000000fffffff4 RCX: 0000000000000000 RDX: ffff8880233dd7c0 RSI: ffffffff8387f89b RDI: 0000000000000005 RBP: ffff88807325e480 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000000 R12: ffff8880734e9400 R13: 0000000000000000 R14: ffff88807325e4fc R15: 0000000000280fff FS: 00005555559ae3c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9d0ae78250 CR3: 00000000209f7000 CR4: 0000000000350ef0