upstream test error: KCSAN: data-race in __d_rehash / fast_dput

Status: moderation: reported on 2026/12/02 17:39
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+acfe82f8e0da4749b79a@syzkaller.appspotmail.com
First crash: 15m, last: 15m

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __d_rehash / fast_dput

write to 0xffff8881005c7190 of 8 bytes by task 3329 on cpu 1:
 hlist_bl_add_head_rcu include/linux/rculist_bl.h:91 [inline]
 __d_rehash+0x84/0x130 fs/dcache.c:2833
 __d_add+0x131/0x1a0 fs/dcache.c:3142
 d_splice_alias_ops+0xe3/0x3b0 fs/dcache.c:3491
 proc_sys_lookup+0x1ed/0x310 fs/proc/proc_sysctl.c:544
 lookup_open+0x6aa/0x10a0 fs/namei.c:4536
 open_last_lookups fs/namei.c:4774 [inline]
 path_openat+0x492/0x11e0 fs/namei.c:5013
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881005c7190 of 8 bytes by task 3326 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:402 [inline]
 retain_dentry fs/dcache.c:903 [inline]
 fast_dput+0x14c/0x300 fs/dcache.c:1022
 dput+0x1a/0x50 fs/dcache.c:1071
 __fput+0x45c/0x660 fs/file_table.c:520
 fput_close_sync+0xd5/0x1d0 fs/file_table.c:618
 filp_close_sync fs/open.c:1574 [inline]
 __do_sys_close fs/open.c:1597 [inline]
 __se_sys_close fs/open.c:1584 [inline]
 __x64_sys_close+0x55/0xf0 fs/open.c:1584
 x64_sys_call+0x812/0x2550 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff8882379b3eb8 -> 0xffff8881007ba308

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3326 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/12/02 17:38 upstream 3f963696da44 35891725 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce upstream test error: KCSAN: data-race in __d_rehash / fast_dput
* Struck through repros no longer work on HEAD.