lkml.org 
[lkml]   [2005]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Fix ptrace self-attach rule
Date
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>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-10 01:43    [W:0.075 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site