BTRFS info (device loop3): enabling ssd optimizations BTRFS error (device loop3): err add delayed dir index item(name: file0) into the insertion tree of the delayed node(root id: 5, inode id: 257, errno: -17) ------------[ cut here ]------------ kernel BUG at fs/btrfs/delayed-inode.c:1504! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 28113 Comm: syz-executor.3 Not tainted 6.5.0-rc7-syzkaller-00013-g53663f4103ff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:btrfs_insert_delayed_dir_index+0xc70/0xca0 fs/btrfs/delayed-inode.c:1504 Code: 43 fe 48 8b 04 24 4c 8b 08 4c 89 f7 48 c7 c6 e0 90 4b 8b 48 8b 54 24 60 48 8b 4c 24 58 49 89 e8 53 e8 d4 c9 19 07 48 83 c4 08 <0f> 0b e8 89 45 ea fd 48 c7 c7 40 90 4b 8b 48 c7 c6 a0 90 4b 8b 48 RSP: 0018:ffffc900032af678 EFLAGS: 00010286 RAX: f10addb282f57a00 RBX: 00000000ffffffef RCX: 1ffff92000655ea4 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000005 R08: ffffffff816f0d3c R09: 1ffff92000655e4c R10: dffffc0000000000 R11: fffff52000655e4d R12: ffff88803b2ea7c0 R13: 1ffff110079bfdba R14: ffff88803b498000 R15: ffff88807e3241f7 FS: 00007fcb2cd096c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9be273b000 CR3: 0000000027aef000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_insert_dir_item+0x47d/0x630 fs/btrfs/dir-item.c:166 btrfs_add_link+0x287/0xc60 fs/btrfs/inode.c:6581 btrfs_create_new_inode+0x1b27/0x2760 fs/btrfs/inode.c:6522 btrfs_create_common+0x1f9/0x300 fs/btrfs/inode.c:6657 vfs_mkdir+0x29d/0x450 fs/namei.c:4117 do_mkdirat+0x264/0x520 fs/namei.c:4140 __do_sys_mkdirat fs/namei.c:4155 [inline] __se_sys_mkdirat fs/namei.c:4153 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4153 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fcb2c07cae9 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:00007fcb2cd090c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fcb2c19bf80 RCX: 00007fcb2c07cae9 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000006 RBP: 00007fcb2c0c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fcb2c19bf80 R15: 00007fff71a5c678 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_insert_delayed_dir_index+0xc70/0xca0 fs/btrfs/delayed-inode.c:1504 Code: 43 fe 48 8b 04 24 4c 8b 08 4c 89 f7 48 c7 c6 e0 90 4b 8b 48 8b 54 24 60 48 8b 4c 24 58 49 89 e8 53 e8 d4 c9 19 07 48 83 c4 08 <0f> 0b e8 89 45 ea fd 48 c7 c7 40 90 4b 8b 48 c7 c6 a0 90 4b 8b 48 RSP: 0018:ffffc900032af678 EFLAGS: 00010286 RAX: f10addb282f57a00 RBX: 00000000ffffffef RCX: 1ffff92000655ea4 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000005 R08: ffffffff816f0d3c R09: 1ffff92000655e4c R10: dffffc0000000000 R11: fffff52000655e4d R12: ffff88803b2ea7c0 R13: 1ffff110079bfdba R14: ffff88803b498000 R15: ffff88807e3241f7 FS: 00007fcb2cd096c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1db49059d3 CR3: 0000000027aef000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400