syzbot


KCSAN: data-race in __dentry_kill / __dentry_kill (6)

Status: moderation: reported on 2025/06/13 23:17
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+155fa09a20bcdff536d4@syzkaller.appspotmail.com
First crash: 35d, last: 6d13h
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / __dentry_kill (2) fs 6 1 400d 400d 0/29 auto-obsoleted due to no activity on 2024/07/18 14:41
upstream KCSAN: data-race in __dentry_kill / __dentry_kill (3) fs 6 1 342d 342d 0/29 auto-obsoleted due to no activity on 2024/09/15 09:01
upstream KCSAN: data-race in __dentry_kill / __dentry_kill (5) fs 6 1 204d 204d 0/29 auto-obsoleted due to no activity on 2025/02/21 02:11
upstream KCSAN: data-race in __dentry_kill / __dentry_kill (4) fs 6 2 265d 271d 0/29 auto-obsoleted due to no activity on 2024/12/22 05:35
upstream KCSAN: data-race in __dentry_kill / __dentry_kill fs 6 1 464d 464d 0/29 auto-obsoleted due to no activity on 2024/05/15 11:32

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

write to 0xffff888100492180 of 4 bytes by task 2995 on cpu 1:
 d_lru_del fs/dcache.c:503 [inline]
 __dentry_kill+0xa8/0x4b0 fs/dcache.c:664
 dput+0x5e/0xd0 fs/dcache.c:911
 lookup_fast+0x29e/0x320 fs/namei.c:1783
 walk_component+0x3f/0x220 fs/namei.c:2134
 lookup_last fs/namei.c:2639 [inline]
 path_lookupat+0xfe/0x2a0 fs/namei.c:2663
 filename_lookup+0x147/0x340 fs/namei.c:2692
 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+0x2cf3/0x2fb0 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

read to 0xffff888100492180 of 4 bytes by task 3296 on cpu 0:
 dentry_unlist fs/dcache.c:639 [inline]
 __dentry_kill+0x2aa/0x4b0 fs/dcache.c:683
 dput+0x5e/0xd0 fs/dcache.c:911
 lookup_fast+0x29e/0x320 fs/namei.c:1783
 walk_component fs/namei.c:2134 [inline]
 link_path_walk+0x4ba/0x900 fs/namei.c:2506
 path_openat+0x1de/0x2170 fs/namei.c:4051
 do_filp_open+0x109/0x230 fs/namei.c:4082
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1463
 x64_sys_call+0x1af/0x2fb0 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: 0x00140004 -> 0x00000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3296 Comm: udevd Not tainted 6.16.0-rc5-syzkaller-00266-g3f31a806a62e #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/12 21:32 upstream 3f31a806a62e 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / __dentry_kill
2025/07/07 11:47 upstream d7b8f8e20813 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / __dentry_kill
2025/06/13 23:17 upstream 02adc1490e6d 0e8da31f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / __dentry_kill
* Struck through repros no longer work on HEAD.