syzbot


KCSAN: data-race in dont_mount / path_lookupat

Status: moderation: reported on 2025/12/02 12:53
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+ef0f46eb7046ddc2f764@syzkaller.appspotmail.com
First crash: 1d14h, last: 12h31m

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

read-write to 0xffff88810c690b40 of 4 bytes by task 4916 on cpu 0:
 dont_mount+0x2a/0x40 include/linux/dcache.h:380
 vfs_unlink+0x2ae/0x440 fs/namei.c:5371
 do_unlinkat+0x1cd/0x4b0 fs/namei.c:5439
 __do_sys_unlink fs/namei.c:5474 [inline]
 __se_sys_unlink fs/namei.c:5472 [inline]
 __x64_sys_unlink+0x2e/0x40 fs/namei.c:5472
 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+0xd8/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810c690b40 of 4 bytes by task 3009 on cpu 1:
 d_managed include/linux/dcache.h:401 [inline]
 step_into fs/namei.c:2078 [inline]
 walk_component fs/namei.c:2227 [inline]
 lookup_last fs/namei.c:2722 [inline]
 path_lookupat+0x1d8/0x500 fs/namei.c:2746
 filename_lookup+0x147/0x340 fs/namei.c:2775
 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+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+0xd8/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00300080 -> 0x00004080

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3009 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 (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/03 14:49 upstream 3f9f0252130e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dont_mount / path_lookupat
2025/12/02 12:52 upstream 4a26e7032d7d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dont_mount / path_lookupat
* Struck through repros no longer work on HEAD.