lkml.org 
[lkml]   [1998]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Out Of Memory in v. 2.1
On Sat, 03 Oct 1998, D. Schwingel wrote:

> I've been testing Rick's OOM Killer (v2 only 'cause I cannot patch v3)
> and this program works fine (well, maybe "fine" is not the right word)
> -----------------------------------
> #include <stdlib.h>
>
> main()
> {
> while(1)
> {
> if( malloc(2048) == 0)
> sleep(1);
> }
> }
> -----------------------------------
> This program shows how easy (snif :( ) is to crash a Unix/Linux system
> without any big trick or root access. I call it leak.c

Somebody slap me if I'm missing something obvious, but shouldn't this have
absolutely no effect on the system whatsoever until the allocated memory is
written to? Was the copy-on-write protection taken out of the kernel?

(COW is a band-aid patch anyway since it's so easily defeated by malicious
programs)

--
Matt

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2011 Jasper Spaans