syzbot


KCSAN: data-race in complete_signal / ptrace_attach (4)

Status: auto-closed as invalid on 2021/09/05 09:58
Subsystems: kernel
[Documentation on labels]
First crash: 1012d, last: 992d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in complete_signal / ptrace_attach (5) kernel 1 946d 946d 0/26 auto-closed as invalid on 2021/10/20 20:50
upstream KCSAN: data-race in complete_signal / ptrace_attach (2) kernel 1 1250d 1229d 0/26 auto-closed as invalid on 2020/12/21 12:01
upstream KCSAN: data-race in complete_signal / ptrace_attach kernel 1 1377d 1377d 0/26 auto-closed as invalid on 2020/08/16 11:51
upstream KCSAN: data-race in complete_signal / ptrace_attach (3) kernel 1 1210d 1210d 0/26 auto-closed as invalid on 2021/01/30 06:54

Sample crash report:
==================================================================
BUG: KCSAN: data-race in complete_signal / ptrace_attach

write to 0xffff88812d2850b0 of 4 bytes by task 9902 on cpu 0:
 ptrace_attach+0x243/0x510 kernel/ptrace.c:424
 __do_sys_ptrace kernel/ptrace.c:1297 [inline]
 __se_sys_ptrace+0xc1/0x1b0 kernel/ptrace.c:1277
 __x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1277
 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 0xffff88812d2850b0 of 4 bytes by task 9907 on cpu 1:
 complete_signal+0x453/0x600 kernel/signal.c:1046
 __send_signal+0x680/0x760 kernel/signal.c:1194
 send_signal+0x281/0x390 kernel/signal.c:1257
 do_send_sig_info kernel/signal.c:1306 [inline]
 do_send_specific+0x13d/0x1c0 kernel/signal.c:3856
 do_tkill kernel/signal.c:3882 [inline]
 __do_sys_tkill kernel/signal.c:3917 [inline]
 __se_sys_tkill kernel/signal.c:3911 [inline]
 __x64_sys_tkill+0xe2/0x120 kernel/signal.c:3911
 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

value changed: 0x00000000 -> 0x00010001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9907 Comm: syz-executor.5 Not tainted 5.14.0-rc3-syzkaller #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
2021/08/01 09:55 upstream f3438b4c4e69 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in complete_signal / ptrace_attach
2021/07/12 16:33 upstream e73f0f0ee754 a4869c92 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in complete_signal / ptrace_attach
* Struck through repros no longer work on HEAD.