diff options
author | Josh Gao <jmgao@google.com> | 2016-07-14 13:57:42 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-07-14 16:19:49 -0700 |
commit | 8d6ca194ee77c3e084afe24a5f566fa1cbd6b89c (patch) | |
tree | 319a7d7b4b119273772269515819ec638bf007b5 /libutils/Unicode.cpp | |
parent | 008efb756fea8a9e66a1825b546e9dc392c72bec (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: I93f6423e6de38e2bc6c75d8d33052da4cd2daa8a
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions