syzbot
WARNING in btrfs_create_new_inode (3)
Status:
upstream: reported on 2026/08/10 00:12
Subsystems:
btrfs
Labels:
prio:high
[Documentation on labels]
Reported-by: syzbot+c1b8c52e6c0142c5e448@syzkaller.appspotmail.com
First crash: 52d, last: 7d05h
Sample crash report:
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5319 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
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
fail_dump lib/fault-inject.c:73 [inline]
should_fail_ex+0x410/0x560 lib/fault-inject.c:174
should_failslab+0xa8/0x100 mm/failslab.c:46
slab_pre_alloc_hook mm/slub.c:4638 [inline]
slab_alloc_node mm/slub.c:4974 [inline]
__do_kmalloc_node mm/slub.c:5413 [inline]
__kmalloc_noprof+0xfe/0x720 mm/slub.c:5439
_kmalloc_noprof include/linux/slab.h:995 [inline]
_kzalloc_noprof include/linux/slab.h:1312 [inline]
tomoyo_encode2 security/tomoyo/realpath.c:45 [inline]
tomoyo_encode+0x2ad/0x570 security/tomoyo/realpath.c:80
tomoyo_realpath_from_path+0x5fa/0x640 security/tomoyo/realpath.c:283
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_number_perm+0x246/0x5f0 security/tomoyo/file.c:728
tomoyo_path_mkdir+0xb0/0xf0 security/tomoyo/tomoyo.c:179
security_path_mkdir+0x169/0x350 security/security.c:1450
filename_mkdirat+0x200/0x510 fs/namei.c:5440
__do_sys_mkdirat fs/namei.c:5464 [inline]
__se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
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:0x7fe31239e159
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:00007fe31322ffe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fe312626090 RCX: 00007fe31239e159
RDX: 00000000000001ff RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007fe313230050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fe312626128 R14: 00007fe312626090 R15: 00007ffc86d745a8
</TASK>
ERROR: Out of memory at tomoyo_realpath_from_path.
------------[ cut here ]------------
btrfs_abort_should_print_stack(__error)
WARNING: fs/btrfs/inode.c:6766 at btrfs_create_new_inode+0x1ddc/0x1ee0 fs/btrfs/inode.c:6766, CPU#0: syz.0.0/5319
Modules linked in:
CPU: 0 UID: 0 PID: 5319 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_create_new_inode+0x1ddc/0x1ee0 fs/btrfs/inode.c:6766
Code: 00 00 00 83 fb f4 0f 85 e8 00 00 00 e8 4d 95 ab fd e9 e7 00 00 00 e8 43 95 ab fd eb 10 e8 3c 95 ab fd eb 09 e8 35 95 ab fd 90 <0f> 0b 90 89 d9 f7 d9 e9 b8 f8 ff ff e8 23 95 ab fd eb 10 e8 1c 95
RSP: 0018:ffffc9000f1279c0 EFLAGS: 00010293
RAX: ffffffff841c4e5b RBX: 00000000ffffffe4 RCX: ffff88800047cb00
RDX: 0000000000000000 RSI: ffffffff8f3dd5c0 RDI: 00000000ffffffe4
RBP: ffffc9000f127bf0 R08: ffff88800047cb00 R09: 0000000000000003
R10: 00000000fffffffb R11: 0000000000000000 R12: ffff88800bf047b8
R13: ffff8880441b4610 R14: 00000000ffffffe4 R15: ffff88801211c001
FS: 00007fe3132306c0(0000) GS:ffff88808c2c6000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005572ff7965f8 CR3: 000000004335f000 CR4: 0000000000352ef0
Call Trace:
<TASK>
btrfs_create_common+0x189/0x310 fs/btrfs/inode.c:6993
btrfs_mkdir+0xc1/0xf0 fs/btrfs/inode.c:7132
vfs_mkdir+0x40c/0x620 fs/namei.c:5410
filename_mkdirat+0x285/0x510 fs/namei.c:5443
__do_sys_mkdirat fs/namei.c:5464 [inline]
__se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
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:0x7fe31239e159
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:00007fe31322ffe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fe312626090 RCX: 00007fe31239e159
RDX: 00000000000001ff RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007fe313230050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fe312626128 R14: 00007fe312626090 R15: 00007ffc86d745a8
</TASK>
* Struck through repros no longer work on HEAD.