syzbot


KCSAN: data-race in __dentry_kill / d_make_discardable

Status: moderation: reported on 2026/01/04 16:39
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+dc4a60eb3b0f9477a856@syzkaller.appspotmail.com
First crash: 24d, last: 2d02h

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

write to 0xffff8881067d0180 of 4 bytes by task 3551 on cpu 1:
 d_make_discardable+0x4f/0xa0 fs/dcache.c:936
 simple_unlink+0x68/0x80 fs/libfs.c:807
 shmem_unlink+0x12d/0x140 mm/shmem.c:3991
 vfs_unlink+0x28b/0x440 fs/namei.c:5378
 do_unlinkat+0x1e2/0x4b0 fs/namei.c:5448
 __do_sys_unlink fs/namei.c:5483 [inline]
 __se_sys_unlink fs/namei.c:5481 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:5481
 x64_sys_call+0x2f48/0x3000 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881067d0180 of 4 bytes by task 3305 on cpu 0:
 dentry_unlist fs/dcache.c:640 [inline]
 __dentry_kill+0x25c/0x460 fs/dcache.c:684
 finish_dput+0x2b/0x200 fs/dcache.c:879
 dput+0x52/0x60 fs/dcache.c:928
 end_dirop fs/namei.c:2898 [inline]
 do_unlinkat+0x217/0x4b0 fs/namei.c:5451
 __do_sys_unlink fs/namei.c:5483 [inline]
 __se_sys_unlink fs/namei.c:5481 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:5481
 x64_sys_call+0x2f48/0x3000 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x08300080 -> 0x00000080

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3305 Comm: udevd Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/26 23:33 upstream fcb70a56f4d8 efb3e894 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_make_discardable
2026/01/26 11:47 upstream 63804fed149a a4c52dd6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_make_discardable
2026/01/25 13:49 upstream d91a46d6805a 40acda8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_make_discardable
2026/01/23 23:12 upstream 5bde837031a3 4f25b9b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_make_discardable
2026/01/23 04:26 upstream c072629f05d7 82c9c083 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_make_discardable
2026/01/13 18:57 upstream b54345928fa1 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_make_discardable
2026/01/04 16:38 upstream 54e82e93ca93 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dentry_kill / d_make_discardable
* Struck through repros no longer work on HEAD.