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: 73d, last: 3d02h
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 439d 439d 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 380d 380d 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 242d 242d 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 303d 309d 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 503d 503d 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 0xffff888106fd4b40 of 4 bytes by task 6749 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
 proc_invalidate_siblings_dcache+0x1c8/0x2a0 fs/proc/inode.c:143
 proc_flush_pid+0x1d/0x30 fs/proc/base.c:3483
 release_task+0x992/0xb60 kernel/exit.c:293
 wait_task_zombie kernel/exit.c:1264 [inline]
 wait_consider_task+0x114a/0x1660 kernel/exit.c:1491
 do_wait_thread kernel/exit.c:1554 [inline]
 __do_wait+0xfa/0x510 kernel/exit.c:1672
 do_wait+0xb7/0x260 kernel/exit.c:1706
 kernel_wait4+0x16b/0x1e0 kernel/exit.c:1865
 __do_sys_wait4 kernel/exit.c:1893 [inline]
 __se_sys_wait4 kernel/exit.c:1889 [inline]
 __x64_sys_wait4+0x91/0x120 kernel/exit.c:1889
 x64_sys_call+0x2a66/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:62
 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 0xffff888106fd4b40 of 4 bytes by task 8730 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
 proc_invalidate_siblings_dcache+0x1c8/0x2a0 fs/proc/inode.c:143
 proc_flush_pid+0x1d/0x30 fs/proc/base.c:3483
 release_task+0x992/0xb60 kernel/exit.c:293
 exit_notify kernel/exit.c:778 [inline]
 do_exit+0xd81/0x15c0 kernel/exit.c:973
 do_group_exit+0xff/0x140 kernel/exit.c:1102
 get_signal+0xe59/0xf70 kernel/signal.c:3034
 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop+0x7a/0x100 kernel/entry/common.c:40
 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
 do_syscall_64+0x1d6/0x200 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0014004c -> 0x0000004c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 8730 Comm: syz.5.1783 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 (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/23 15:44 upstream 6debb6904172 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / __dentry_kill
2025/08/20 00:11 upstream b19a97d57c15 254a27c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / __dentry_kill
2025/08/04 16:53 upstream d2eedaa3909b 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / __dentry_kill
2025/07/27 11:51 upstream ec2df4364666 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / __dentry_kill
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.