* Re: Fix ptrace self-attach rule
@ 2005-11-10 0:41 Roland McGrath
2005-11-10 3:49 ` Linus Torvalds
0 siblings, 1 reply; 2+ messages in thread
From: Roland McGrath @ 2005-11-10 0:41 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
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>
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Fix ptrace self-attach rule
2005-11-10 0:41 Fix ptrace self-attach rule Roland McGrath
@ 2005-11-10 3:49 ` Linus Torvalds
0 siblings, 0 replies; 2+ messages in thread
From: Linus Torvalds @ 2005-11-10 3:49 UTC (permalink / raw)
To: Roland McGrath; +Cc: linux-kernel
On Wed, 9 Nov 2005, Roland McGrath wrote:
>
> 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.
Ok, thanks. Let's see who hollers.
Linus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-10 3:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-10 0:41 Fix ptrace self-attach rule Roland McGrath
2005-11-10 3:49 ` Linus Torvalds
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®