syzbot


KCSAN: data-race in copy_process / memcpy_and_pad (2)

Status: moderation: reported on 2025/12/11 10:15
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+e124185ab9c4c2e9a1aa@syzkaller.appspotmail.com
First crash: 3d17h, last: 3d17h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_process / memcpy_and_pad mm 6 3 146d 186d 0/29 auto-obsoleted due to no activity on 2025/09/15 03:37

Sample crash report:
==================================================================
BUG: KCSAN: data-race in copy_process / memcpy_and_pad

write to 0xffff8881001d9638 of 8 bytes by task 76 on cpu 0:
 __list_add include/linux/list.h:161 [inline]
 list_add_tail include/linux/list.h:191 [inline]
 copy_process+0x1c54/0x1ef0 kernel/fork.c:2436
 kernel_clone+0x16c/0x5c0 kernel/fork.c:2651
 user_mode_thread+0x7d/0xb0 kernel/fork.c:2727
 call_usermodehelper_exec_work+0x41/0x160 kernel/umh.c:171
 process_one_work kernel/workqueue.c:3257 [inline]
 process_scheduled_works+0x4ce/0x9d0 kernel/workqueue.c:3340
 worker_thread+0x582/0x770 kernel/workqueue.c:3421
 kthread+0x489/0x510 kernel/kthread.c:463
 ret_from_fork+0x149/0x290 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246

read to 0xffff8881001d9080 of 3264 bytes by task 2 on cpu 1:
 memcpy_and_pad+0x48/0x80 lib/string_helpers.c:1007
 arch_dup_task_struct+0x2c/0x40 arch/x86/kernel/process.c:108
 dup_task_struct+0x6e/0x950 kernel/fork.c:919
 copy_process+0x37d/0x1ef0 kernel/fork.c:2052
 kernel_clone+0x16c/0x5c0 kernel/fork.c:2651
 kernel_thread+0xad/0xe0 kernel/fork.c:2712
 create_kthread kernel/kthread.c:486 [inline]
 kthreadd+0x28d/0x360 kernel/kthread.c:844
 ret_from_fork+0x149/0x290 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 2 Comm: kthreadd 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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/11 10:15 upstream d358e5254674 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / memcpy_and_pad
* Struck through repros no longer work on HEAD.