syzbot
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: 97d, last: 1d16h
Sample crash report:
------------[ cut here ]------------
btrfs_abort_should_print_stack(__error)
WARNING: fs/btrfs/inode.c:6903 at btrfs_add_link+0x96e/0xaa0 fs/btrfs/inode.c:6903, CPU#0: syz.0.0/5379
Modules linked in:
CPU: 0 UID: 0 PID: 5379 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+0x96e/0xaa0 fs/btrfs/inode.c:6903
Code: e2 74 13 41 83 fe fb 74 14 41 83 fe f4 75 15 e8 28 4e 9b fd eb 17 e8 21 4e 9b fd eb 10 e8 1a 4e 9b fd eb 09 e8 13 4e 9b fd 90 <0f> 0b 90 44 89 f1 f7 d9 e9 11 fe ff ff 89 df 48 c7 c6 10 2f 7f 90
RSP: 0018:ffffc9000e1c7820 EFLAGS: 00010283
RAX: ffffffff842dfccd RBX: 00000000ffffffe4 RCX: 0000000000100000
RDX: ffffc90021003000 RSI: 0000000000005367 RDI: 0000000000005368
RBP: ffffc9000e1c7948 R08: ffff88803352cb00 R09: 0000000000000003
R10: 00000000fffffffb R11: 0000000000000002 R12: 1ffff11008af9a64
R13: 0000000000000108 R14: 00000000ffffffe4 R15: ffff8880525b4001
FS: 00007fcd6f5d86c0(0000) GS:ffff88808a9e3000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcd6f5d7fe8 CR3: 00000000542cd000 CR4: 0000000000352ef0
Call Trace:
<TASK>
btrfs_create_new_inode+0x13f6/0x20b0 fs/btrfs/inode.c:6813
btrfs_symlink+0x42f/0x920 fs/btrfs/inode.c:9050
vfs_symlink+0x18e/0x370 fs/namei.c:5812
filename_symlinkat+0x1a5/0x430 fs/namei.c:5837
__do_sys_symlink fs/namei.c:5864 [inline]
__se_sys_symlink+0x4d/0x2b0 fs/namei.c:5860
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcd6e7a9b59
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:00007fcd6f5d7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000058
RAX: ffffffffffffffda RBX: 00007fcd6ea36288 RCX: 00007fcd6e7a9b59
RDX: 0000000000000000 RSI: 000020000002a8c0 RDI: 00002000000299c0
RBP: 00007fcd6e83a18b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcd6ea36320 R14: 00007fcd6ea36288 R15: 00007ffe7aca4b58
</TASK>
* Struck through repros no longer work on HEAD.