syzbot


KCSAN: data-race in __d_instantiate / path_lookupat

Status: moderation: reported on 2025/12/14 16:29
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+f87e35585919acb181af@syzkaller.appspotmail.com
First crash: 45d, last: 11d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __d_instantiate / path_lookupat

write to 0xffff888107a34f30 of 8 bytes by task 4360 on cpu 0:
 __d_set_inode_and_type fs/dcache.c:407 [inline]
 __d_instantiate+0x1db/0x390 fs/dcache.c:1975
 d_make_persistent+0x78/0x110 fs/dcache.c:2793
 shmem_symlink+0x3a4/0x3b0 mm/shmem.c:4142
 vfs_symlink+0x1b4/0x1f0 fs/namei.c:5523
 do_symlinkat+0xf0/0x460 fs/namei.c:5550
 __do_sys_symlink fs/namei.c:5576 [inline]
 __se_sys_symlink fs/namei.c:5574 [inline]
 __x64_sys_symlink+0x50/0x60 fs/namei.c:5574
 x64_sys_call+0x24a9/0x3000 arch/x86/include/generated/asm/syscalls_64.h:89
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888107a34f30 of 8 bytes by task 3007 on cpu 1:
 step_into fs/namei.c:2088 [inline]
 walk_component fs/namei.c:2235 [inline]
 lookup_last fs/namei.c:2730 [inline]
 path_lookupat+0x228/0x500 fs/namei.c:2754
 filename_lookup+0x190/0x390 fs/namei.c:2783
 do_readlinkat+0x7d/0x340 fs/stat.c:576
 __do_sys_readlink fs/stat.c:613 [inline]
 __se_sys_readlink fs/stat.c:610 [inline]
 __x64_sys_readlink+0x47/0x60 fs/stat.c:610
 x64_sys_call+0x2af1/0x3000 arch/x86/include/generated/asm/syscalls_64.h:90
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000000 -> 0xffff88811b43c938

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3007 Comm: udevd Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/18 03:33 upstream d12453c7e281 20d37d28 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_instantiate / path_lookupat
2025/12/24 02:51 upstream b927546677c8 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_instantiate / path_lookupat
2025/12/14 16:29 upstream 8f0b4cce4481 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_instantiate / path_lookupat
* Struck through repros no longer work on HEAD.