syzbot


KCSAN: data-race in d_invalidate / fast_dput (5)

Status: moderation: reported on 2025/07/11 05:11
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+963f8cfc89821433ef81@syzkaller.appspotmail.com
First crash: 105d, last: 22d
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_invalidate / fast_dput (4) fs 6 4 348d 388d 0/29 auto-obsoleted due to no activity on 2025/01/05 15:13
upstream KCSAN: data-race in d_invalidate / fast_dput (2) fs 6 1 507d 507d 0/29 auto-obsoleted due to no activity on 2024/07/09 14:03
upstream KCSAN: data-race in d_invalidate / fast_dput (3) fs 6 2 433d 443d 0/29 auto-obsoleted due to no activity on 2024/09/21 03:13
upstream KCSAN: data-race in d_invalidate / fast_dput fs 6 4 580d 627d 0/29 auto-obsoleted due to no activity on 2024/04/27 15:57

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

write to 0xffff888106e77e50 of 8 bytes by task 3936 on cpu 1:
 __d_drop fs/dcache.c:575 [inline]
 d_invalidate+0x5b/0x1c0 fs/dcache.c:1651
 lookup_fast+0x296/0x320 fs/namei.c:1781
 lookup_fast_for_open fs/namei.c:3833 [inline]
 open_last_lookups fs/namei.c:3866 [inline]
 path_openat+0x43c/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1435
 do_sys_open fs/open.c:1450 [inline]
 __do_sys_openat fs/open.c:1466 [inline]
 __se_sys_openat fs/open.c:1461 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1461
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 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 0xffff888106e77e50 of 8 bytes by task 3937 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:361 [inline]
 retain_dentry fs/dcache.c:752 [inline]
 fast_dput+0x5f/0x2c0 fs/dcache.c:848
 dput+0x24/0xd0 fs/dcache.c:905
 path_put fs/namei.c:626 [inline]
 terminate_walk+0x103/0x2a0 fs/namei.c:752
 path_openat+0x1bb0/0x2170 fs/namei.c:4135
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1435
 do_sys_open fs/open.c:1450 [inline]
 __do_sys_openat fs/open.c:1466 [inline]
 __se_sys_openat fs/open.c:1461 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1461
 x64_sys_call+0x2eab/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 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: 0xffff888237b881d0 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3937 Comm: syz.1.141 Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/02 20:51 upstream 7f7072574127 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_invalidate / fast_dput
2025/09/01 06:59 upstream b320789d6883 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_invalidate / fast_dput
2025/08/20 21:25 upstream b19a97d57c15 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_invalidate / fast_dput
2025/07/11 05:11 upstream bc9ff192a6c9 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_invalidate / fast_dput
* Struck through repros no longer work on HEAD.