syzbot


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

Status: moderation: reported on 2025/06/10 16:12
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+d39ed99eedc0465ab3fa@syzkaller.appspotmail.com
First crash: 76d, last: 12d
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dentry_kill / shrink_dentry_list fs 6 1 1833d 1833d 0/29 auto-closed as invalid on 2020/09/22 04:21
upstream KCSAN: data-race in __dentry_kill / shrink_dentry_list (3) fs 6 10 465d 579d 0/29 auto-obsoleted due to no activity on 2024/06/21 18:39
upstream KCSAN: data-race in __dentry_kill / shrink_dentry_list (2) fs 6 1 1562d 1562d 0/29 auto-closed as invalid on 2021/06/20 12:41
upstream KCSAN: data-race in __dentry_kill / shrink_dentry_list (4) fs 6 1 362d 362d 0/29 auto-obsoleted due to no activity on 2024/10/02 04:40
upstream KCSAN: data-race in __dentry_kill / shrink_dentry_list (5) fs 6 6 187d 281d 0/29 auto-obsoleted due to no activity on 2025/04/17 00:46

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

read-write to 0xffff888106ee09c0 of 4 bytes by task 21974 on cpu 0:
 d_shrink_del fs/dcache.c:515 [inline]
 shrink_dentry_list+0x1a6/0x3d0 fs/dcache.c:1140
 shrink_dcache_parent+0x42/0x1b0 fs/dcache.c:-1
 d_invalidate+0xa6/0x1c0 fs/dcache.c:1658
 proc_invalidate_siblings_dcache+0x1c0/0x2a0 fs/proc/inode.c:142
 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 0xffff888106ee09c0 of 4 bytes by task 22879 on cpu 1:
 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: 0x0024040c -> 0x0000000c

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 22879 Comm: syz.7.6529 Not tainted 6.17.0-rc1-syzkaller-00014-g0e39a731820a #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/13 02:47 upstream 0e39a731820a 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / shrink_dentry_list
2025/06/23 23:06 upstream 86731a2a651e e2f27c35 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / shrink_dentry_list
2025/06/10 16:11 upstream f09079bd04a9 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / shrink_dentry_list
* Struck through repros no longer work on HEAD.