RBP: 00007fe1291b8120 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000002
R13: 000000000000006e R14: 00007fe12859c050 R15: 00007ffc9c5a3768
 </TASK>
------------[ cut here ]------------
kernel BUG at fs/btrfs/file.c:470!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3747 Comm: syz-executor.3 Not tainted 6.1.0-rc8-syzkaller-00246-g1742e1c90c3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:btrfs_drop_extents+0x3410/0x3580
Code: 96 ab ce fd 0f 0b e9 c7 fd ff ff e8 ca c1 e4 06 e8 f5 92 05 fe 0f 0b e8 ee 92 05 fe 0f 0b e8 e7 92 05 fe 0f 0b e8 e0 92 05 fe <0f> 0b e8 d9 92 05 fe 0f 0b e8 d2 92 05 fe 0f 0b e8 cb 92 05 fe 0f
RSP: 0018:ffffc9000440e040 EFLAGS: 00010293
RAX: ffffffff8382d0a0 RBX: 00000000fffffff4 RCX: ffff88801c491d40
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: ffffc9000440e3d0 R08: ffffffff8382bbe1 R09: ffffffff83789ec1
R10: 0000000000000002 R11: ffff88801c491d40 R12: dffffc0000000000
R13: ffff88807561ef60 R14: dffffc0000000000 R15: 0000000000001000
FS:  00007fe1291b86c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561027d47788 CR3: 0000000078c97000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 cow_file_range_inline+0x433/0x960
 cow_file_range+0x388/0xfb0
 fallback_to_cow+0x761/0xc60
 run_delalloc_nocow+0x1235/0x1490
 btrfs_run_delalloc_range+0x3a7/0x1190
 writepage_delalloc+0x25d/0x580
 __extent_writepage+0x94e/0x1820
 extent_writepages+0xbc4/0x1780
 do_writepages+0x3a2/0x650
 filemap_fdatawrite_wbc+0x121/0x180
 filemap_fdatawrite_range+0x177/0x200
 start_ordered_ops+0xd7/0x210
 btrfs_sync_file+0x44c/0x1210
 btrfs_do_write_iter+0xcc8/0x1270
 do_iter_write+0x6b8/0xc20
 iter_file_splice_write+0x7d2/0xf80
 direct_splice_actor+0xe3/0x1c0
 splice_direct_to_actor+0x4c0/0xbd0
 do_splice_direct+0x27e/0x3d0
 do_sendfile+0x5c5/0xf50
 __se_sys_sendfile64+0x14f/0x1b0
 do_syscall_64+0x3d/0xb0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe12847c919
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:00007fe1291b80c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fe12859c050 RCX: 00007fe12847c919
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007fe1291b8120 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000002
R13: 000000000000006e R14: 00007fe12859c050 R15: 00007ffc9c5a3768
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:btrfs_drop_extents+0x3410/0x3580
Code: 96 ab ce fd 0f 0b e9 c7 fd ff ff e8 ca c1 e4 06 e8 f5 92 05 fe 0f 0b e8 ee 92 05 fe 0f 0b e8 e7 92 05 fe 0f 0b e8 e0 92 05 fe <0f> 0b e8 d9 92 05 fe 0f 0b e8 d2 92 05 fe 0f 0b e8 cb 92 05 fe 0f
RSP: 0018:ffffc9000440e040 EFLAGS: 00010293
RAX: ffffffff8382d0a0 RBX: 00000000fffffff4 RCX: ffff88801c491d40
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: ffffc9000440e3d0 R08: ffffffff8382bbe1 R09: ffffffff83789ec1
R10: 0000000000000002 R11: ffff88801c491d40 R12: dffffc0000000000
R13: ffff88807561ef60 R14: dffffc0000000000 R15: 0000000000001000
FS:  00007fe1291b86c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9386e29000 CR3: 0000000078c97000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
