commit | 92c8c80bf8ca29a85edd0580a236ea4e55385d52 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Jun 30 14:20:18 2016 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed Jul 13 16:49:02 2016 -0700 |
tree | bfca8adb748c7396243bc1914c06758d23082c5f | |
parent | c0f8d71457454c9d1c61678ae2ecc6802f723fd4 [diff] |
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. Bug: http://b/29555636 Change-Id: I4dfe1ea30e2c211d2389321bd66e3684dd757591