[2434] in linux-security and linux-alert archive

home help back first fref pref prev next nref lref last post

Re: Problem with red hat 6.1

daemon@ATHENA.MIT.EDU (Greg Elsbernd)
Fri Dec 1 08:39:49 2000

Message-ID: <005d01c05b14$ff24a8c0$0201a8c0@CYGNUS>
From: "Greg Elsbernd" <gelsbern@fuse.net>
To: "nayakvinod" <nayakvinod@hotmail.com>, <linux-alert@redhat.com>
Date: Thu, 30 Nov 2000 16:32:08 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_005A_01C05AEB.1567C330"
Errors-To: linux-alert-admin@redhat.com

This is a multi-part message in MIME format.

------=_NextPart_000_005A_01C05AEB.1567C330
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The problem was that you caused an endless loop.

when hello ran, it ran itself over and over and over til eventually you =
were out of memory.  This is not a bug in the kernel, but a bug in the =
shell script.  If you had wanted /bin/hello to say hello then you should =
have had=20

$ mkdir bin
$ cat >bin/hello
echo hello
^D
$ chmod 0755 bin/hello
$ hello

Without the echo statement /bin/hello just kept running itself over and =
over.

:)
  ----- Original Message -----=20
  From: nayakvinod=20
  To: linux-alert@redhat.com=20
  Sent: Wednesday, November 29, 2000 12:57 AM
  Subject: Problem with red hat 6.1


  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.
                                                                      =
Vinod Nayak

------=_NextPart_000_005A_01C05AEB.1567C330
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>The problem was that you caused an endless =
loop.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>when hello ran, it ran itself over and over and over =
til=20
eventually you were out of memory.&nbsp; This is not a bug in the =
kernel, but a=20
bug in the shell script.&nbsp; If you had wanted /bin/hello to say hello =
then=20
you should have had </FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT size=3D2>$ mkdir bin</FONT></DIV>
<DIV><FONT size=3D2>$ cat &gt;bin/hello</FONT></DIV>
<DIV><FONT size=3D2>echo&nbsp;hello</FONT></DIV>
<DIV><FONT size=3D2>^D</FONT></DIV>
<DIV><FONT size=3D2>$ chmod 0755 bin/hello</FONT></DIV>
<DIV><FONT size=3D2>$ hello</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Without the echo statement /bin/hello just kept =
running itself=20
over and over.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>:)</FONT></DIV></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dnayakvinod@hotmail.com=20
  href=3D"mailto:nayakvinod@hotmail.com">nayakvinod</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dlinux-alert@redhat.com=20
  href=3D"mailto:linux-alert@redhat.com">linux-alert@redhat.com</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, November 29, =
2000 12:57=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Problem with red hat =
6.1</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=3D2>I found a problem, nay a very serious bug in red =
hat=20
  6.1(kernel 2.2.12).</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=3D2>I login as an ordinary user and did as follows( in =
fact I=20
  wrote a faulty shell program and put it in a directory in =
PATH):</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=3D2>$ mkdir bin</FONT></DIV>
  <DIV><FONT size=3D2>$ cat &gt;bin/hello</FONT></DIV>
  <DIV><FONT size=3D2>&nbsp;hello</FONT></DIV>
  <DIV><FONT size=3D2>^D</FONT></DIV>
  <DIV><FONT size=3D2>$ chmod 0755 bin/hello</FONT></DIV>
  <DIV><FONT size=3D2>$ hello</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=3D2>This system crashed after giving messages =
like:</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>&nbsp;syslog: Out of memory</FONT></DIV>
  <DIV><FONT size=3D2>....</FONT></DIV>
  <DIV><FONT size=3D2>......</FONT></DIV>
  <DIV><FONT size=3D2>.....</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=3D2>init : out of memory</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=3D2>First I suspected that the problem is in =
kernel2.2.12. But=20
  when I&nbsp; booted RED hat 6.2 with this kernel&nbsp; and run the =
same=20
  culprit shell prog, the process terminated with the =
messge:</FONT></DIV>
  <DIV><FONT size=3D2>bash: Out of memory!</FONT></DIV>
  <DIV><FONT size=3D2>&nbsp;which it should do.</FONT></DIV>
  <DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Vinod=20
Nayak</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_005A_01C05AEB.1567C330--



_______________________________________________
Linux-alert mailing list
Linux-alert@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-alert

home help back first fref pref prev next nref lref last post