From: Marc-Christian Petersen <m.c.p@wolk-project.de>
To: Ken Brownfield <brownfld@irridia.com>, linux-kernel@vger.kernel.org
Subject: Re: Oops: ptrace fix buggy
Date: Sat, 12 Apr 2003 11:54:32 +0200 [thread overview]
Message-ID: <200304121154.32997.m.c.p@wolk-project.de> (raw)
In-Reply-To: <20030412021344.A8047@asooo.flowerfire.com>
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
On Saturday 12 April 2003 09:13, Ken Brownfield wrote:
Hi Ken,
> I'm reproducing this as well when using gdb. Two oopses attached.
> This is with the ptrace patch applied to 2.4.20 (SMP/i386/P3).
Does the attached patch fixes the issue?
ciao, Marc
[-- Attachment #2: ptrace-oops-fix.patch --]
[-- Type: text/x-diff, Size: 618 bytes --]
diff -Naurp linux-2.4.20/include/linux/sched.h linux-2.4.20-ptrace/include/linux/sched.h
--- linux-2.4.20/include/linux/sched.h 2003-03-20 14:35:49.000000000 +0100
+++ linux-2.4.20-ptrace/include/linux/sched.h 2003-04-07 18:20:45.000000000 +0200
@@ -478,7 +479,7 @@ struct task_struct {
#define PT_TRACESYSGOOD 0x00000008
#define PT_PTRACE_CAP 0x00000010 /* ptracer can follow suid-exec */
-#define is_dumpable(tsk) ((tsk)->task_dumpable && (tsk)->mm->dumpable)
+#define is_dumpable(tsk) ((tsk)->task_dumpable && (tsk)->mm && (tsk)->mm->dumpable)
/*
* Limit the stack by to some sane default: root can always
next prev parent reply other threads:[~2003-04-12 9:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-07 12:22 Michael Lampe
2003-04-12 7:13 ` Ken Brownfield
2003-04-12 9:54 ` Marc-Christian Petersen [this message]
2003-04-14 13:34 ` James Bourne
2003-04-14 13:46 ` Jörn Engel
2003-04-14 13:56 ` James Bourne
2003-04-14 14:22 ` Jörn Engel
2003-04-14 14:31 ` Martin Schlemmer
2003-04-14 14:47 ` Jörn Engel
2003-04-14 17:09 ` James Bourne
2003-04-14 17:21 ` Jörn Engel
2003-04-14 18:16 ` James Bourne
2003-04-14 17:50 ` Russell King
2003-04-14 18:10 ` Martin Schlemmer
2003-04-14 18:58 ` Jörn Engel
2003-04-14 19:20 ` Valdis.Kletnieks
2003-04-14 21:19 ` James Bourne
2003-04-14 21:41 ` Jörn Engel
2003-04-15 6:10 ` Martin Schlemmer
2003-04-15 6:00 ` Martin Schlemmer
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=200304121154.32997.m.c.p@wolk-project.de \
--to=m.c.p@wolk-project.de \
--cc=brownfld@irridia.com \
--cc=linux-kernel@vger.kernel.org \
/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®