syzbot


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

Status: auto-closed as invalid on 2022/07/06 07:38
Subsystems: kernel
[Documentation on labels]
First crash: 976d, last: 972d
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 530d 616d 0/28 auto-obsoleted due to no activity on 2023/09/21 05:02
upstream KCSAN: data-race in copy_process / free_pid (4) kernel 1 1277d 1277d 0/28 auto-closed as invalid on 2021/09/04 11:26
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 1467d 1467d 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

read-write to 0xffff88811229c688 of 4 bytes by task 7803 on cpu 1:
 free_pid+0x71/0x180 kernel/pid.c:136
 copy_process+0x1924/0x20e0 kernel/fork.c:2488
 kernel_clone+0x163/0x5c0 kernel/fork.c:2642
 __do_sys_clone kernel/fork.c:2759 [inline]
 __se_sys_clone kernel/fork.c:2743 [inline]
 __x64_sys_clone+0xbd/0xf0 kernel/fork.c:2743
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffff88811229c688 of 4 bytes by task 7804 on cpu 0:
 copy_process+0x1528/0x20e0 kernel/fork.c:2402
 kernel_clone+0x163/0x5c0 kernel/fork.c:2642
 __do_sys_clone kernel/fork.c:2759 [inline]
 __se_sys_clone kernel/fork.c:2743 [inline]
 __x64_sys_clone+0xbd/0xf0 kernel/fork.c:2743
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0x8000001e -> 0x8000001d

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7804 Comm: syz-executor.4 Not tainted 5.18.0-syzkaller-11538-ge1cbc3b96a99-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/01 07:33 upstream e1cbc3b96a99 3666edfe .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / free_pid
2022/05/28 14:49 upstream 9d004b2f4fea a46af346 .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.