BTRFS info (device loop3): using xxhash64 (xxhash64-generic) checksum algorithm BTRFS info (device loop3): using free space tree BTRFS info (device loop3): enabling ssd optimizations ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6438 at fs/btrfs/inode.c:6568 btrfs_add_link+0xa18/0xcb0 fs/btrfs/inode.c:6568 Modules linked in: CPU: 1 PID: 6438 Comm: syz-executor.3 Not tainted 6.1.0-rc1-next-20221021-syzkaller #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: b4 1b fe 44 89 e6 bf e2 ff ff ff e8 22 b1 1b fe 41 83 fc e2 74 6a e8 47 b4 1b fe 44 89 e6 48 c7 c7 40 a3 17 8a e8 59 98 ea 05 <0f> 0b bb 01 00 00 00 e8 2c b4 1b fe 41 89 d8 44 89 e1 ba a8 19 00 RSP: 0018:ffffc9000612f510 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888078fec000 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff81621a58 RDI: fffff52000c25e94 RBP: ffffc9000612f620 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000001 R12: 00000000fffffff4 R13: ffff888073a61980 R14: 0000000000000108 R15: ffff88801e968000 FS: 00007fbdf3fda700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055aec60c5668 CR3: 000000007b21e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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+0x990/0x2850 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:0x7fbdf2e8b5f9 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:00007fbdf3fda168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fbdf2fabf80 RCX: 00007fbdf2e8b5f9 RDX: 0000000000000000 RSI: 000000000014d842 RDI: 0000000020000080 RBP: 00007fbdf3fda1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffd104a8fff R14: 00007fbdf3fda300 R15: 0000000000022000