RAX: ffffffffffffffda RBX: 00007f8030f9bf80 RCX: 00007f8030e7c959 RDX: 0000000020000080 RSI: 0000000040305828 RDI: 0000000000000004 RBP: 00007f8031b58120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f8030f9bf80 R15: 00007ffe5f93f3f8 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:584! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 6274 Comm: syz-executor.0 Not tainted 6.12.0-syzkaller-05480-gfcc79e1714e8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:clear_state_bit+0x364/0x370 fs/btrfs/extent-io-tree.c:584 Code: 1f fe e9 89 fd ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c b0 fe ff ff 48 89 ef e8 f7 d7 1f fe e9 a3 fe ff ff e8 dd 49 b8 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900031af078 EFLAGS: 00010293 RAX: ffffffff83dcb8b3 RBX: 00000000fffffff4 RCX: ffff88802bb35a00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83dcb6cb R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d4aac3 R12: ffffc900031af278 R13: ffff88802fa35180 R14: 0000000000001000 R15: 0000000000000000 FS: 00007f8031b586c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8030f98000 CR3: 0000000076cce000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __clear_extent_bit+0x51c/0xc20 fs/btrfs/extent-io-tree.c:752 clear_record_extent_bits+0x4d/0x90 fs/btrfs/extent-io-tree.c:1829 __btrfs_qgroup_release_data+0x5a9/0xab0 fs/btrfs/qgroup.c:4374 insert_prealloc_file_extent fs/btrfs/inode.c:8689 [inline] __btrfs_prealloc_file_range+0x599/0x1410 fs/btrfs/inode.c:8786 btrfs_prealloc_file_range+0x40/0x60 fs/btrfs/inode.c:8864 btrfs_fallocate+0x1b87/0x2000 fs/btrfs/file.c:3094 vfs_fallocate+0x569/0x6e0 fs/open.c:327 do_vfs_ioctl+0x258c/0x2e40 fs/ioctl.c:885 __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0x80/0x170 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8030e7c959 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:00007f8031b580c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8030f9bf80 RCX: 00007f8030e7c959 RDX: 0000000020000080 RSI: 0000000040305828 RDI: 0000000000000004 RBP: 00007f8031b58120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f8030f9bf80 R15: 00007ffe5f93f3f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:clear_state_bit+0x364/0x370 fs/btrfs/extent-io-tree.c:584 Code: 1f fe e9 89 fd ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c b0 fe ff ff 48 89 ef e8 f7 d7 1f fe e9 a3 fe ff ff e8 dd 49 b8 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900031af078 EFLAGS: 00010293 RAX: ffffffff83dcb8b3 RBX: 00000000fffffff4 RCX: ffff88802bb35a00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83dcb6cb R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d4aac3 R12: ffffc900031af278 R13: ffff88802fa35180 R14: 0000000000001000 R15: 0000000000000000 FS: 00007f8031b586c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8030f98000 CR3: 0000000076cce000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400