syzbot


KCSAN: data-race in __d_instantiate / lookup_fast (11)

Status: moderation: reported on 2025/08/29 20:01
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+0ed82ca6eec4d689a623@syzkaller.appspotmail.com
First crash: 16h34m, last: 16h34m
Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_instantiate / lookup_fast (6) ext4 6 53 474d 630d 0/29 auto-obsoleted due to no activity on 2024/06/16 23:52
upstream KCSAN: data-race in __d_instantiate / lookup_fast ext4 6 6 1952d 2076d 0/29 auto-closed as invalid on 2020/06/18 13:33
upstream KCSAN: data-race in __d_instantiate / lookup_fast (4) ext4 6 16 1119d 1235d 0/29 auto-closed as invalid on 2022/09/10 18:37
upstream KCSAN: data-race in __d_instantiate / lookup_fast (5) ext4 6 7 1028d 1080d 0/29 auto-obsoleted due to no activity on 2022/12/11 12:03
upstream KCSAN: data-race in __d_instantiate / lookup_fast (2) fs 6 1 1661d 1661d 0/29 auto-closed as invalid on 2021/03/18 02:49
upstream KCSAN: data-race in __d_instantiate / lookup_fast (3) ext4 6 1 1508d 1508d 0/29 auto-closed as invalid on 2021/08/17 22:04
upstream KCSAN: data-race in __d_instantiate / lookup_fast (10) fs 6 1 93d 93d 0/29 auto-obsoleted due to no activity on 2025/07/24 00:58
upstream KCSAN: data-race in __d_instantiate / lookup_fast (8) fs 6 1 327d 327d 0/29 auto-obsoleted due to no activity on 2024/11/11 02:07
upstream KCSAN: data-race in __d_instantiate / lookup_fast (9) fs 6 1 236d 236d 0/29 auto-obsoleted due to no activity on 2025/03/03 11:43
upstream KCSAN: data-race in __d_instantiate / lookup_fast (7) ext4 6 1 436d 436d 0/29 auto-obsoleted due to no activity on 2024/07/25 04:38

Sample crash report:
udevd[2993]: worker [7962] terminated by signal 33 (Unknown signal 33)
udevd[2993]: worker [7962] failed while handling '/devices/virtual/block/loop3'
==================================================================
BUG: KCSAN: data-race in __d_instantiate / lookup_fast

read-write to 0xffff888100761780 of 4 bytes by task 7968 on cpu 0:
 fsnotify_update_flags include/linux/fsnotify_backend.h:-1 [inline]
 __d_instantiate+0x2c2/0x3b0 fs/dcache.c:1938
 d_instantiate+0x59/0x80 fs/dcache.c:1963
 shmem_symlink+0x3a7/0x3d0 mm/shmem.c:4200
 vfs_symlink+0xd4/0x1e0 fs/namei.c:4730
 do_symlinkat+0xc7/0x3c0 fs/namei.c:4756
 __do_sys_symlink fs/namei.c:4777 [inline]
 __se_sys_symlink fs/namei.c:4775 [inline]
 __x64_sys_symlink+0x50/0x60 fs/namei.c:4775
 x64_sys_call+0x23cc/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:89
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888100761780 of 4 bytes by task 2993 on cpu 1:
 d_revalidate fs/namei.c:928 [inline]
 lookup_fast+0xf0/0x320 fs/namei.c:1756
 walk_component+0x3f/0x220 fs/namei.c:2125
 lookup_last fs/namei.c:2630 [inline]
 path_lookupat+0xfe/0x2a0 fs/namei.c:2654
 filename_lookup+0x147/0x340 fs/namei.c:2683
 do_readlinkat+0x7d/0x320 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+0x28da/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:90
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000080 -> 0x00300080

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 2993 Comm: udevd Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/29 20:01 upstream fb679c832b64 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_instantiate / lookup_fast
* Struck through repros no longer work on HEAD.