syzbot


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

Status: moderation: reported on 2020/06/09 14:58
Reported-by: syzbot+0718f65353d72efaac1e@syzkaller.appspotmail.com
First crash: 1040d, last: 20h02m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in alloc_pid / copy_process 5 1058d 1069d 0/24 closed as invalid on 2019/11/19 13:24

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

read-write to 0xffffffff85c53358 of 4 bytes by task 25685 on cpu 1:
 alloc_pid+0x50d/0x6b0 kernel/pid.c:275
 copy_process+0xee6/0x20e0 kernel/fork.c:2270
 kernel_clone+0x163/0x5c0 kernel/fork.c:2671
 __do_sys_clone kernel/fork.c:2805 [inline]
 __se_sys_clone kernel/fork.c:2789 [inline]
 __x64_sys_clone+0xc3/0xf0 kernel/fork.c:2789
 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+0x63/0xcd

read to 0xffffffff85c53358 of 4 bytes by task 17183 on cpu 0:
 copy_process+0x1530/0x20e0 kernel/fork.c:2421
 kernel_clone+0x163/0x5c0 kernel/fork.c:2671
 user_mode_thread+0x6c/0xa0 kernel/fork.c:2740
 call_usermodehelper_exec_sync kernel/umh.c:135 [inline]
 call_usermodehelper_exec_work+0x76/0x150 kernel/umh.c:166
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

value changed: 0x800000b9 -> 0x800000ba

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 17183 Comm: kworker/u4:5 Not tainted 6.0.0-rc6-syzkaller-00309-g1a61b828566f-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: events_unbound call_usermodehelper_exec_work
==================================================================

Crashes (1713):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/25 14:00 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/24 18:22 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/23 19:22 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/22 23:24 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/21 22:10 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/21 01:30 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/20 00:59 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/19 10:56 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/18 19:25 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/17 17:47 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/17 02:18 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/15 18:27 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/14 19:48 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/13 22:56 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/13 06:00 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/11 20:21 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/10 18:08 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/10 16:33 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/08 14:16 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/08 06:34 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/07 18:05 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/06 02:39 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/05 17:17 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/05 04:26 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/02 08:36 upstream 42e66b1cc3a0 a805568e .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/09/01 13:35 upstream c5e4d5e99162 b01ec571 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/31 21:08 upstream c5e4d5e99162 51e54e30 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/30 16:30 upstream dcf8e5633e2e 4a380809 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/30 01:08 upstream b90cb1053190 d7593c58 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/29 01:32 upstream 8379c0b31fbc 07177916 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/28 15:54 upstream 10d4879f9ef0 07177916 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/27 22:48 upstream 89b749d8552d 07177916 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/27 09:16 upstream e022620b5d05 07177916 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/26 14:03 upstream 4c612826bec1 e5a303f1 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/25 02:56 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/24 14:53 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/23 16:23 upstream 072e51356cd5 cea8b0f7 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/23 02:26 upstream 072e51356cd5 26a13b38 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/22 22:01 upstream 1c23f9e627a7 26a13b38 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/21 21:19 upstream e3f259d33c0e 26a13b38 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/21 18:02 upstream 15b3f48a4339 26a13b38 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/20 20:10 upstream f31c32efd57c 26a13b38 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/19 18:57 upstream 4c2d0b039c5c 26a13b38 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2022/08/19 06:00 upstream 573ae4f13f63 26a13b38 .config log report info KCSAN: data-race in alloc_pid / copy_process
ci2-upstream-kcsan-gce 2021/01/17 10:24 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/06/08 23:26 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 0d60b78a .config log report
ci2-upstream-kcsan-gce 2020/06/05 14:51 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 d36418e9 .config log report
ci2-upstream-kcsan-gce 2019/11/20 23:46 https://github.com/google/ktsan.git kcsan 5863cc791e4c 8098ea0f .config log report
* Struck through repros no longer work on HEAD.