Date: Tue, 10 Jul 2001 23:03:29 -0500 From: Alfred Perlstein <bright@sneakerz.org> To: "Robert E. Lee" <rel@gulbransen.com> Cc: Dag-Erling Smorgrav <des@ofug.org>, Ted Mittelstaedt <tedm@toybox.placo.com>, js43064n@pace.edu, freebsd-security@FreeBSD.ORG Subject: Re: Kernel Panic Message-ID: <20010710230329.A1894@sneakerz.org> In-Reply-To: <Pine.BSF.4.33.0107102047420.261-100000@rlee.leefam.org>; from rel@gulbransen.com on Tue, Jul 10, 2001 at 08:54:19PM -0700 References: <xzp4rt57sjq.fsf@flood.ping.uio.no> <Pine.BSF.4.33.0107102047420.261-100000@rlee.leefam.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Robert E. Lee <rel@gulbransen.com> [010710 22:54] wrote: > On 24 Jun 2001, Dag-Erling Smorgrav wrote: > > "Ted Mittelstaedt" <tedm@toybox.placo.com> writes: > > A disk error would not crash the system. Please stop spouting > > unfounded (though highly imaginative) bullshit. > > Not to get into a pissing contest, but I have had disk errors in the past > that made my system crash. > > On the original thread, when you have a local account on a box, you can > usually use this script as an effective DoS: > > $ more foo.sh > #!/bin/sh > > while [ 1 -eq 1 ]; do > find / -name foo & > done > > The default settings for most Unix OS's allow that type of script to > consume enough resources to make the system unusable. It'd be almost trivial to limit the amount of outstanding IO on a per uid basis. Have time for a patch? :) Hint: store the amount of IO in the uidinfo struct, if you go out of bounds, sleep on the outstanding buf counter address for a short time (*), if the user completes IO, then issue a wakeup. (*) the reason you can not sleep inifinitely is because you may cause a deadlock situation against yourself when writing out dirty buffers, or maybe not.. ? Anyhow, that should allow for throttling. -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010710230329.A1894>