RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007ffcd127c4b0 R08: 0000000000000002 R09: 00007ffcd127c4c0 R10: 0000000000280404 R11: 0000000000000246 R12: 0000000000000006 R13: 00007ffcd127c4f0 R14: 00007ffcd127c4d0 R15: 0000000000000000 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:517! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3639 Comm: syz-executor114 Not tainted 6.1.0-rc7-syzkaller-00123-ga4412fdd49dc #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:517 Code: 2f 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 c5 06 2f fe e9 ba fe ff ff e8 cb ea da 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:ffffc90003bff5d0 EFLAGS: 00010293 RAX: ffffffff83afad25 RBX: 00000000fffffff4 RCX: ffff888022f79d40 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83afab52 R09: 00000000ffffffff R10: fffffbfff1a42e8f R11: 1ffffffff1a42e8e R12: ffff88806fc39c00 R13: ffffc90003bff7d8 R14: 0000000000001000 R15: dffffc0000000000 FS: 000055555682e300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8a5abb5140 CR3: 0000000073a71000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __clear_extent_bit+0x669/0xc60 fs/btrfs/extent-io-tree.c:674 clear_record_extent_bits+0x4e/0x80 fs/btrfs/extent-io-tree.c:1614 __btrfs_qgroup_release_data+0x4b9/0x850 fs/btrfs/qgroup.c:3863 insert_prealloc_file_extent fs/btrfs/inode.c:9822 [inline] __btrfs_prealloc_file_range+0x5b1/0x1470 fs/btrfs/inode.c:9919 btrfs_prealloc_file_range+0x3c/0x50 fs/btrfs/inode.c:9998 btrfs_fallocate+0x1ba7/0x2020 fs/btrfs/file.c:3481 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:0x7f8a5ab3dab9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcd127c488 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f8a5ab3dab9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007ffcd127c4b0 R08: 0000000000000002 R09: 00007ffcd127c4c0 R10: 0000000000280404 R11: 0000000000000246 R12: 0000000000000006 R13: 00007ffcd127c4f0 R14: 00007ffcd127c4d0 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:clear_state_bit+0x325/0x330 fs/btrfs/extent-io-tree.c:517 Code: 2f 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 c5 06 2f fe e9 ba fe ff ff e8 cb ea da 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:ffffc90003bff5d0 EFLAGS: 00010293 RAX: ffffffff83afad25 RBX: 00000000fffffff4 RCX: ffff888022f79d40 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83afab52 R09: 00000000ffffffff R10: fffffbfff1a42e8f R11: 1ffffffff1a42e8e R12: ffff88806fc39c00 R13: ffffc90003bff7d8 R14: 0000000000001000 R15: dffffc0000000000 FS: 000055555682e300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8a5abb5140 CR3: 0000000073a71000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400