Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007efcc9489168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007efcc87abf80 RCX: 00007efcc868c0a9 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000004 RBP: 00007efcc94891d0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000049a8 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc54a3ef0f R14: 00007efcc9489300 R15: 0000000000022000 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:515! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 18784 Comm: syz-executor.4 Not tainted 6.2.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:clear_state_bit+0x325/0x330 fs/btrfs/extent-io-tree.c:515 Code: 2d fe e9 9c fd ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c c7 fe ff ff 4c 89 ef e8 05 64 2d fe e9 ba fe ff ff e8 1b ba d7 fd <0f> 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 RSP: 0018:ffffc9001460f470 EFLAGS: 00010246 RAX: ffffffff83b42145 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc9000c9a8000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000000 R08: ffffffff83b41f72 R09: 00000000ffffffff R10: fffffbfff1a8331b R11: 1ffffffff1a8331a R12: ffff88801cc79c00 R13: ffffc9001460f678 R14: 0000000000000800 R15: dffffc0000000000 FS: 00007efcc9489700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32225000 CR3: 0000000077170000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __clear_extent_bit+0x684/0xc50 fs/btrfs/extent-io-tree.c:674 clear_record_extent_bits+0x4e/0x80 fs/btrfs/extent-io-tree.c:1703 __btrfs_qgroup_release_data+0x4b9/0x850 fs/btrfs/qgroup.c:3881 insert_prealloc_file_extent fs/btrfs/inode.c:9886 [inline] __btrfs_prealloc_file_range+0x5b1/0x1460 fs/btrfs/inode.c:9983 btrfs_prealloc_file_range+0x3c/0x50 fs/btrfs/inode.c:10062 btrfs_zero_range+0xd50/0x1300 fs/btrfs/file.c:3004 btrfs_fallocate+0xb73/0x2020 fs/btrfs/file.c:3114 vfs_fallocate+0x515/0x670 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+0xb9/0x100 fs/open.c:352 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7efcc868c0a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007efcc9489168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007efcc87abf80 RCX: 00007efcc868c0a9 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000004 RBP: 00007efcc94891d0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000049a8 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc54a3ef0f R14: 00007efcc9489300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:clear_state_bit+0x325/0x330 fs/btrfs/extent-io-tree.c:515 Code: 2d fe e9 9c fd ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c c7 fe ff ff 4c 89 ef e8 05 64 2d fe e9 ba fe ff ff e8 1b ba d7 fd <0f> 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 RSP: 0018:ffffc9001460f470 EFLAGS: 00010246 RAX: ffffffff83b42145 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc9000c9a8000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000000 R08: ffffffff83b41f72 R09: 00000000ffffffff R10: fffffbfff1a8331b R11: 1ffffffff1a8331a R12: ffff88801cc79c00 R13: ffffc9001460f678 R14: 0000000000000800 R15: dffffc0000000000 FS: 00007efcc9489700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32225000 CR3: 0000000077170000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 28 00 sub %al,(%rax) 2: 00 00 add %al,(%rax) 4: 75 05 jne 0xb 6: 48 83 c4 28 add $0x28,%rsp a: c3 retq b: e8 f1 19 00 00 callq 0x1a01 10: 90 nop 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 retq 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W