loop5: detected capacity change from 0 to 32768 BTRFS info (device loop5): using xxhash64 (xxhash64-generic) checksum algorithm BTRFS info (device loop5): using free space tree BTRFS info (device loop5): enabling ssd optimizations ------------[ cut here ]------------ WARNING: CPU: 1 PID: 15671 at fs/btrfs/inode.c:6568 btrfs_add_link+0xa18/0xcb0 fs/btrfs/inode.c:6568 Modules linked in: CPU: 1 PID: 15671 Comm: syz-executor.5 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:btrfs_add_link+0xa18/0xcb0 fs/btrfs/inode.c:6568 Code: 48 1b fe 44 89 e6 bf e2 ff ff ff e8 82 45 1b fe 41 83 fc e2 74 6a e8 a7 48 1b fe 44 89 e6 48 c7 c7 80 bd 37 8a e8 04 6a e8 05 <0f> 0b bb 01 00 00 00 e8 8c 48 1b fe 41 89 d8 44 89 e1 ba a8 19 00 RSP: 0018:ffffc9000abcf510 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff8880968d8000 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff81621b98 RDI: fffff52001579e94 RBP: ffffc9000abcf620 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 00000000312d2072 R12: 00000000fffffff4 R13: ffff88808940e248 R14: 0000000000000108 R15: ffff88807923a000 FS: 00007ff10d7d1700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559e9f7e0b70 CR3: 00000000b1eaf000 CR4: 0000000000350ef0 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_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1330 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:0x7ff10ca8b5a9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff10d7d1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ff10cbabf80 RCX: 00007ff10ca8b5a9 RDX: 0000000000000000 RSI: 000000000014d27e RDI: 0000000020000180 RBP: 00007ff10d7d11d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffd3231ee9f R14: 00007ff10d7d1300 R15: 0000000000022000