RBP: 0000000020000180 R08: 00007f7a4671ff80 R09: 0000000001a4243c R10: 0000000001a4243c R11: 0000000000000206 R12: 0000000020000100 R13: 00007f7a4671ff40 R14: 0000000000000000 R15: 00000000200008c0 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3462! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 18975 Comm: syz-executor.0 Not tainted 6.8.0-rc5-syzkaller-00002-gfca7526b7d89 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:btrfs_free_tree_block+0xd31/0xd40 fs/btrfs/extent-tree.c:3462 Code: 89 f1 80 e1 07 38 c1 0f 8c a1 f8 ff ff be 08 00 00 00 4c 89 f7 e8 2f ab 57 fe e9 8f f8 ff ff e8 b5 6b c3 07 e8 00 da f8 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 RSP: 0018:ffffc90008e3eba0 EFLAGS: 00010246 RAX: ffffffff839a9230 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc90012112000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90008e3ed10 R08: ffffffff839a88bc R09: 1ffffffff1c462b2 R10: dffffc0000000000 R11: fffffbfff1c462b3 R12: ffff000000000100 R13: dffffc0000000000 R14: 0000000000000002 R15: ffffc90008e3ec40 FS: 00007f7a467206c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f34005a8000 CR3: 0000000047234000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_force_cow_block+0xf37/0x1b70 fs/btrfs/ctree.c:626 btrfs_cow_block+0x35e/0xa20 fs/btrfs/ctree.c:749 btrfs_search_slot+0xbdd/0x30c0 fs/btrfs/ctree.c:2104 btrfs_insert_empty_items+0x9c/0x1a0 fs/btrfs/ctree.c:4294 btrfs_insert_empty_item fs/btrfs/ctree.h:652 [inline] alloc_reserved_file_extent+0x2be/0x6d0 fs/btrfs/extent-tree.c:4826 run_delayed_data_ref fs/btrfs/extent-tree.c:1602 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1804 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2065 [inline] __btrfs_run_delayed_refs+0x1783/0x46c0 fs/btrfs/extent-tree.c:2135 btrfs_run_delayed_refs+0xe3/0x2c0 fs/btrfs/extent-tree.c:2247 btrfs_commit_transaction+0x4ba/0x3740 fs/btrfs/transaction.c:2201 sync_filesystem+0x1c8/0x230 fs/sync.c:66 btrfs_reconfigure+0x2f4/0x2be0 fs/btrfs/super.c:1468 reconfigure_super+0x445/0x880 fs/super.c:1076 do_remount fs/namespace.c:2892 [inline] path_mount+0xc28/0xfa0 fs/namespace.c:3671 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f7a45a7f4aa Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f7a4671fef8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f7a4671ff80 RCX: 00007f7a45a7f4aa RDX: 0000000020000180 RSI: 0000000020000100 RDI: 0000000000000000 RBP: 0000000020000180 R08: 00007f7a4671ff80 R09: 0000000001a4243c R10: 0000000001a4243c R11: 0000000000000206 R12: 0000000020000100 R13: 00007f7a4671ff40 R14: 0000000000000000 R15: 00000000200008c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_free_tree_block+0xd31/0xd40 fs/btrfs/extent-tree.c:3462 Code: 89 f1 80 e1 07 38 c1 0f 8c a1 f8 ff ff be 08 00 00 00 4c 89 f7 e8 2f ab 57 fe e9 8f f8 ff ff e8 b5 6b c3 07 e8 00 da f8 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 RSP: 0018:ffffc90008e3eba0 EFLAGS: 00010246 RAX: ffffffff839a9230 RBX: 00000000fffffff4 RCX: 0000000000040000 RDX: ffffc90012112000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90008e3ed10 R08: ffffffff839a88bc R09: 1ffffffff1c462b2 R10: dffffc0000000000 R11: fffffbfff1c462b3 R12: ffff000000000100 R13: dffffc0000000000 R14: 0000000000000002 R15: ffffc90008e3ec40 FS: 00007f7a467206c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1751b34000 CR3: 0000000047234000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400