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:00007fc2cb1180c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fc2ca59c120 RCX: 00007fc2ca47cae9 RDX: 0000000000000800 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fc2cb118120 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000001000f4 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007fc2ca59c120 R15: 00007fff38495428 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:515! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 16979 Comm: syz-executor.0 Not tainted 6.6.0-rc2-syzkaller-00143-gb5cbe7c00aa0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:clear_state_bit+0x328/0x330 fs/btrfs/extent-io-tree.c:515 Code: 31 fe e9 9a fd ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c c7 fe ff ff 4c 89 ef e8 d2 12 31 fe e9 ba fe ff ff e8 c8 aa d6 fd <0f> 0b 66 0f 1f 44 00 00 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 RSP: 0018:ffffc900167ef5f0 EFLAGS: 00010246 RAX: ffffffff83b75ef8 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc9000b09a000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000000 R08: ffffffff83b75d23 R09: 1ffffffff1a84dd6 R10: dffffc0000000000 R11: fffffbfff1a84dd7 R12: ffff8880256ee240 R13: ffffc900167ef7f8 R14: 0000000000000800 R15: dffffc0000000000 FS: 00007fc2cb1186c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f33115e7028 CR3: 0000000057a7a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __clear_extent_bit+0x52b/0xb10 fs/btrfs/extent-io-tree.c:686 clear_record_extent_bits+0x4d/0x80 fs/btrfs/extent-io-tree.c:1717 __btrfs_qgroup_release_data+0x4a4/0xa60 fs/btrfs/qgroup.c:3927 insert_prealloc_file_extent fs/btrfs/inode.c:9490 [inline] __btrfs_prealloc_file_range+0x597/0x1600 fs/btrfs/inode.c:9587 btrfs_prealloc_file_range+0x40/0x50 fs/btrfs/inode.c:9666 btrfs_fallocate+0x1845/0x1fe0 fs/btrfs/file.c:3172 vfs_fallocate+0x551/0x6b0 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xbd/0x100 fs/open.c:353 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc2ca47cae9 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:00007fc2cb1180c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fc2ca59c120 RCX: 00007fc2ca47cae9 RDX: 0000000000000800 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fc2cb118120 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000001000f4 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007fc2ca59c120 R15: 00007fff38495428 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:clear_state_bit+0x328/0x330 fs/btrfs/extent-io-tree.c:515 Code: 31 fe e9 9a fd ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c c7 fe ff ff 4c 89 ef e8 d2 12 31 fe e9 ba fe ff ff e8 c8 aa d6 fd <0f> 0b 66 0f 1f 44 00 00 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 RSP: 0018:ffffc900167ef5f0 EFLAGS: 00010246 RAX: ffffffff83b75ef8 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc9000b09a000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000000 R08: ffffffff83b75d23 R09: 1ffffffff1a84dd6 R10: dffffc0000000000 R11: fffffbfff1a84dd7 R12: ffff8880256ee240 R13: ffffc900167ef7f8 R14: 0000000000000800 R15: dffffc0000000000 FS: 00007fc2cb1186c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f33115e7028 CR3: 0000000057a7a000 CR4: 00000000003506e0 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 ret b: e8 e1 20 00 00 call 0x20f1 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 ret 33: 48 c7 c1 b0 ff ff ff mov $0xffffffffffffffb0,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W