Bug 15804 - pldd may leave process in stopped state
Summary: pldd may leave process in stopped state
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: 2.20
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-30 10:11 UTC by Andreas Schwab
Modified: 2014-06-13 13:18 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schwab 2013-07-30 10:11:31 UTC
There is a race condition that causes pldd to leave the process in stopped state if the SIGSTOP signal that is implied by PTRACE_ATTACH isn't delivered after the PTRACE_DETACH.  The tracer should always wait for the tracee to enter ptrace-stop state before continuing to inspect it.
Comment 1 Andreas Schwab 2013-08-27 10:43:23 UTC
s/isn't/is/
Comment 2 Sourceware Commits 2014-02-25 08:31:26 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  b04acb2651e0aaf615de50e9138cddfd5c24021f (commit)
      from  d4ec6ae19e3290abbb3cfff70a8dd6018ecb6e2e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b04acb2651e0aaf615de50e9138cddfd5c24021f

commit b04acb2651e0aaf615de50e9138cddfd5c24021f
Author: Andreas Schwab <schwab@suse.de>
Date:   Tue Jul 30 11:58:45 2013 +0200

    Fix race conditions in pldd that may leave the process stopped after detaching
    
    Fixes bug 15804

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog  |    6 ++++++
 NEWS       |    2 +-
 elf/pldd.c |   25 +++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 1 deletions(-)
Comment 3 Andreas Schwab 2014-02-25 08:38:52 UTC
Fixed.