Searched hist:f2f0b00ad61d53adfecb8bdf8f3cf8f05f6ed548 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/ |
H A D | ptrace.c | diff f2f0b00ad61d53adfecb8bdf8f3cf8f05f6ed548 Wed Jun 17 18:27:32 CDT 2009 Oleg Nesterov <oleg@redhat.com> ptrace: cleanup check/set of PT_PTRACED during attach
ptrace_attach() and ptrace_traceme() are the last functions which look as if the untraced task can have task->ptrace != 0, this must not be possible. Change the code to just check ->ptrace != 0 and s/|=/=/ to set PT_PTRACED.
Also, a couple of trivial whitespace cleanups in ptrace_attach().
And move ptrace_traceme() up near ptrace_attach() to keep them close to each other.
Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: Chris Wright <chrisw@sous-sol.org> Acked-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|