BTRFS info (device loop0): using free space tree BTRFS info (device loop0): enabling ssd optimizations ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3682 at fs/btrfs/inode.c:6568 btrfs_add_link+0xa18/0xcb0 fs/btrfs/inode.c:6568 Modules linked in: CPU: 1 PID: 3682 Comm: syz-executor237 Not tainted 6.1.0-rc3-syzkaller-00332-g089d1c31224e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:btrfs_add_link+0xa18/0xcb0 fs/btrfs/inode.c:6568 Code: 12 1b fe 44 89 e6 bf e2 ff ff ff e8 42 0f 1b fe 41 83 fc e2 74 6a e8 67 12 1b fe 44 89 e6 48 c7 c7 c0 c2 37 8a e8 b6 83 e8 05 <0f> 0b bb 01 00 00 00 e8 4c 12 1b fe 41 89 d8 44 89 e1 ba a8 19 00 RSP: 0018:ffffc9000433f500 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff888077484000 RCX: 0000000000000000 RDX: ffff888075969d40 RSI: ffffffff81622b98 RDI: fffff52000867e92 RBP: ffffc9000433f610 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 00000000fffffff4 R13: ffff88807006d788 R14: 0000000000000108 R15: ffff88807e5f0000 FS: 0000555556a80300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffcedb1a298 CR3: 000000007ba38000 CR4: 0000000000350ee0 Call Trace: btrfs_create_new_inode+0x1b83/0x29a0 fs/btrfs/inode.c:6504 btrfs_create_common+0x1d5/0x260 fs/btrfs/inode.c:6639 btrfs_create+0x112/0x160 fs/btrfs/inode.c:6679 lookup_open.isra.0+0xf05/0x12a0 fs/namei.c:3413 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x996/0x2860 fs/namei.c:3710 do_filp_open+0x1b6/0x400 fs/namei.c:3740 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fce6a1b8ee9 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:00007fff08dfbe18 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fce6a1b8ee9 RDX: 000000000000275a RSI: 00000000200001c0 RDI: 00000000ffffff9c RBP: 00007fff08dfbe40 R08: 0000000000000002 R09: 00007fff08dfbe50 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007fce6a2016b8 R14: 00007fff08dfbe60 R15: 0000000000000004