HomeFreeBSD

ptrace_test PT_SC_REMOTE: fix a race

Description

ptrace_test PT_SC_REMOTE: fix a race

Only one of PT_TRACE_ME/PT_ATTACH is needed. Having them both causes
the race between parent and child on the attachment way.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D49678

Details

Provenance
kibAuthored on Wed, Apr 16, 3:02 PM
Reviewer
markj
Differential Revision
D49678: PT_ATTACH: do not interrupt interruptible sleeps
Parents
rGa6b7d5cddacd: kern_sig.c: add chicken bit for old way of SIGSTOP handling on PT_ATTACH
Branches
Unknown
Tags
Unknown