* v850 ptrace.c bug ...
@ 2004-02-19 2:25 Herbert Poetzl
0 siblings, 0 replies; only message in thread
From: Herbert Poetzl @ 2004-02-19 2:25 UTC (permalink / raw)
To: uclinux-v850; +Cc: linux-kernel
Hi!
stumbled over the following bug:
sys_ptrace() for v850, if pid == 1, doesn't put the
struct task_struct (child), the following patch
should fix that ...
best,
Herbert
--- linux-2.6.3/arch/v850/kernel/ptrace.c.orig 2004-02-18 04:58:01.000000000 +0100
+++ linux-2.6.3/arch/v850/kernel/ptrace.c 2004-02-19 03:02:43.000000000 +0100
@@ -138,7 +138,7 @@ int sys_ptrace(long request, long pid, l
rval = -EPERM;
if (pid == 1) /* you may not mess with init */
- goto out;
+ goto out_tsk;
if (request == PTRACE_ATTACH) {
rval = ptrace_attach(child);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-19 2:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-19 2:25 v850 ptrace.c bug Herbert Poetzl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®