mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <andrewm@uow.edu.au>
To: Niels Kristian Bech Jensen <nkbj@image.dk>
Cc: "Linux kernel developer's mailing list" 
	<linux-kernel@vger.kernel.org>,
	Linus Torvalds <torvalds@transmeta.com>
Subject: Re: Oops in 2.4.7-pre9.
Date: Fri, 20 Jul 2001 16:52:49 +1000	[thread overview]
Message-ID: <3B57D541.10312D18@uow.edu.au> (raw)
In-Reply-To: <Pine.LNX.4.33.0107200815230.858-100000@hafnium.nkbj.dk>

Niels Kristian Bech Jensen wrote:
> 
> I get this oops while booting 2.4.7-pre9:

Kernel is trying to read /proc/pid entries for a kernel thread
which has called daemonize().  It has a null task_struct.mm.

I tested various other possible problems, such as making
/sbin/hotplug an elf executable and it looks OK, apart from
the /proc problem.

--- linux-2.4.7-pre9/fs/proc/base.c	Fri Jul 20 15:39:12 2001
+++ linux-akpm/fs/proc/base.c	Fri Jul 20 16:43:02 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;
 	}

  parent reply	other threads:[~2001-07-20  6:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-20  6:16 Niels Kristian Bech Jensen
2001-07-20  6:26 ` David S. Miller
2001-07-20  7:27   ` Niels Kristian Bech Jensen
2001-07-20  6:52 ` Andrew Morton [this message]
2001-07-20  8:10   ` Linus Torvalds

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=3B57D541.10312D18@uow.edu.au \
    --to=andrewm@uow.edu.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nkbj@image.dk \
    --cc=torvalds@transmeta.com \
    /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®