syzbot


KCSAN: data-race in __dentry_kill / lookup_fast (14)

Status: moderation: reported on 2025/08/23 05:13
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+1a16103352d77f31da30@syzkaller.appspotmail.com
First crash: 5d02h, last: 5d02h
Similar bugs (13)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / lookup_fast (5) fs 6 12 1549d 1622d 0/29 auto-closed as invalid on 2021/07/05 09:49
upstream KCSAN: data-race in __dentry_kill / lookup_fast (8) fs 6 8 861d 924d 0/29 auto-obsoleted due to no activity on 2023/05/25 00:07
upstream KCSAN: data-race in __dentry_kill / lookup_fast (13) fs 6 5 136d 184d 0/29 auto-obsoleted due to no activity on 2025/06/08 21:40
upstream KCSAN: data-race in __dentry_kill / lookup_fast (2) fs 6 5 1830d 1890d 0/29 auto-closed as invalid on 2020/09/27 09:27
upstream KCSAN: data-race in __dentry_kill / lookup_fast fs 6 10 1913d 2006d 0/29 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __dentry_kill / lookup_fast (11) fs 6 1 404d 404d 0/29 auto-obsoleted due to no activity on 2024/08/23 20:28
upstream KCSAN: data-race in __dentry_kill / lookup_fast (10) fs 6 3 514d 552d 0/29 auto-obsoleted due to no activity on 2024/05/05 12:07
upstream KCSAN: data-race in __dentry_kill / lookup_fast (12) fs 6 3 240d 294d 0/29 auto-obsoleted due to no activity on 2025/02/24 08:27
upstream KCSAN: data-race in __dentry_kill / lookup_fast (7) fs 6 27 971d 1232d 0/29 auto-obsoleted due to no activity on 2023/02/12 11:35
upstream KCSAN: data-race in __dentry_kill / lookup_fast (6) fs 6 1 1377d 1377d 0/29 auto-closed as invalid on 2021/12/25 02:52
upstream KCSAN: data-race in __dentry_kill / lookup_fast (4) fs 6 3 1670d 1695d 0/29 auto-closed as invalid on 2021/03/06 20:57
upstream KCSAN: data-race in __dentry_kill / lookup_fast (3) fs 6 3 1732d 1724d 0/29 auto-closed as invalid on 2021/01/03 16:37
upstream KCSAN: data-race in __dentry_kill / lookup_fast (9) fs 6 31 592d 628d 0/29 auto-obsoleted due to no activity on 2024/02/17 10:11

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

read-write to 0xffff888107286c00 of 4 bytes by task 3242 on cpu 1:
 dentry_unlist fs/dcache.c:614 [inline]
 __dentry_kill+0x230/0x4b0 fs/dcache.c:683
 dput+0x5e/0xd0 fs/dcache.c:911
 do_unlinkat+0x259/0x480 fs/namei.c:4653
 __do_sys_unlink fs/namei.c:4696 [inline]
 __se_sys_unlink fs/namei.c:4694 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:4694
 x64_sys_call+0x2dc0/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:88
 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 0xffff888107286c00 of 4 bytes by task 2994 on cpu 0:
 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: 0x00300080 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 2994 Comm: udevd Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
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/23 05:13 upstream cf6fc5eefc5b bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / lookup_fast
* Struck through repros no longer work on HEAD.