RSP: 002b:00007f47bd3bb0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f47bc7abf80 RCX: 00007f47bc67dda9 RDX: 0000000000000007 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f47bd3bb120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000000b R14: 00007f47bc7abf80 R15: 00007ffc56e78d68 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:419! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 30181 Comm: syz-executor.4 Not tainted 6.8.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:419 [inline] RIP: 0010:__set_extent_bit+0x195d/0x1de0 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 ec fd ff ff 48 8b 7c 24 50 e8 ee 00 2a fe e9 dd fd ff ff e8 44 31 cb 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:ffffc900130ef698 EFLAGS: 00010246 RAX: ffffffff83c83aac RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc9000ada9000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 1ffff1100f5226f9 R08: ffffffff83c828cd R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c46283 R12: 0000000000000fff R13: ffff88807a913750 R14: ffff88807a9137cc R15: 0000000000000000 FS: 00007f47bd3bb6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000024eca000 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/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:2085 [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:0x7f47bc67dda9 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:00007f47bd3bb0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f47bc7abf80 RCX: 00007f47bc67dda9 RDX: 0000000000000007 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f47bd3bb120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000000b R14: 00007f47bc7abf80 R15: 00007ffc56e78d68 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:419 [inline] RIP: 0010:__set_extent_bit+0x195d/0x1de0 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 ec fd ff ff 48 8b 7c 24 50 e8 ee 00 2a fe e9 dd fd ff ff e8 44 31 cb 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:ffffc900130ef698 EFLAGS: 00010246 RAX: ffffffff83c83aac RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc9000ada9000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 1ffff1100f5226f9 R08: ffffffff83c828cd R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c46283 R12: 0000000000000fff R13: ffff88807a913750 R14: ffff88807a9137cc R15: 0000000000000000 FS: 00007f47bd3bb6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000024eca000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400