syzbot


KCSAN: data-race in d_make_discardable / do_readlinkat

Status: moderation: reported on 2025/12/06 09:41
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+ba926145db9e197dd0bf@syzkaller.appspotmail.com
First crash: 3d21h, last: 2d18h

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

write to 0xffff888107a49e40 of 4 bytes by task 3305 on cpu 0:
 d_make_discardable+0x4f/0xa0 fs/dcache.c:936
 simple_unlink+0x68/0x80 fs/libfs.c:815
 shmem_unlink+0x12d/0x140 mm/shmem.c:3991
 vfs_unlink+0x28b/0x440 fs/namei.c:5369
 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 0xffff888107a49e40 of 4 bytes by task 3004 on cpu 1:
 __d_entry_type include/linux/dcache.h:416 [inline]
 d_is_symlink include/linux/dcache.h:446 [inline]
 do_readlinkat+0x9f/0x320 fs/stat.c:585
 __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: 0x08300080 -> 0x00300180

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3004 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/07 12:51 upstream 37bb2e7217b0 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_make_discardable / do_readlinkat
2025/12/06 09:40 upstream 416f99c3b16f d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_make_discardable / do_readlinkat
* Struck through repros no longer work on HEAD.