Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 22 Mar 2002 10:20:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 22 Mar 2002 10:19:59 -0500 Received: from s99eagle01.okdhs.org ([204.87.68.21]:29205 "HELO dhshost.okdhs.org") by vger.kernel.org with SMTP id ; Fri, 22 Mar 2002 10:19:41 -0500 Message-ID: From: "Little, John" To: "'linux-kernel@vger.kernel.org'" Subject: fork() DoS? Date: Fri, 22 Mar 2002 09:16:00 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 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/