commit | d5f58453b2afd7d4deee2967f49c302e23241ff2 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Jul 14 16:43:12 2016 -0700 |
committer | gitbuildkicker <android-build@google.com> | Fri Jul 22 16:18:04 2016 -0700 |
tree | c337a9e60193b3ad2d4621bc1e2516e0e14d3c86 | |
parent | 178bfee15050e32aedf4fcd0cdebce4c7b7d4959 [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: I6c6efcf82a49bca140d761b2d1de04215ba4d252