From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 11 16:50:45 2008 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 257651065672 for ; Thu, 11 Dec 2008 16:50:45 +0000 (UTC) (envelope-from javanunes@gmail.com) Received: from mail-gx0-f12.google.com (mail-gx0-f12.google.com [209.85.217.12]) by mx1.freebsd.org (Postfix) with ESMTP id C6DB28FC27 for ; Thu, 11 Dec 2008 16:50:44 +0000 (UTC) (envelope-from javanunes@gmail.com) Received: by gxk5 with SMTP id 5so503244gxk.19 for ; Thu, 11 Dec 2008 08:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:mime-version:content-type; bh=XRKnrVhtpGVbkh+mHgq9CRnjs2J5lDC6DhJuJcnQ8Zg=; b=ZyXJiHDwahIkOqBOVp1u+s4t1rgvq4/LUzEebbAiiefQsJGErdhGnX439X5gWIGjgY k13wVK7ILcMSgx3p+pw1aALNCBS6H+Wb0oH3fOLnik9uRK/7TDzOIaP0nz4cMpdkwxYs 1ki2pq6RKIJht9u5Uz6+GO0PV/YCYjRu6F99M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:mime-version:content-type; b=fCdv85VHJ6WQMucUIuag0sUsj+6y4IYkw7tKX5e9MWZ/LAVWmKeskSNzSfb+mWXzYn p8Ig47FuATfu/BtcbXEY2jkQC5XSiMgygWdJK5FN1zfRQYnYzubv8MH2fnscriOxN6ey iTPb5ypkvMo8gu9sM/2rFXxbNDUC/k4XZK2uk= Received: by 10.143.13.17 with SMTP id q17mr412888wfi.222.1229013947566; Thu, 11 Dec 2008 08:45:47 -0800 (PST) Received: by 10.142.173.20 with HTTP; Thu, 11 Dec 2008 08:45:47 -0800 (PST) Message-ID: <425f5fc40812110845j71fdbd2fv43a518c39844fd75@mail.gmail.com> Date: Thu, 11 Dec 2008 14:45:47 -0200 From: "Java Nunes" To: freebsd-bugs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: fork bomb no respects limits in freebsd 7.0, freebsd is buged ? X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: javanunes@eminem.com List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2008 16:50:45 -0000 Hi, #>cat /boot/loader.conf kern.maxfiles="3000" kern.maxproc="666" <<<<<<<<<--------- root@bbb9 #>limits Resource limits (current): cputime infinity secs filesize 5242880 kB datasize 5242880 kB stacksize 524288 kB coredumpsize 1022976 kB memoryuse 1024000 kB memorylocked 683008 kB maxprocesses 599 <<<<<<<<<<- openfiles 677 sbsize infinity bytes vmemoryuse 693248 kB in /etc/login.conf :nologin=/var/run/nologin:\ :cputime=unlimited:\ :datasize=5G:\ :stacksize=667M:\ :memorylocked=667M:\ :memoryuse=1000M:\ :filesize=5G:\ :coredumpsize=999M:\ :openfiles=677:\ :maxproc=666:\ <<<<<<<<<<- :sbsize=unlimited:\ :vmemoryuse=677M:\ :priority=0:\ :idletime=2m\ :ignoretime@:\ :umask=022: su - bozo vi bomb.c #include int main(int argc, char* argv[]) { while(1) fork(); return 0; } ~ gcc bomb.c -o bomb ~./bomb and my freebsd box shutdown with this error: maxproc limit exceeded by uid 1001, please see tuning(7) and login.conf(5). maxproc limit exceeded by uid 1001, please see tuning(7) and login.conf(5). maxproc limit exceeded by uid 1001, please see tuning(7) and login.conf(5). maxproc limit exceeded by uid 1001, please see tuning(7) and login.conf(5). panic: get_pv_entry : increase vm.pmap.shgperproc cpuid =0 uptime 19m physical memory: 1024MB Dumping 923 blah blah blha! Automatic reboot in 15 secounds = press blah blha blha lol! fBSD gives memory in spite of all limits. Is there any limit, which can stop adding memory for that forks ? limit it does not function in bsd? :0