KCSAN: data-race in copy_creds / prepare_creds (3)

Status: moderation: reported on 2026/06/23 14:40
Subsystems: lsm
Labels: race:benign prio:low
[Documentation on labels]
Reported-by: syzbot+5227aabe7c8960628bea@syzkaller.appspotmail.com
First crash: 47d, last: 7d12h
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
75eb4387 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ❌ VMHostTrigger: ❌ KCSAN: data-race in copy_creds / prepare_creds (3) 2026/06/25 00:00 2026/06/25 00:00 2026/06/25 00:13 2e5297c5
87611e02 assessment-kcsan Benign: ✅ KCSAN: data-race in copy_creds / prepare_creds (3) 2026/06/23 14:39 2026/06/23 14:39 2026/06/23 15:05 e30e5c89
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_creds / prepare_creds lsm 6 3 309d 328d 0/29 auto-obsoleted due to no activity on 2025/11/29 06:24
upstream KCSAN: data-race in copy_creds / prepare_creds (2) lsm prio:high 6 8 136d 251d 0/29 auto-obsoleted due to no activity on 2026/05/21 11:07

Sample crash report:
==================================================================
BUG: KCSAN: data-race in copy_creds / prepare_creds

write to 0xffff8881046269a8 of 4 bytes by task 6445 on cpu 0:
 get_cred_many include/linux/cred.h:222 [inline]
 copy_creds+0x78/0x340 kernel/cred.c:278
 copy_process+0x890/0x2310 kernel/fork.c:2153
 kernel_clone+0x1c0/0x5f0 kernel/fork.c:2748
 __do_sys_clone3 kernel/fork.c:3050 [inline]
 __se_sys_clone3+0x1f5/0x230 kernel/fork.c:3029
 __x64_sys_clone3+0x31/0x40 kernel/fork.c:3029
 x64_sys_call+0x580/0x3020 arch/x86/include/generated/asm/syscalls_64.h:436
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x136/0x3c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888104626900 of 184 bytes by task 6449 on cpu 1:
 prepare_creds+0x71/0x550 kernel/cred.c:192
 copy_creds+0x8f/0x340 kernel/cred.c:286
 copy_process+0x890/0x2310 kernel/fork.c:2153
 kernel_clone+0x1c0/0x5f0 kernel/fork.c:2748
 __do_sys_clone kernel/fork.c:2889 [inline]
 __se_sys_clone kernel/fork.c:2873 [inline]
 __x64_sys_clone+0x143/0x180 kernel/fork.c:2873
 x64_sys_call+0x1222/0x3020 arch/x86/include/generated/asm/syscalls_64.h:57
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x136/0x3c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 6449 Comm: syz.5.874 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/02 04:27 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in copy_creds / prepare_creds
2026/06/23 14:39 upstream 502d801f0ab0 4b1d8f01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in copy_creds / prepare_creds
* Struck through repros no longer work on HEAD.