From mika@castor.cs.caltech.edu  Wed Oct  1 19:52:36 1997
Received: from vlsi.cs.caltech.edu (vlsi.cs.caltech.edu [131.215.131.129])
          by hub.freebsd.org (8.8.7/8.8.7) with SMTP id TAA26233
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Oct 1997 19:52:36 -0700 (PDT)
Received: from castor.cs.caltech.edu by vlsi.cs.caltech.edu (4.1/1.34.1)
	id AA21200; Wed, 1 Oct 97 19:52:34 PDT
Received: (from mika@localhost)
	by castor.cs.caltech.edu (8.8.5/8.8.5) id TAA20013;
	Wed, 1 Oct 1997 19:52:30 -0700 (PDT)
Message-Id: <199710020252.TAA20013@castor.cs.caltech.edu>
Date: Wed, 1 Oct 1997 19:52:30 -0700 (PDT)
From: mika@cs.caltech.edu
Reply-To: mika@castor.cs.caltech.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject:
X-Send-Pr-Version: 3.2

>Number:         4675
>Category:       kern
>Synopsis:       raising kern.maxproc --> kernel panics
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct  1 20:00:01 PDT 1997
>Closed-Date:    Sun Oct 19 11:46:09 PDT 1997
>Last-Modified:  Sun Oct 19 11:47:12 PDT 1997
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: David Greenman <dg@root.com>
To: mika@castor.cs.caltech.edu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: pending/4675: 
Date: Wed, 01 Oct 1997 20:07:04 -0700

 >Description: 
 >
 >raising kern.maxproc is unsafe.  The system panics when the number of
 >processes exceeds some value.
 >
 >How-To-Repeat: 
 >
 >raise kern.maxproc to 10000, raise maxprocperuid to 9999, unlimit maxproc
 >and fork a lot of processes.
 
    It's always been unsafe. The bug is that sysctl lets you change it at
 all.
 
 -DG
 
 David Greenman
 Core-team/Principal Architect, The FreeBSD Project
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: joerg 
Responsible-Changed-When: Sun Oct 19 20:25:08 MEST 1997 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: davidg 
State-Changed-When: Sun Oct 19 11:46:09 PDT 1997 
State-Changed-Why:  

fixed in rev 1.12: kern.maxproc is not changable since certain tables 
are statically sized at startup. 
>Unformatted:
Submitter-Id:   current-users
Originator:     Mika Nystroem
Organization:   Dept. of Comp. Sci., Caltech
Confidential:   no 
Synopsis:       raising kern.maxproc --> kernel panics
Severity:       critical 
Priority:      high 
Category:      kern 
Release:       FreeBSD 3.0-CURRENT
Class:          sw-bug 
Environment: 

freebsd/SMP system

Description: 

raising kern.maxproc is unsafe.  The system panics when the number of
processes exceeds some value.

How-To-Repeat: 

raise kern.maxproc to 10000, raise maxprocperuid to 9999, unlimit maxproc
and fork a lot of processes.

Fix: 
	
   fix the way fork() is implemented in the kernel.  I don't know the details.

