syzbot


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

Status: moderation: reported on 2024/05/26 01:30
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+8fffe7b993f7d5d86fb3@syzkaller.appspotmail.com
First crash: 20d, last: 20d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_process / free_pid (8) kernel 1 554d 554d 0/27 auto-obsoleted due to no activity on 2023/01/17 03:08
upstream KCSAN: data-race in copy_process / free_pid kernel 1 1646d 1646d 0/27 auto-closed as invalid on 2020/02/20 19:37
upstream KCSAN: data-race in copy_process / free_pid (10) kernel 23 59d 188d 0/27 auto-obsoleted due to no activity on 2024/05/21 14:09
upstream KCSAN: data-race in copy_process / free_pid (9) kernel 12 303d 388d 0/27 auto-obsoleted due to no activity on 2023/09/21 05:02
upstream KCSAN: data-race in copy_process / free_pid (6) kernel 2 744d 748d 0/27 auto-closed as invalid on 2022/07/06 07:38
upstream KCSAN: data-race in copy_process / free_pid (4) kernel 1 1049d 1049d 0/27 auto-closed as invalid on 2021/09/04 11:26
upstream KCSAN: data-race in copy_process / free_pid (5) kernel 32 885d 1004d 0/27 auto-closed as invalid on 2022/02/15 18:33
upstream KCSAN: data-race in copy_process / free_pid (2) kasan 1 1561d 1561d 0/27 auto-closed as invalid on 2020/05/15 22:36
upstream KCSAN: data-race in copy_process / free_pid (7) kernel 4 644d 696d 0/27 auto-obsoleted due to no activity on 2022/10/14 18:22
upstream KCSAN: data-race in copy_process / free_pid (3) kernel 1 1240d 1240d 0/27 auto-closed as invalid on 2021/02/26 04:07

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

read-write to 0xffffffff8605c4f8 of 4 bytes by task 6117 on cpu 1:
 free_pid+0x80/0x170 kernel/pid.c:143
 copy_process+0x19d0/0x1f90 kernel/fork.c:2637
 kernel_clone+0x16a/0x570 kernel/fork.c:2797
 __do_sys_clone3 kernel/fork.c:3098 [inline]
 __se_sys_clone3+0x1b5/0x1f0 kernel/fork.c:3082
 __x64_sys_clone3+0x31/0x40 kernel/fork.c:3082
 x64_sys_call+0x28df/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:436
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff8605c4f8 of 4 bytes by task 32659 on cpu 0:
 copy_process+0x15e3/0x1f90 kernel/fork.c:2543
 kernel_clone+0x16a/0x570 kernel/fork.c:2797
 user_mode_thread+0x7d/0xb0 kernel/fork.c:2875
 call_usermodehelper_exec_work+0x41/0x150 kernel/umh.c:172
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312
 worker_thread+0x526/0x730 kernel/workqueue.c:3393
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x800002a0 -> 0x8000029f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 32659 Comm: kworker/u8:10 Tainted: G        W          6.9.0-syzkaller-12333-g54f71b0369c9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
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
2024/05/26 01:29 upstream 54f71b0369c9 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in copy_process / free_pid
* Struck through repros no longer work on HEAD.