WARNING in btrfs_add_link (3)

Status: upstream: reported on 2026/08/29 06:51
Subsystems: btrfs
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+3ae22e13d0d01e5de43c@syzkaller.appspotmail.com
First crash: 14d, last: 2d09h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
8179a904 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ❌ WARNING in btrfs_add_link (3) 2026/08/27 00:50 2026/08/27 00:50 2026/08/27 01:21 a2b77b9e
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in btrfs_add_link (3) 0 (1) 2026/08/29 06:51
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_add_link btrfs -1 syz, C error unreliable 7 1401d 1421d 0/29 auto-obsoleted due to no activity on 2023/07/21 23:31
upstream WARNING in btrfs_add_link (2) btrfs -1 1 200d 196d 0/29 auto-obsoleted due to no activity on 2026/05/30 22:47
linux-5.15 WARNING in btrfs_add_link -1 1 1229d 1229d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:04
linux-5.15 WARNING in btrfs_add_link (2) origin:lts-only -1 syz, C error 10 6d03h 773d 0/3 upstream: reported C repro on 2024/07/27 06:25

Sample crash report:
------------[ cut here ]------------
btrfs_abort_should_print_stack(__error)
WARNING: fs/btrfs/inode.c:6931 at btrfs_add_link+0x932/0xa50 fs/btrfs/inode.c:6931, CPU#0: syz.0.0/5322
Modules linked in:
CPU: 0 UID: 0 PID: 5322 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:btrfs_add_link+0x932/0xa50 fs/btrfs/inode.c:6931
Code: e2 74 13 41 83 fe fb 74 14 41 83 fe f4 75 15 e8 e4 1f ac fd eb 17 e8 dd 1f ac fd eb 10 e8 d6 1f ac fd eb 09 e8 cf 1f ac fd 90 <0f> 0b 90 44 89 f1 f7 d9 e9 10 fe ff ff 89 df 48 c7 c6 60 ba 3d 8f
RSP: 0018:ffffc9000f917140 EFLAGS: 00010287
RAX: ffffffff841bac61 RBX: ffff888012ab4001 RCX: 0000000000100000
RDX: ffffc90020001000 RSI: 000000000000965f RDI: 0000000000009660
RBP: ffffc9000f917270 R08: ffff888012ea4b00 R09: 0000000000000003
R10: 00000000fffffffb R11: 0000000000000002 R12: 1ffff1100245295a
R13: 00000000ffffffe4 R14: 00000000ffffffe4 R15: ffff888012294ad0
FS:  00007f10a23206c0(0000) GS:ffff88808c2cd000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f10a2340e18 CR3: 0000000012fab000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 btrfs_create_new_inode+0x14a1/0x1ee0 fs/btrfs/inode.c:6864
 btrfs_create_common+0x189/0x310 fs/btrfs/inode.c:6990
 btrfs_mkdir+0xc1/0xf0 fs/btrfs/inode.c:7129
 vfs_mkdir+0x40c/0x620 fs/namei.c:5410
 ovl_do_mkdir fs/overlayfs/overlayfs.h:257 [inline]
 ovl_workdir_create+0x45f/0x8b0 fs/overlayfs/super.c:345
 ovl_get_indexdir+0x2b7/0x5f0 fs/overlayfs/super.c:868
 ovl_fill_super_creds fs/overlayfs/super.c:1474 [inline]
 ovl_fill_super+0x34c9/0x4360 fs/overlayfs/super.c:1561
 vfs_get_super fs/super.c:1405 [inline]
 get_tree_nodev+0xbb/0x150 fs/super.c:1424
 vfs_get_tree+0x92/0x2a0 fs/super.c:1947
 fc_mount fs/namespace.c:1198 [inline]
 do_new_mount_fc fs/namespace.c:3772 [inline]
 do_new_mount+0x319/0xdc0 fs/namespace.c:3848
 do_mount fs/namespace.c:4181 [inline]
 __do_sys_mount fs/namespace.c:4397 [inline]
 __se_sys_mount+0x31d/0x420 fs/namespace.c:4374
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f10a139e159
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:00007f10a231ffe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f10a1626090 RCX: 00007f10a139e159
RDX: 0000200000000000 RSI: 0000200000000040 RDI: 0000000000000000
RBP: 00007f10a1435024 R08: 0000200000000080 R09: 0000000000000000
R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f10a1626128 R14: 00007f10a1626090 R15: 00007ffdea7c6db8
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/06 00:50 upstream 4d7d9486c04d 4f7b22a0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_add_link
2026/08/27 19:18 upstream 818bebeb63dd c53a1b9c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_add_link
2026/08/27 17:57 upstream 818bebeb63dd c53a1b9c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_add_link
2026/08/25 06:48 upstream 818bebeb63dd 614e416a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_add_link
* Struck through repros no longer work on HEAD.