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:00007f6a725fe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6a719ac050 RCX: 00007f6a7187dda9 RDX: 0000000000000002 RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007f6a725fe120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000006e R14: 00007f6a719ac050 R15: 00007ffdc79609f8 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:419! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 25841 Comm: syz-executor.0 Not tainted 6.8.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:set_state_bits+0x1d8/0x1e0 fs/btrfs/extent-io-tree.c:419 Code: e8 5d d7 29 fe eb bc 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c e6 fe ff ff 48 89 ef e8 43 d7 29 fe e9 d9 fe ff ff e8 d9 00 cb fd 90 <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000440f660 EFLAGS: 00010246 RAX: ffffffff83c86b77 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc90005331000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000000 R08: ffffffff83c86af4 R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c462a3 R12: ffff888015b25ea0 R13: dffffc0000000000 R14: ffff888046afd848 R15: 0000000000000800 FS: 00007f6a725fe6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6a725fdff8 CR3: 00000000235ee000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __set_extent_bit+0x1881/0x1de0 fs/btrfs/extent-io-tree.c:1258 set_record_extent_bits+0x51/0x90 fs/btrfs/extent-io-tree.c:1818 qgroup_reserve_data+0x27c/0x8b0 fs/btrfs/qgroup.c:4019 btrfs_qgroup_reserve_data+0x2e/0xb0 fs/btrfs/qgroup.c:4062 btrfs_check_data_free_space+0x149/0x240 fs/btrfs/delalloc-space.c:154 btrfs_buffered_write+0x5c6/0x1380 fs/btrfs/file.c:1258 btrfs_do_write_iter+0x2bb/0x1190 fs/btrfs/file.c:1690 call_write_iter include/linux/fs.h:2087 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa81/0xcb0 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f6a7187dda9 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:00007f6a725fe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6a719ac050 RCX: 00007f6a7187dda9 RDX: 0000000000000002 RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007f6a725fe120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000006e R14: 00007f6a719ac050 R15: 00007ffdc79609f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:set_state_bits+0x1d8/0x1e0 fs/btrfs/extent-io-tree.c:419 Code: e8 5d d7 29 fe eb bc 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c e6 fe ff ff 48 89 ef e8 43 d7 29 fe e9 d9 fe ff ff e8 d9 00 cb fd 90 <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000440f660 EFLAGS: 00010246 RAX: ffffffff83c86b77 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc90005331000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000000 R08: ffffffff83c86af4 R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c462a3 R12: ffff888015b25ea0 R13: dffffc0000000000 R14: ffff888046afd848 R15: 0000000000000800 FS: 00007f6a725fe6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6a725fdff8 CR3: 00000000235ee000 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 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