fork() DoS?

From: Little, John (JOHN.LITTLE@okdhs.org)
Date: Fri Mar 22 2002 - 10:16:00 EST


I'm really not a programmer, just learning, but was able to bring the system
to it's knees. This is a redhat 7.2 kernel. Is there anyway of preventing
this?

#include <unistd.h>

void do_fork()
{
   pid_t p;

   p = fork();
   do_fork();
}

void main()
{
   for(;;)
      do_fork();
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 23 2002 - 22:00:27 EST