Easy DoS

From: Csaba Henk <csaba-ml_at_creo.hu>
Date: Fri, 16 Dec 2005 14:34:48 +0100
Do

echo 'main() { write(1, 0, 1); }' > edos.c
gcc -o edos edos.c
./edos | cat

... and now the edos process gets stuck in the write syscall, unkillably,
keeping the CPU spinning. (Seen on my 6.0-RELEASE and 7.0-CURRENT boxen.)

Is it a bug or a feature?

Csaba
Received on Fri Dec 16 2005 - 12:37:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:49 UTC