mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 17:54:52 +00:00
Raise ncallout from NPROC + 16 to NPROC + 16 + MAXFILES. This shold
prevent a possible DOS attack. The proper fix (to dynamically grow the callout list) is in the make. Submitted by: Paul Traina
This commit is contained in:
parent
6570d2f3ad
commit
d3c0af6943
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33882
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)param.c 8.3 (Berkeley) 8/20/94
|
||||
* $Id: param.c,v 1.24 1997/02/22 09:28:15 peter Exp $
|
||||
* $Id: param.c,v 1.25 1997/06/14 11:38:46 bde Exp $
|
||||
*/
|
||||
|
||||
#include "opt_sysvipc.h"
|
||||
|
@ -72,11 +72,12 @@ int hz = HZ;
|
|||
int tick = 1000000 / HZ;
|
||||
int tickadj = 30000 / (60 * HZ); /* can adjust 30ms in 60s */
|
||||
#define NPROC (20 + 16 * MAXUSERS)
|
||||
#define MAXFILES (NPROC*2)
|
||||
int maxproc = NPROC; /* maximum # of processes */
|
||||
int maxprocperuid = NPROC-1; /* maximum # of processes per user */
|
||||
int maxfiles = NPROC*2; /* system wide open files limit */
|
||||
int maxfilesperproc = NPROC*2; /* per-process open files limit */
|
||||
int ncallout = 16 + NPROC; /* maximum # of timer events */
|
||||
int maxfiles = MAXFILES; /* system wide open files limit */
|
||||
int maxfilesperproc = MAXFILES; /* per-process open files limit */
|
||||
int ncallout = 16 + NPROC + MAXFILES; /* maximum # of timer events */
|
||||
|
||||
/* maximum # of mbuf clusters */
|
||||
#ifndef NMBCLUSTERS
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)param.c 8.3 (Berkeley) 8/20/94
|
||||
* $Id: param.c,v 1.24 1997/02/22 09:28:15 peter Exp $
|
||||
* $Id: param.c,v 1.25 1997/06/14 11:38:46 bde Exp $
|
||||
*/
|
||||
|
||||
#include "opt_sysvipc.h"
|
||||
|
@ -72,11 +72,12 @@ int hz = HZ;
|
|||
int tick = 1000000 / HZ;
|
||||
int tickadj = 30000 / (60 * HZ); /* can adjust 30ms in 60s */
|
||||
#define NPROC (20 + 16 * MAXUSERS)
|
||||
#define MAXFILES (NPROC*2)
|
||||
int maxproc = NPROC; /* maximum # of processes */
|
||||
int maxprocperuid = NPROC-1; /* maximum # of processes per user */
|
||||
int maxfiles = NPROC*2; /* system wide open files limit */
|
||||
int maxfilesperproc = NPROC*2; /* per-process open files limit */
|
||||
int ncallout = 16 + NPROC; /* maximum # of timer events */
|
||||
int maxfiles = MAXFILES; /* system wide open files limit */
|
||||
int maxfilesperproc = MAXFILES; /* per-process open files limit */
|
||||
int ncallout = 16 + NPROC + MAXFILES; /* maximum # of timer events */
|
||||
|
||||
/* maximum # of mbuf clusters */
|
||||
#ifndef NMBCLUSTERS
|
||||
|
|
Loading…
Reference in a new issue