From: Herbert Poetzl <herbert@13thfloor.at>
To: uclinux-v850@lsi.nec.co.jp
Cc: linux-kernel@vger.kernel.org
Subject: v850 ptrace.c bug ...
Date: Thu, 19 Feb 2004 03:25:46 +0100 [thread overview]
Message-ID: <20040219022546.GA16742@MAIL.13thfloor.at> (raw)
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);
reply other threads:[~2004-02-19 2:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040219022546.GA16742@MAIL.13thfloor.at \
--to=herbert@13thfloor.at \
--cc=linux-kernel@vger.kernel.org \
--cc=uclinux-v850@lsi.nec.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®