Subject: sun-lamp CVS commits
To: None <>
From: The Source of All Evil <source@NetBSD.ORG>
List: source-changes
Date: 12/05/1995 15:10:03
Tue Dec  5 12:01:59 PST 1995
Update of /a/cvsroot/src/sys/arch/hp300/hp300
In directory

Modified Files:
Log Message:
Fix the integer overflow problem in pmap_init() when the user PT map is
allocated, as noticed by Chuck Cranor.  In addition to re-arranging
the assignment as suggested by Niklas Hallqvist, check to see if maxproc
is higher than the number of available user PTs.  If it is, lower maxproc
to that value, the rationale being that it's much more desirable to have
fork() return EAGAIN than to have your system wedge.

XXX note that root can still raise maxproc with sysctl(2) later.  It's
probably worth having further discussion about this issue, but until
everyone has time to think about it, this seems like an acceptable solution
for the time being.