Re: 1.3.27 Ooops!

Linus Torvalds (Linus.Torvalds@cs.Helsinki.FI)
Fri, 15 Sep 1995 07:33:55 +0300


Bob_Tracy: "1.3.27 Ooops!" (Sep 14, 19:40):
> This should be an easy one to find (I hope) :-). Booting and
> initialization looks fine. I take one "Ooops!" for each enabled
> virtual console when the machine goes multi-user and getty opens
> each virtual console for the first time. The problem is a
> null-pointer dereference in
>
> fs/namei.c:get_write_access()

Ok, this turned out to be simple once I started looking at it. It looks
something like this (fs/namei.c: get_write_access()):

for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) {
struct vm_area_struct * mpnt;
- if (!*p)
+ if (!*p || !(*p)->mm)
continue;

That is, just change the "if (!*p)" test into "if (!*p || !(*p)-mm)".
That should fix it..

Linus