diff options
author | Josh Gao <jmgao@google.com> | 2016-07-14 16:43:12 -0700 |
---|---|---|
committer | gitbuildkicker <android-build@google.com> | 2016-08-16 15:52:46 -0700 |
commit | d2d95688f81fcce492b46b8e260bdf4f6e0b679b (patch) | |
tree | 62273ca194a87316582c85380f8da15c7bc403f8 /fs_mgr | |
parent | 3b268646f802d72f9b53800ac00540201223cf2e (diff) | |
download | system_core-d2d95688f81fcce492b46b8e260bdf4f6e0b679b.zip system_core-d2d95688f81fcce492b46b8e260bdf4f6e0b679b.tar.gz system_core-d2d95688f81fcce492b46b8e260bdf4f6e0b679b.tar.bz2 |
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
Diffstat (limited to 'fs_mgr')
0 files changed, 0 insertions, 0 deletions