BTRFS info (device loop0): enabling ssd optimizations ------------[ cut here ]------------ WARNING: CPU: 1 PID: 3672 at fs/btrfs/inode.c:6568 btrfs_add_link+0x862/0xca0 fs/btrfs/inode.c:6568 Modules linked in: CPU: 1 PID: 3672 Comm: syz-executor372 Not tainted 6.1.0-rc3-syzkaller-00288-gb208b9fbbcba #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:btrfs_add_link+0x862/0xca0 fs/btrfs/inode.c:6568 Code: 80 01 db 8a 8b 54 24 08 31 c0 e8 3b 69 a7 06 e9 21 ff ff ff e8 8f 1e fd fd 48 c7 c7 80 00 db 8a 44 89 e6 31 c0 e8 9e bc c4 fd <0f> 0b 41 b4 01 45 0f b6 c4 48 89 df 48 c7 c6 40 08 db 8a ba a8 19 RSP: 0018:ffffc90003e6f8e0 EFLAGS: 00010246 RAX: abdea1f19ff01b00 RBX: ffff888070827930 RCX: ffff888021c78000 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90003e6fa08 R08: ffffffff816b9e3d R09: ffffed1017364f13 R10: ffffed1017364f13 R11: 1ffff11017364f12 R12: 00000000fffffff4 R13: 00000000fffffff4 R14: ffff888070827980 R15: 1ffff1100e104f30 FS: 0000555556f62300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056519aff1318 CR3: 0000000028b04000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_create_new_inode+0x1778/0x2270 fs/btrfs/inode.c:6504 btrfs_create_common+0x2eb/0x420 fs/btrfs/inode.c:6639 vfs_mkdir+0x3b3/0x590 fs/namei.c:4035 do_mkdirat+0x279/0x550 fs/namei.c:4060 __do_sys_mkdirat fs/namei.c:4075 [inline] __se_sys_mkdirat fs/namei.c:4073 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4073 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:0x7f0d9d2dbf19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007fffc1ed0a98 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f0d9d2dbf19 RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000004 RBP: 00007fffc1ed0ac0 R08: 0000000000000002 R09: 00007fffc1ed0ad0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006 R13: 00007f0d9d3246b8 R14: 00007fffc1ed0ae0 R15: 0000000000000002