diff options
author | Josh Gao <jmgao@google.com> | 2016-07-14 16:05:10 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-07-14 16:47:10 -0700 |
commit | 0528829b7378034e79820ac2d99396999bb4dd40 (patch) | |
tree | 4fbfa106af44f4602939c615b3ee9334474a548f /libutils/ProcessCallStack.cpp | |
parent | 8d2d6cedbbde147d8ac6c0af5213723ef81b4775 (diff) |
DO NOT MERGE: debuggerd: verify that traced threads belong to the right process.
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: I320f47216b21018d3f613cfbbaaff40b3548ef36
Diffstat (limited to 'libutils/ProcessCallStack.cpp')
0 files changed, 0 insertions, 0 deletions