[2442] in linux-security and linux-alert archive
Re: Problem with red hat 6.1
daemon@ATHENA.MIT.EDU (Michael Wood)
Fri Dec 1 10:02:49 2000
Date: Thu, 30 Nov 2000 17:51:44 +0200
From: Michael Wood <wood@kingsley.co.za>
To: nayakvinod <nayakvinod@hotmail.com>
Cc: linux-alert@redhat.com
Message-ID: <20001130175144.B30791@lion.kingsley.co.za>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OE48jQHtMFaukyCKDkb00003ad1@hotmail.com>; from nayakvinod@hotmail.com on Wed, Nov 29, 2000 at 11:27:00AM +0530
Errors-To: linux-alert-admin@redhat.com
Hi
On Wed, Nov 29, 2000 at 11:27:00AM +0530, nayakvinod wrote:
> I found a problem, nay a very serious bug in red hat
> 6.1(kernel 2.2.12).
>
> I login as an ordinary user and did as follows( in fact I
> wrote a faulty shell program and put it in a directory in
> PATH):
>
> $ mkdir bin
> $ cat >bin/hello
> hello
> ^D
> $ chmod 0755 bin/hello
> $ hello
>
> This system crashed after giving messages like:
>
> syslog: Out of memory
> ....
> ......
> .....
>
> init: out of memory
>
>
> First I suspected that the problem is in kernel2.2.12. But
> when I booted RED hat 6.2 with this kernel and run the same
> culprit shell prog, the process terminated with the messge:
> bash: Out of memory!
> which it should do.
This is just a resource limit problem, not a bug as such. If
you set the resource limits properly, you won't kill the
machine.
Btw, if you want to kill a machine without resource limits
sooner, do this:
$ export PATH=.:$PATH
$ echo 'a&a'>a
$ chmod 750 a
$ a
--
Michael Wood | Tel: +27 21 762 0276 | http://www.kingsley.co.za/
wood@kingsley.co.za | Fax: +27 21 761 9930 | Kingsley Technologies
_______________________________________________
Linux-alert mailing list
Linux-alert@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-alert