Commit d7790f20 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] v850 ptrace.c task_struct leak

From: Herbert Poetzl <herbert@13thfloor.at>

sys_ptrace() for v850, if pid == 1, doesn't put the struct task_struct
(child), the following patch should fix that ...
parent d7f0439b
......@@ -141,7 +141,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
rval = -EPERM;
if (pid == 1) /* you may not mess with init */
goto out;
goto out_tsk;
if (request == PTRACE_ATTACH) {
rval = ptrace_attach(child);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment