syzbot


KCSAN: data-race in copy_process / free_pid (4)

Status: auto-closed as invalid on 2021/09/04 11:26
Subsystems: kernel
[Documentation on labels]
First crash: 1277d, last: 1277d
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_process / free_pid (8) kernel 1 782d 782d 0/28 auto-obsoleted due to no activity on 2023/01/17 03:08
upstream KCSAN: data-race in copy_process / free_pid (11) kernel 1 248d 248d 0/28 auto-obsoleted due to no activity on 2024/06/30 01:30
upstream KCSAN: data-race in copy_process / free_pid kernel 1 1874d 1874d 0/28 auto-closed as invalid on 2020/02/20 19:37
upstream KCSAN: data-race in copy_process / free_pid (10) kernel 23 287d 416d 0/28 auto-obsoleted due to no activity on 2024/05/21 14:09
upstream KCSAN: data-race in copy_process / free_pid (9) kernel 12 531d 616d 0/28 auto-obsoleted due to no activity on 2023/09/21 05:02
upstream KCSAN: data-race in copy_process / free_pid (6) kernel 2 972d 976d 0/28 auto-closed as invalid on 2022/07/06 07:38
upstream KCSAN: data-race in copy_process / free_pid (5) kernel 32 1113d 1232d 0/28 auto-closed as invalid on 2022/02/15 18:33
upstream KCSAN: data-race in copy_process / free_pid (2) kasan 1 1789d 1789d 0/28 auto-closed as invalid on 2020/05/15 22:36
upstream KCSAN: data-race in copy_process / free_pid (7) kernel 4 872d 924d 0/28 auto-obsoleted due to no activity on 2022/10/14 18:22
upstream KCSAN: data-race in copy_process / free_pid (13) kernel 6 103d 137d 0/28 auto-obsoleted due to no activity on 2024/11/22 02:42
upstream KCSAN: data-race in copy_process / free_pid (3) kernel 1 1468d 1468d 0/28 auto-closed as invalid on 2021/02/26 04:07
upstream KCSAN: data-race in copy_process / free_pid (12) kernel 1 205d 205d 0/28 auto-obsoleted due to no activity on 2024/08/11 08:23
upstream KCSAN: data-race in copy_process / free_pid (14) kernel 1 25d 25d 0/28 moderation: reported on 2025/01/04 00:52

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

write to 0xffffffff8364b458 of 4 bytes by task 7713 on cpu 1:
 free_pid+0x79/0x190 kernel/pid.c:136
 copy_process+0x23ba/0x2f70 kernel/fork.c:2356
 kernel_clone+0x14b/0x680 kernel/fork.c:2509
 __do_sys_clone kernel/fork.c:2626 [inline]
 __se_sys_clone kernel/fork.c:2610 [inline]
 __x64_sys_clone+0xb4/0xe0 kernel/fork.c:2610
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffffffff8364b458 of 4 bytes by task 1840 on cpu 0:
 copy_process+0x1e4a/0x2f70 kernel/fork.c:2269
 kernel_clone+0x14b/0x680 kernel/fork.c:2509
 kernel_thread+0x71/0x90 kernel/fork.c:2561
 call_usermodehelper_exec_work+0x3d/0x150 kernel/umh.c:174
 process_one_work+0x3e9/0x8f0 kernel/workqueue.c:2276
 worker_thread+0x636/0xae0 kernel/workqueue.c:2422
 kthread+0x262/0x280 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

value changed: 0x800000a0 -> 0x8000009f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1840 Comm: kworker/u4:7 Not tainted 5.14.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_unbound call_usermodehelper_exec_work
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/31 11:24 upstream c7d102232649 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / free_pid
* Struck through repros no longer work on HEAD.