From owner-freebsd-security Tue Sep 15 07:40:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA20017 for freebsd-security-outgoing; Tue, 15 Sep 1998 07:40:04 -0700 (PDT) (envelope-from owner-freebsd-security@FreeBSD.ORG) Received: from mail.intercom.com ([207.51.55.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA19952 for ; Tue, 15 Sep 1998 07:39:59 -0700 (PDT) (envelope-from jason@intercom.com) Received: from intercom.com (shagalicious.com [206.98.165.250]) by mail.intercom.com (8.9.0/8.9.0) with ESMTP id KAA11584; Tue, 15 Sep 1998 10:39:41 -0400 (EDT) Message-ID: <35FE7C66.5E73C4B6@intercom.com> Date: Tue, 15 Sep 1998 10:40:38 -0400 From: "Jason J. Horton" X-Sender: "Jason J. Horton" <@mail.intercom.com> X-Mailer: Mozilla 4.5b2 [en]C-NECCK (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: Jay Tribick CC: security@FreeBSD.ORG Subject: Re: grep ohdear /dev/zero in a tight loop freezes FreeBSD && OpenBSD References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Don't allow users on your system. -J Jay Tribick wrote: > > Background > ---------- > FreeBSD bofh.fast.net.uk 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0 > root@bofh.fast.net.uk:/usr/src/sys/compile/GENERIC i386 > > login.conf (ulimit) restrictions: > > lockd:\ > :priority=20:\ > :openfiles=32:\ > :openfiles-cur=32:\ > :memoryuse-cur=10M:\ > :maxproc-cur=32:\ > :cputime=1h:\ > :stacksize=2M:\ > :memorylocked=4M:\ > :memoryuse=10M:\ > :coredumpsize=0M:\ > :welcome=/etc/motd.lusers: > > Problem > ------- > Executing the following shell script effectively freezes a > BSD box (tested on FreeBSD 2.2.6 & latest OpenBSD) regardless of the above > process, cpu and memory restrictions within 15-30 seconds: > > #!/bin/bash > while() do > grep ohdear /dev/zero & > done > > Any ideas on how to fix this or secure against it? > Regards, > > Jay Tribick > -- > [| Network Admin | FastNet International | http://fast.net.uk/ |] > [| Finger netadmin@fastnet.co.uk for contact info & PGP PubKey |] > [| +44 (0)1273 T: 677633 F: 621631 e: netadmin@fast.net.uk |] > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-security" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message