From nobody@FreeBSD.org  Sat Apr 28 18:05:10 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 6548D37B42C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 28 Apr 2001 18:05:02 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f3T152r90267;
	Sat, 28 Apr 2001 18:05:02 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104290105.f3T152r90267@freefall.freebsd.org>
Date: Sat, 28 Apr 2001 18:05:02 -0700 (PDT)
From: davidx@viasoft.com.cn
To: freebsd-gnats-submit@FreeBSD.org
Subject: 4.3-stable is a broken kernel
X-Send-Pr-Version: www-1.0

>Number:         26938
>Category:       kern
>Synopsis:       4.3-stable is a broken kernel
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 28 18:10:00 PDT 2001
>Closed-Date:    Sat Apr 28 18:19:40 PDT 2001
>Last-Modified:  Sat Apr 28 19:00:01 PDT 2001
>Originator:     David Xu
>Release:        FreeBSD 4.3-STABLE
>Organization:
Viasoft
>Environment:
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


>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.

>Fix:
diff 4.2-RELEASE.vm 4.3-STABLE.vm
< no bug
> has bug


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: greid 
State-Changed-When: Sat Apr 28 18:19:40 PDT 2001 
State-Changed-Why:  
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'. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26938 

From: Bill Fumerola <billf@mu.org>
To: Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/26938: 4.3-stable is a broken kernel
Date: Sat, 28 Apr 2001 20:57:24 -0500

 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
 
 
 
>Unformatted:
