syzbot


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

Status: moderation: reported on 2026/01/18 23:39
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+1db8e7bac42204b93ef4@syzkaller.appspotmail.com
First crash: 9d13h, last: 9d13h
Similar bugs (11)
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 625d 781d 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 2103d 2227d 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 1270d 1386d 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 1179d 1231d 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 1812d 1812d 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 1659d 1659d 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 244d 244d 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 478d 478d 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 387d 387d 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 587d 587d 0/29 auto-obsoleted due to no activity on 2024/07/25 04:38
upstream KCSAN: data-race in __d_instantiate / lookup_fast (11) fs 6 1 151d 151d 0/29 auto-obsoleted due to no activity on 2025/10/24 20:01

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

read-write to 0xffff88811b936240 of 4 bytes by task 23522 on cpu 0:
 fsnotify_update_flags include/linux/fsnotify_backend.h:-1 [inline]
 __d_instantiate+0x2a8/0x390 fs/dcache.c:1977
 d_make_persistent+0x78/0x110 fs/dcache.c:2793
 shmem_mknod+0x15f/0x170 mm/shmem.c:3892
 shmem_create+0x34/0x50 mm/shmem.c:3943
 lookup_open fs/namei.c:4449 [inline]
 open_last_lookups fs/namei.c:4549 [inline]
 path_openat+0x1121/0x23c0 fs/namei.c:4793
 do_filp_open+0x15d/0x280 fs/namei.c:4823
 do_sys_openat2+0xa6/0x150 fs/open.c:1430
 do_sys_open fs/open.c:1436 [inline]
 __do_sys_open fs/open.c:1444 [inline]
 __se_sys_open fs/open.c:1440 [inline]
 __x64_sys_open+0xe6/0x110 fs/open.c:1440
 x64_sys_call+0x166f/0x3000 arch/x86/include/generated/asm/syscalls_64.h:3
 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 0xffff88811b936240 of 4 bytes by task 23520 on cpu 1:
 d_revalidate fs/namei.c:976 [inline]
 lookup_fast+0xf0/0x320 fs/namei.c:1814
 lookup_fast_for_open fs/namei.c:4486 [inline]
 open_last_lookups fs/namei.c:4520 [inline]
 path_openat+0x415/0x23c0 fs/namei.c:4793
 do_filp_open+0x15d/0x280 fs/namei.c:4823
 do_sys_openat2+0xa6/0x150 fs/open.c:1430
 do_sys_open fs/open.c:1436 [inline]
 __do_sys_open fs/open.c:1444 [inline]
 __se_sys_open fs/open.c:1440 [inline]
 __x64_sys_open+0xe6/0x110 fs/open.c:1440
 x64_sys_call+0x166f/0x3000 arch/x86/include/generated/asm/syscalls_64.h:3
 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: 0x00000080 -> 0x08200080

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 23520 Comm: syz.8.4849 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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/18 23:38 upstream e84d960149e7 20d37d28 .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.