Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sun-lamp CVS commits
- To: source-changes
- Subject: sun-lamp CVS commits
- From: The Source of All Evil <source>
- Date: Tue, 5 Dec 1995 15:10:03 -0500
thorpej
Tue Dec 5 12:01:59 PST 1995
Update of /a/cvsroot/src/sys/arch/hp300/hp300
In directory pain.lcs.mit.edu:/a/tmp/cvs-serv2151
Modified Files:
pmap.c
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.
Home |
Main Index |
Thread Index |
Old Index