WARNING in create_reloc_root

Status: upstream: reported on 2026/07/09 08:51
Subsystems: btrfs
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+aca623fc25065fa06615@syzkaller.appspotmail.com
First crash: 100d, last: 18d
▶ ▼ ✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
13798e9d assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ WARNING in create_reloc_root 2026/07/07 00:05 2026/07/07 00:05 2026/07/07 01:15 93f57954
▶ ▼ Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in create_reloc_root 0 (1) 2026/07/09 08:51

Sample crash report:
------------[ cut here ]------------
btrfs_abort_should_print_stack(__error)
WARNING: fs/btrfs/relocation.c:725 at create_reloc_root+0xbdd/0xbf0 fs/btrfs/relocation.c:725, CPU#0: syz.0.0/5343
Modules linked in:
CPU: 0 UID: 0 PID: 5343 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:create_reloc_root+0xbdd/0xbf0 fs/btrfs/relocation.c:725
Code: e2 74 13 41 83 fe fb 74 14 41 83 fe f4 75 15 e8 a9 b0 96 fd eb 17 e8 a2 b0 96 fd eb 10 e8 9b b0 96 fd eb 09 e8 94 b0 96 fd 90 <0f> 0b 90 44 89 f1 f7 d9 e9 08 fd ff ff 66 0f 1f 44 00 00 90 90 90
RSP: 0018:ffffc9000f67f540 EFLAGS: 00010293
RAX: ffffffff84313c7c RBX: ffff888051d40001 RCX: ffff88803e1d2580
RDX: 0000000000000000 RSI: ffffffff8f3fee40 RDI: 00000000ffffffef
RBP: ffffc9000f67f698 R08: ffff88803e1d2580 R09: 0000000000000003
R10: 00000000fffffffb R11: 0000000000000000 R12: 1ffff92001ecfeb0
R13: 1ffff1100a3a8003 R14: 00000000ffffffef R15: ffffc9000f67f5c0
FS:  00007f7063c5a6c0(0000) GS:ffff88808c2c0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7063c99f20 CR3: 000000000e958000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 btrfs_init_reloc_root+0x2f0/0x590 fs/btrfs/relocation.c:792
 record_root_in_trans+0x2db/0x370 fs/btrfs/transaction.c:473
 btrfs_record_root_in_trans+0x15a/0x180 fs/btrfs/transaction.c:519
 start_transaction+0x3a9/0x17d0 fs/btrfs/transaction.c:803
 btrfs_create_common+0x15c/0x310 fs/btrfs/inode.c:7003
 lookup_open+0xc0d/0x1a40 fs/namei.c:4567
 open_last_lookups fs/namei.c:4767 [inline]
 path_openat+0x677/0x1d60 fs/namei.c:4997
 do_file_open+0x23e/0x4a0 fs/namei.c:5029
 do_sys_openat2+0x115/0x200 fs/open.c:1417
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 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:0x7f7062d9e159
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:00007f7063c59fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f7063026180 RCX: 00007f7062d9e159
RDX: 000000000000275a RSI: 0000200000000200 RDI: ffffffffffffff9c
RBP: 00007f7062e3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7063026218 R14: 00007f7063026180 R15: 00007ffdb8d110a8
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/24 23:56 upstream 5fc5768c7ca9 27d05fb3 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in create_reloc_root
2026/09/03 04:19 upstream 940de590b839 6a988719 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in create_reloc_root
2026/07/05 08:41 upstream 7404ce516372 fcece630 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in create_reloc_root
* Struck through repros no longer work on HEAD.