Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2000 09:44:36 +0200
From:      Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>
To:        freebsd-hackers@freebsd.org
Subject:   efficiency of maxproc hardlimit
Message-ID:  <20000410094436.A778@frolic.no-support.loc>

next in thread | raw e-mail | index | archive | help
Hello,

up till now I was convinced that a proper /etc/login.conf
provides enough protection against silly dos efforts like
fork bombs.

Well, while a hard maxproc of 64 protects very well against

  echo '#!/bin/sh
  a &
  a &' > a; chmod 755 a; ./a

but it fails to prevent that this

  main(){fork();main();}

leaves the machine in an unusable state (it does ping
back, one may break into the kernel debugger, but no
io).

Any way to prevent this (without harming the user)?

  Bj=F6rn

PS: Please no dispute about overcommittment or
    my-fork-bomb-is-better-than-yours.

--=20
-----BEGIN GEEK CODE BLOCK-----
GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+
K- !w !O !M !V  PS++  PE-  PGP++  t+++  !5 X++ tv- b+++ D++ G e+ h-- y+=20
------END GEEK CODE BLOCK------


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




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