Skip site navigation (1)Skip section navigation (2)
Date:      Ος, 10 VII 1999 11:20:15 +0200 (EEDT)
From:      core-ix@hushmail.com
To:        freebsd-arch@FreeBSD.ORG
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Some proposals to FreeBSD kernel
Message-ID:  <200007100823.BAA07998@mail3.hushmail.com>

next in thread | raw e-mail | index | archive | help
--1099677344.963217395254.JavaMail.root@mail3.hushmail.com
Content-Type: text/plain

Hello 

I'm 18-year-old newbie UNIX programmer that currently use 
FreeBSD and is really thankfull of it.I run it on DUAL PII/333.

Some days ago my friend tell me that with simple user rights
and whit only 1 line of code he could crash my machine. I laught
but he did it :(.

What he wrote was ' int main(void) {while(1) fork(); }'  compiled it
and run it. Within a second /kernel said "proc: table is full" and 
died. I tried this on some other BSD unixes and the result was 
same. (BTW Minix 2.0 seem unaffected and probably other SVR4
variants, because you can limit the number of  system processes
and system still have resources to work fine(although slow))

With sysctl() I found that my system can work with up to 532 procs
simulanteously, but didnt found where this value is set in the src/
or probably where it is computed.

So I sit down and wrote a static library that introduse a new fork()
(nfork()) and _exit() (nexit()) whose only purpose is to lower the 
effect ot fast fork()s by sleeping accordingly to the number of times
fork() was called.I tend to make some more things with that piece 
of code (in the attachment) and probably to add it to the kenel src
but for now it is easier to use it as a library.

Any suggestions about tarball included are welcome.
Looking forward to hearing from you.
				Thanks for reading my letter    Ix
P.S. Please excuse my amateur code (I'm only 18-year-old :) )
And the file attached is named sys2-src.tar.gz but my mail have
some problems with that names so it may apear as sys2-src.tar.gz.gz


IMPORTANT NOTICE:  If you are not using HushMail, this message could have been read easily by the many people who have access to your open personal email messages.
Get your FREE, totally secure email address at http://www.hushmail.com.



--1099677344.963217395254.JavaMail.root@mail3.hushmail.com
Content-Type: application/octet-stream; name=sys2-src.tar.gz.gz
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=sys2-src.tar.gz.gz

H4sICBN8aTkCA3N5czItc3JjLnRhcgDtl1FP2zAQx/M6f4qTxkMCC42bJpHomDbKYJ06mMrDHlGW
utQidao4paBp331nNykBaZomjYKm+0lVL/+zfU7d/6XVd7rr6zLrOE8H9IIkisAB4EnE2+8NAUDC
wy5POA8STAcJDxyInC2w1FVaAjjypvjDOFFq579DN+f/Jb0WU5mLJ6jBgyDu9X5//lEc1ucf8yTu
YrrbCxMHAjr/J2cwgEPIMjY4GX04vcDY/5bmOTA2Gh5dXoxN1n5FxO1+ZrXzo88trbDap+NxS5tZ
7WQ4+ohiLr83emp0WyKfgz/ax/c6xYZnA5sY7jP2dXx+2lRepCvl67xYYXGjP9AYw50eAHv1fscd
DDzYcc0yHvgZhvX2Pczi8ZaNZHbl1THeiUmXqcJNtvOtFZvN4KpFfXlfyE658BjLcpGqA7MW3ti0
tfyjqnY6e5n+35zy9v0fcr7p/0HSs/7vcfL/NngtVZYvJwLebuz7jrG8UFcgVQUZvg4h6DNmrtS0
KK9dj/1gAJ1dwE+ukhnYwc1A2O1gcqlzIRauu1RaXikxMWt5i2LlutO8SCsvfgN1hPM8r49TMNjb
M0EpqmWpYF2qz37WpcWtrOrSONT3zdBLKwZ2lEP8E//PnsH/YdQ8/6MgTKz/o5j8v3X/d6q7hdCm
A9zLSyV1NXmoGVOn+SOtmsjioTRPq5ltJ9grzsSqtjTI+SIXc6FM9yis0SG9KeREYhvBTVRiDlmZ
6pnQppm0+k6/WWjte89OrWaiyW+Gr9N96gl/4//Wb60t+x+Sxv9RnHCMMQwj8v/zPf+Ni+apVK7x
5fqhu5rhn0OXe/dmpGcuQRAEQRAEQRAEQRAEQRAEQbxQfgHAdDOaACgAAA==
--1099677344.963217395254.JavaMail.root@mail3.hushmail.com--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007100823.BAA07998>