syzbot


KCSAN: data-race in d_delete / path_lookupat

Status: moderation: reported on 2025/12/10 11:32
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+36776ef3c8bacad09f26@syzkaller.appspotmail.com
First crash: 49d, last: 8d11h

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

read-write to 0xffff8881077a1cc0 of 4 bytes by task 13757 on cpu 0:
 d_delete+0x15a/0x180 fs/dcache.c:2519
 d_delete_notify+0x32/0x100 include/linux/fsnotify.h:375
 vfs_unlink+0x32c/0x440 fs/namei.c:5393
 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 0xffff8881077a1cc0 of 4 bytes by task 3007 on cpu 1:
 d_managed include/linux/dcache.h:403 [inline]
 step_into fs/namei.c:2086 [inline]
 walk_component fs/namei.c:2235 [inline]
 lookup_last fs/namei.c:2730 [inline]
 path_lookupat+0x1d8/0x500 fs/namei.c:2754
 filename_lookup+0x190/0x390 fs/namei.c:2783
 do_readlinkat+0x7d/0x340 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+0x2af1/0x3000 arch/x86/include/generated/asm/syscalls_64.h:90
 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: 0x00300180 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3007 Comm: udevd Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/20 02:30 upstream 24d479d26b25 572effc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / path_lookupat
2026/01/17 18:20 upstream d3eeb99bbc99 20d37d28 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / path_lookupat
2026/01/01 12:48 upstream b69053dd3ffb d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / path_lookupat
2025/12/21 13:20 upstream 9094662f6707 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / path_lookupat
2025/12/10 11:31 upstream c9b47175e913 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_delete / path_lookupat
* Struck through repros no longer work on HEAD.