R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007fef1ef9c050 R15: 00007ffec75d7798 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3291! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 2 PID: 26447 Comm: syz-executor.0 Not tainted 6.5.0-syzkaller-12530-gff6e6ded5472 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:btrfs_free_tree_block+0x788/0xb50 fs/btrfs/extent-tree.c:3291 Code: e8 9d eb fe fd 31 ff 89 c5 89 c6 e8 82 59 16 fe 40 84 ed 0f 85 e5 fb ff ff e8 44 5e 16 fe 0f 0b e9 d9 fb ff ff e8 38 5e 16 fe <0f> 0b e8 31 5e 16 fe 49 8d 7d 20 48 b8 00 00 00 00 00 fc ff df 48 RSP: 0018:ffffc90026927088 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8880284d23b0 RCX: ffffc900061d5000 RDX: 0000000000040000 RSI: ffffffff83707208 RDI: 0000000000000005 RBP: 0000000000000007 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 6637303030302052 R12: 1ffff92004d24e16 R13: ffff88802d8fa3f0 R14: 0000000000000001 R15: ffff8880284d23b8 FS: 00007fef1fc9d6c0(0000) GS:ffff88806b800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe74d1ac68 CR3: 0000000105e8a000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_del_leaf+0x2b9/0x350 fs/btrfs/ctree.c:4536 btrfs_del_items+0x2a4/0xd00 fs/btrfs/ctree.c:4588 btrfs_del_csums+0x537/0xaf0 fs/btrfs/file-item.c:944 do_free_extent_accounting fs/btrfs/extent-tree.c:2854 [inline] __btrfs_free_extent+0xc94/0x2c80 fs/btrfs/extent-tree.c:3210 run_delayed_data_ref fs/btrfs/extent-tree.c:1568 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1744 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1986 [inline] __btrfs_run_delayed_refs+0x8bf/0x3b50 fs/btrfs/extent-tree.c:2047 btrfs_run_delayed_refs+0x1a1/0x510 fs/btrfs/extent-tree.c:2159 btrfs_commit_transaction+0x81a/0x3ed0 fs/btrfs/transaction.c:2179 btrfs_sync_file+0xfa1/0x1310 fs/btrfs/file.c:1973 btrfs_remap_file_range+0xa8c/0xfb0 fs/btrfs/reflink.c:928 do_clone_file_range+0x2b3/0x8d0 fs/remap_range.c:396 vfs_clone_file_range+0xbe/0x5b0 fs/remap_range.c:414 ioctl_file_clone fs/ioctl.c:240 [inline] ioctl_file_clone_range fs/ioctl.c:259 [inline] do_vfs_ioctl+0x93d/0x1920 fs/ioctl.c:824 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x112/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fef1ee7cae9 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:00007fef1fc9d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fef1ef9c050 RCX: 00007fef1ee7cae9 RDX: 0000000020000000 RSI: 000000004020940d RDI: 0000000000000006 RBP: 00007fef1fc9d120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007fef1ef9c050 R15: 00007ffec75d7798 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_free_tree_block+0x788/0xb50 fs/btrfs/extent-tree.c:3291 Code: e8 9d eb fe fd 31 ff 89 c5 89 c6 e8 82 59 16 fe 40 84 ed 0f 85 e5 fb ff ff e8 44 5e 16 fe 0f 0b e9 d9 fb ff ff e8 38 5e 16 fe <0f> 0b e8 31 5e 16 fe 49 8d 7d 20 48 b8 00 00 00 00 00 fc ff df 48 RSP: 0018:ffffc90026927088 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8880284d23b0 RCX: ffffc900061d5000 RDX: 0000000000040000 RSI: ffffffff83707208 RDI: 0000000000000005 RBP: 0000000000000007 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 6637303030302052 R12: 1ffff92004d24e16 R13: ffff88802d8fa3f0 R14: 0000000000000001 R15: ffff8880284d23b8 FS: 00007fef1fc9d6c0(0000) GS:ffff88806b700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a5b0861e58 CR3: 0000000105e8a000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400