From: Roland McGrath <roland@redhat.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Fix ptrace self-attach rule
Date: Wed, 9 Nov 2005 16:41:00 -0800 (PST) [thread overview]
Message-ID: <20051110004100.BDE06180A3A@magilla.sf.frob.com> (raw)
I think this does affect some real programs out there. I'm not advocating
using ptrace on other threads in your thread group, but people have been
doing it. We know because that's how some of the pathological cases have
come up that we've had to do fixes for. Ruling it out may make these
people unhappy, though I hope that we will have better ways for them to do
whatever it is they really need. Just FYI.
Thanks,
Roland
diff-tree 28d838cc4dfea980cb6eda0a7409cbf91889ca74 (from ac111bfaa6b0b3c0edc63c27bd9617d6b08851ff)
Author: Linus Torvalds <torvalds@g5.osdl.org>
Date: Wed Nov 9 11:33:07 2005 -0800
Fix ptrace self-attach rule
Before we did CLONE_THREAD, the way to check whether we were attaching
to ourselves was to just check "current == task", but with CLONE_THREAD
we should check that the thread group ID matches instead.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
next reply other threads:[~2005-11-10 0:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 0:41 Roland McGrath [this message]
2005-11-10 3:49 ` Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051110004100.BDE06180A3A@magilla.sf.frob.com \
--to=roland@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®