Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2002 19:15:28 -0800 (PST)
From:      Mike Silbersack <silby@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_fork.c
Message-ID:  <200202190315.g1J3FSV14877@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
silby       2002/02/18 19:15:28 PST

  Modified files:
    sys/kern             kern_fork.c 
  Log:
  A few misc forkbomb defenses:
  
  - Leave 10 processes for root-only use, the previous
    value of 1 was insufficient to run ps ax | more.
  - Remove the printing of "proc: table full".  When the table
    really is full, this would flood the screen/logs, making
    the problem tougher to deal with.
  - Force any process trying to fork beyond its user's maximum
    number of processes to sleep for .5 seconds before returning
    failure.  This turns 2000 rampaging fork monsters into 2000
    harmlessly snoozing fork monsters.
  
  Reviewed by:    dillon, peter
  MFC after:      1 week
  
  Revision  Changes    Path
  1.132     +5 -2      src/sys/kern/kern_fork.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202190315.g1J3FSV14877>