------------[ cut here ]------------ WARNING: CPU: 1 PID: 5006 at fs/btrfs/inode.c:6780 btrfs_add_link+0x8a5/0xd40 fs/btrfs/inode.c:6780 Modules linked in: CPU: 1 PID: 5006 Comm: syz.5.39 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:btrfs_add_link+0x8a5/0xd40 fs/btrfs/inode.c:6780 Code: e8 20 48 2c fe 4c 8b 6c 24 18 e9 0f 04 00 00 e8 11 48 2c fe eb 16 e8 0a 48 2c fe 48 c7 c7 c0 9f 6b 8a 44 89 f6 e8 2b 8d 73 06 <0f> 0b 48 8b 7c 24 20 48 c7 c6 60 a5 6b 8a ba 7c 1a 00 00 eb 38 e8 RSP: 0018:ffffc9000329f720 EFLAGS: 00010246 RAX: 1d5ae8296f978a00 RBX: ffff88805cc90cb8 RCX: 0000000000080000 RDX: ffffc90014c4d000 RSI: 000000000007bec6 RDI: 000000000007bec7 RBP: ffffc9000329f868 R08: ffffc9000329f247 R09: 1ffff92000653e48 R10: dffffc0000000000 R11: fffff52000653e49 R12: ffff88805dd10001 R13: 1ffff92000653ef0 R14: 00000000fffffff4 R15: 1ffff1100b992197 FS: 00007f315e8d56c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c301d1a CR3: 0000000077fac000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_add_nondir fs/btrfs/inode.c:6831 [inline] btrfs_create+0x511/0x5d0 fs/btrfs/inode.c:6953 lookup_open fs/namei.c:3513 [inline] open_last_lookups fs/namei.c:3583 [inline] path_openat+0x120a/0x2fb0 fs/namei.c:3790 do_filp_open+0x1df/0x400 fs/namei.c:3820 do_sys_openat2+0x14b/0x500 fs/open.c:1255 do_sys_open fs/open.c:1271 [inline] __do_sys_openat fs/open.c:1287 [inline] __se_sys_openat fs/open.c:1282 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1282 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f3160688b59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f315e8d5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f3160914fa0 RCX: 00007f3160688b59 RDX: 000000000000275a RSI: 0000200000010d00 RDI: ffffffffffffff9c RBP: 00007f316071918b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3160915038 R14: 00007f3160914fa0 R15: 00007ffd2210b068