syzbot


KCSAN: data-race in ptrace_check_attach / zap_other_threads (4)

Status: auto-closed as invalid on 2021/03/30 13:55
Subsystems: kernel
[Documentation on labels]
First crash: 1150d, last: 1150d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ptrace_check_attach / zap_other_threads kernel 1 1356d 1356d 0/26 auto-closed as invalid on 2020/09/05 20:28
upstream KCSAN: data-race in ptrace_check_attach / zap_other_threads (2) kernel 1 1321d 1321d 0/26 auto-closed as invalid on 2020/10/10 22:50
upstream KCSAN: data-race in ptrace_check_attach / zap_other_threads (5) kernel 9 1053d 1088d 0/26 auto-closed as invalid on 2021/07/05 18:29
upstream KCSAN: data-race in ptrace_check_attach / zap_other_threads (3) kernel 1 1262d 1228d 0/26 auto-closed as invalid on 2020/12/21 11:57

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ptrace_check_attach / zap_other_threads

write to 0xffff888010279500 of 8 bytes by task 9683 on cpu 1:
 task_clear_jobctl_pending kernel/signal.c:344 [inline]
 zap_other_threads+0x98/0x1e0 kernel/signal.c:1356
 do_group_exit+0x149/0x180 kernel/exit.c:917
 __do_sys_exit_group+0xb/0x10 kernel/exit.c:933
 __se_sys_exit_group+0x5/0x10 kernel/exit.c:931
 __x64_sys_exit_group+0x16/0x20 kernel/exit.c:931
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888010279500 of 8 bytes by task 9685 on cpu 0:
 ptrace_freeze_traced kernel/ptrace.c:178 [inline]
 ptrace_check_attach+0xdc/0x230 kernel/ptrace.c:247
 __do_sys_ptrace kernel/ptrace.c:1266 [inline]
 __se_sys_ptrace+0xdb/0x2e0 kernel/ptrace.c:1236
 __x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1236
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9685 Comm: syz-executor.0 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/23 13:52 upstream b12b47249688 fcc6d71b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ptrace_check_attach / zap_other_threads
* Struck through repros no longer work on HEAD.