*BSD News Article 99020


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.edu.au!not-for-mail
From: robert@zen.humbug.org.au (Robert Brockway)
Newsgroups: comp.unix.pc-clone.32bit,comp.unix.bsd.freebsd.misc,comp.unix.bsd.386bsd.misc,comp.os.ms-windows.nt.advocacy,comp.os.linux.x,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Linux needs more work to be done!
Date: Fri, 4 Jul 1997 23:42:49 +1000
Organization: University of Queensland
Lines: 31
Message-ID: <pkuip5.tq.ln@zen>
References: <5oqbad$1582@ds2.acs.ucalgary.ca> <xdoradosk1v.fsf@bagel.rs.itd.umich.edu> <xdo4taj2akk.fsf@pita.ccs.itd.umich.edu> <5peb7i$aqv$1@netty.york.ac.uk>
NNTP-Posting-Host: unrbrock.slip.cc.uq.edu.au
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
Xref: euryale.cc.adfa.oz.au comp.unix.pc-clone.32bit:9713 comp.unix.bsd.freebsd.misc:43951 comp.unix.bsd.386bsd.misc:1298 comp.os.ms-windows.nt.advocacy:65110 comp.os.linux.x:65770 comp.os.linux.setup:119780 comp.os.linux.advocacy:104401

Paul Halliday (pih100@york.ac.uk) wrote:
: Timothy Watson (tmwatson@pita.ccs.itd.umich.edu) wrote:

: Is this the same effect as running several callocs in an infinite loop?
: e.g. For simplicity;
: 
: main()
: {
: 	for(;;)
: 		calloc(10000, 8);
: }
: 
: Unfortunately this hole allows anyone to break a Linux box at will which
: doesn't bode well for it if run as, say, a central unix server. Personally
: I broke it with a single large calloc when doing a physics project some
: months ago and now worry as much about breaking Linux by doing anything
: useful as I do about running any of the MS rubbish.
: Considering it's always been around, it's surprising it's never been fixed. :-{


Checkout limit or ulimit (depending on your shell).  Look particluarly at
memory limits.  This is an old trick.  Any half decent setup unix won't
notice it once forking stops when the process limit is hit :-)
Ergo, process limits are good too.
Cheers,
	-Robert

--Robert Brockway. Email: robert@zen.humbug.org.au, president@humbug.org.au
                          unrbrock@dingo.uq.edu.au
                   WWW:   http://www.humbug.org.au/~robert
In Cyberspace no one can here you scream, unless they have a sound card.