From: Oleg Nesterov Date: Thu, 2 Apr 2009 23:58:23 +0000 (-0700) Subject: ptrace_untrace: fix the SIGNAL_STOP_STOPPED check X-Git-Tag: v2.6.30-rc1~322 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ee1184485df9c9a3503d3a684b911fb7c73d259;p=pandora-kernel.git ptrace_untrace: fix the SIGNAL_STOP_STOPPED check This bug is ancient too. ptrace_untrace() must not resume the task if the group stop in progress, we should set TASK_STOPPED instead. Unfortunately, we still have problems here: - if the process/thread was traced, SIGNAL_STOP_STOPPED does not necessary means this thread group is stopped. - ptrace breaks the bookkeeping of ->group_stop_count. Signed-off-by: Oleg Nesterov Cc: Jerome Marchand Cc: Roland McGrath Cc: Denys Vlasenko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed