syzbot


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

Status: auto-closed as invalid on 2020/05/15 22:36
Subsystems: kasan
[Documentation on labels]
First crash: 1512d, last: 1512d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_process / free_pid (8) kernel 1 505d 505d 0/26 auto-obsoleted due to no activity on 2023/01/17 03:08
upstream KCSAN: data-race in copy_process / free_pid kernel 1 1597d 1597d 0/26 auto-closed as invalid on 2020/02/20 19:37
upstream KCSAN: data-race in copy_process / free_pid (10) kernel 23 10d 139d 0/26 moderation: reported on 2023/12/10 00:02
upstream KCSAN: data-race in copy_process / free_pid (9) kernel 12 253d 339d 0/26 auto-obsoleted due to no activity on 2023/09/21 05:02
upstream KCSAN: data-race in copy_process / free_pid (6) kernel 2 695d 699d 0/26 auto-closed as invalid on 2022/07/06 07:38
upstream KCSAN: data-race in copy_process / free_pid (4) kernel 1 1000d 1000d 0/26 auto-closed as invalid on 2021/09/04 11:26
upstream KCSAN: data-race in copy_process / free_pid (5) kernel 32 836d 955d 0/26 auto-closed as invalid on 2022/02/15 18:33
upstream KCSAN: data-race in copy_process / free_pid (7) kernel 4 595d 647d 0/26 auto-obsoleted due to no activity on 2022/10/14 18:22
upstream KCSAN: data-race in copy_process / free_pid (3) kernel 1 1190d 1190d 0/26 auto-closed as invalid on 2021/02/26 04:07

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

write to 0xffffffff85a7b9b0 of 4 bytes by task 12706 on cpu 1:
 free_pid+0xf1/0x1b0 kernel/pid.c:134
 copy_process+0x316f/0x3b10 kernel/fork.c:2319
 _do_fork+0xf7/0x790 kernel/fork.c:2436
 __do_sys_clone kernel/fork.c:2591 [inline]
 __se_sys_clone kernel/fork.c:2572 [inline]
 __x64_sys_clone+0x12e/0x170 kernel/fork.c:2572
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffffff85a7b9b0 of 4 bytes by task 27939 on cpu 0:
 copy_process+0x27d8/0x3b10 kernel/fork.c:2233
 _do_fork+0xf7/0x790 kernel/fork.c:2436
 __do_sys_clone kernel/fork.c:2591 [inline]
 __se_sys_clone kernel/fork.c:2572 [inline]
 __x64_sys_clone+0x12e/0x170 kernel/fork.c:2572
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 27939 Comm: udevd Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 27939 Comm: udevd Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x11d/0x187 lib/dump_stack.c:118
 panic+0x210/0x640 kernel/panic.c:221
 kcsan_report.cold+0xc/0x14 kernel/kcsan/report.c:609
 kcsan_setup_watchpoint+0x3e3/0x420 kernel/kcsan/core.c:503
 copy_process+0x27d8/0x3b10 kernel/fork.c:2233
 _do_fork+0xf7/0x790 kernel/fork.c:2436
 __do_sys_clone kernel/fork.c:2591 [inline]
 __se_sys_clone kernel/fork.c:2572 [inline]
 __x64_sys_clone+0x12e/0x170 kernel/fork.c:2572
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f8acb0e6f46
Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 14 25 10 00 00 00 31 d2 49 81 c2 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 31 01 00 00 85 c0 41 89 c4 0f 85 3b 01 00
RSP: 002b:00007ffd51b4a8e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffd51b4a8e0 RCX: 00007f8acb0e6f46
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffd51b4a940 R08: 0000000000006d23 R09: 0000000000006d23
R10: 00007f8acba03a70 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd51b4a900 R14: 0000000000000005 R15: 0000000000000005
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/06 22:36 https://github.com/google/ktsan.git kcsan 941e0d917bbf fd2a5f28 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.