Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.cz>2013-02-19 11:58:02 +0100
committerJiri Kosina <jkosina@suse.cz>2013-02-19 12:07:00 +0100
commitba50e5f21147ae35fc3bc1ba2c90672dac7b6e54 (patch)
treec969aa3a15b724a4ca173ccab35884878ab9a936
parent6fed7d40f1b9420f05d78f1fe52bf53ba89a8fb1 (diff)
- patches.fixes/ptrace-ensure-arch_ptrace-ptrace_request-can-never-r.patch:rpm-3.0.58-0.6.6
-rw-r--r--kernel/ptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 5539ca751c4c..9d1ed06e0efc 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -149,12 +149,12 @@ int ptrace_check_attach(struct task_struct *child, int kill)
* child->sighand can't be NULL, release_task()
* does ptrace_unlink() before __exit_signal().
*/
- if (ignore_state || ptrace_freeze_traced(child))
+ if (kill || ptrace_freeze_traced(child))
ret = 0;
}
read_unlock(&tasklist_lock);
- if (!ret && !ignore_state) {
+ if (!ret && !kill) {
if (!wait_task_inactive(child, __TASK_TRACED)) {
/*
* This can only happen if may_ptrace_stop() fails and