Re: __alloc_pages: 0-order allocation failed

Arjan van de Ven (arjanv@redhat.com)
Mon, 24 Sep 2001 14:05:05 +0100


Christian Bornträger wrote:
>
> > I just installed 2.4.10, and...
> > __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) from c0126c2e
>
> I saw the same message when running this c++ programm.
>
> int main (int argc, char * argv[]) {
> char * test;
> while (1)
> test=new char[1024];
> }
>
> My dmesg:
>
> __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) from c01219e7
> VM: killing process a.out

While this program is obviously "bad", it does show that something
is not right. It should print "OOM: killing process a.out" as the
kernel will have to deliberatly kill this "out of hand" program.
the "VM: killing" message means it could just as easily have killed
another program due to this DoS program...
-
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/