Bug 26938

Summary: 4.3-stable is a broken kernel
Product: Base System Reporter: davidx <davidx>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description davidx 2001-04-29 02:10:00 UTC
a fork bomb can reboot machine, kernel prints:
vm_map_entry_creat: kernel_resources exhausted

I have never seen this problem in 4.2-release

Fix: 

diff 4.2-RELEASE.vm 4.3-STABLE.vm
< no bug
> has bug
How-To-Repeat: a small example program: 

#include<unistd.h>
int main()
{
    while(1)
    {
       if (fork() == 0)
           break;
    }
    return 0;
}

try to compile and run it, kernel crashed.
Comment 1 greid freebsd_committer freebsd_triage 2001-04-29 02:19:40 UTC
State Changed
From-To: open->closed

You can also probably cause a FreeBSD machine to crash by striking 
it repeatedly with a heavy object. 

I suggest you learn about limiting the resources allowed per-user; see 
'ulimit'.
Comment 2 billf 2001-04-29 02:57:24 UTC
On Sat, Apr 28, 2001 at 06:05:02PM -0700, davidx@viasoft.com.cn wrote:

> FreeBSD davidbsd.viasoft.com.cn 4.3-STABLE FreeBSD 4.3-STABLE #0: Thu Apr 26 11:22
> :51 CST 2001     root@davidbsd.viasoft.com.cn:/usr/obj/usr/src/sys/xu  i386
> >Description:
> a fork bomb can reboot machine, kernel prints:
> vm_map_entry_creat: kernel_resources exhausted
> 
> I have never seen this problem in 4.2-release

... and the Oscar(r) for "Troll of the Year" goes to... David Xu!

-- 
Bill Fumerola - security yahoo         / Yahoo! inc.
              - fumerola@yahoo-inc.com / billf@FreeBSD.org