Fix two races in debuggerd's PTRACE_ATTACH logic:
1. The target thread in a crash dump request could exit between the
/proc/<pid>/task/<tid> check and the PTRACE_ATTACH.
2. Sibling threads could exit between listing /proc/<pid>/task and the
PTRACE_ATTACH.
Backport of NYC change I4dfe1ea30e2c211d2389321bd66e3684dd757591
Bug: http://b/29555636
Change-Id: I93f6423e6de38e2bc6c75d8d33052da4cd2daa8a
|
||
|---|---|---|
| .. | ||
| arm | ||
| mips | ||
| x86 | ||
| Android.mk | ||
| backtrace.c | ||
| backtrace.h | ||
| crasher.c | ||
| debuggerd.c | ||
| getevent.c | ||
| getevent.h | ||
| machine.h | ||
| MODULE_LICENSE_APACHE2 | ||
| NOTICE | ||
| tombstone.c | ||
| tombstone.h | ||
| utility.c | ||
| utility.h | ||
| vfp-crasher.c | ||
| vfp.S | ||