Re: Oops in 2.4.7-pre9.

Andrew Morton (andrewm@uow.edu.au)
Fri, 20 Jul 2001 16:52:49 +1000


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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/