mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* patch to fs/proc/base.c
@ 2001-07-20 13:59 Nikita Danilov
  2001-07-20 14:05 ` Matti Aarnio
  0 siblings, 1 reply; 2+ messages in thread
From: Nikita Danilov @ 2001-07-20 13:59 UTC (permalink / raw)
  To: linux-kernel

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;
        }
------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-20 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-20 13:59 patch to fs/proc/base.c Nikita Danilov
2001-07-20 14:05 ` Matti Aarnio

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®