From: Nikita Danilov <NikitaDanilov@Yahoo.COM>
To: linux-kernel@vger.kernel.org
Subject: patch to fs/proc/base.c
Date: Fri, 20 Jul 2001 17:59:51 +0400 [thread overview]
Message-ID: <15192.14679.866099.871164@beta.namesys.com> (raw)
Hello,
following patch cures oopses in 2.4.7-pre9 when
proc_pid_make_inode() is called on task with task->mm == NULL.
Linus, please apply, if you haven't got a bunch of equivalent patches
already, which is doubtful.
Nikita.
------------------------------------------------------------
--- linux-2.4.7-pre9/fs/proc/base.c Fri Jul 20 14:57:55 2001
+++ linux-2.4.7-pre9.patched/fs/proc/base.c Fri Jul 20 17:03:23 2001
@@ -670,7 +670,7 @@ static struct inode *proc_pid_make_inode
inode->u.proc_i.task = task;
inode->i_uid = 0;
inode->i_gid = 0;
- if (ino == PROC_PID_INO || task->mm->dumpable) {
+ if (ino == PROC_PID_INO || (task->mm && task->mm->dumpable)) {
inode->i_uid = task->euid;
inode->i_gid = task->egid;
}
------------------------------------------------------------
next reply other threads:[~2001-07-20 14:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-20 13:59 Nikita Danilov [this message]
2001-07-20 14:05 ` Matti Aarnio
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=15192.14679.866099.871164@beta.namesys.com \
--to=nikitadanilov@yahoo.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®