Vulnerability Development mailing list archives

Re: Memory leak in Solaris 2.7 kernel?


From: "Thomas J. Arseneault" <arsen () CERTAINTYSOLUTIONS COM>
Date: Fri, 16 Mar 2001 22:21:57 -0800

I got the same results as the original poster on Solaris 2.6 (a sparc 2 with
32Mb memory, yes I know its a wimp) and the same as Jason on a Linux system
(Redhad 6.2, with 128Mb). On the Sol.2.6 system it would run until it gets
a:

# ls ../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*
no stack space
# uptime
cannot fork: no swap space

and it required a reboot to free it up. But only as root, as a normal user I
got the same as the linux system (which was the same as either root or a
reqular user).

# ls ../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*
/bin/ls: Argument list too long.
#  uptime
 10:09pm  up 9 days,  5:46,  2 users,  load average: 0.05, 0.03, 0.01

Just two more data points.

**********************************************
Tom Arseneault
System Admin.
Certainty Solutions, formerly Global Networking and Computing (GNAC).
"Certainty in an Uncertain World"
arsen () certaintysolutions com
http://web.corp.rwc.crtsol.com
**********************************************

-----Original Message-----
From: VULN-DEV List [mailto:VULN-DEV () SECURITYFOCUS COM]On Behalf Of
Jason Storm
Sent: Friday, March 16, 2001 2:39 PM
To: VULN-DEV () SECURITYFOCUS COM
Subject: Re: Memory leak in Solaris 2.7 kernel?


uhnnnn... where exactly is the memory leak in the kernel?  all i see is my
tcsh session chewing up the cpu.

further more;

sparc:~>  ls
../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*
/usr/ucb/ls: Arg list too long.
sparc:~> uname -a
SunOS sparc 5.7 Generic_106541-02 sun4m sparc SUNW,SPARCstation-LX
sparc:~>

not only is this not a kernel memory leak, its not even a dos unless you
do it as root, in which case you should certainly be able to find more
efficient and creative ways of bringing the box down.

-jason storm
 negation industries
 'you have science, i have mysterious kung-fu.'




On Fri, 16 Mar 2001, Wakko Ellington Warner-Warner III wrote:

# ls ../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*/../*

Wait a few minutes, let the disks churn (it never stops!)

Break out of it...

# vmstat
cannot fork: no swap space
# w
cannot fork: no swap space

Have fun hard-resetting your Sun box...

- A.P.

--

+----------------------------------------------------------+
| "Stupid babies need the most attention." -- The Simpsons |
+------------------------------------------------------68--+
     NIC: AP5514  | http://bitey.net | wakko () bitey net




Current thread: