From owner-freebsd-stable@FreeBSD.ORG Wed May 2 06:01:16 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D5DB106566C for ; Wed, 2 May 2012 06:01:16 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13::5]) by mx1.freebsd.org (Postfix) with ESMTP id AD4088FC0C for ; Wed, 2 May 2012 06:01:15 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.5/8.14.5) with ESMTP id q4261CmS007912 for ; Wed, 2 May 2012 13:01:12 +0700 (NOVT) (envelope-from egrosbein@rdtc.ru) Message-ID: <4FA0CDA8.2060904@rdtc.ru> Date: Wed, 02 May 2012 13:01:12 +0700 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110112 Thunderbird/3.1.7 MIME-Version: 1.0 To: FreeBSD Stable Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Unkillable /sbin/ipfw process X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2012 06:01:16 -0000 Hi! I've found easy way to make ipfw(8) to become unkillable even witk kill -9. It is displayed as "running" and takes all CPU cycles. Just run the following script with argument 122 for 8.3/i386 or with 121 for 8.3/amd64. #!/bin/sh args="add 60001 count ip from any to { " for i in `jot $1 1` do args="${args}127.0.0.$i or " done args="${args}127.0.1.1 }"; ipfw delete 60001 echo ipfw $args ipfw $args #EOF After one /sbin/ipfw is stuck in this state, all others invocations of /sbin/ipfw (including "ipfw show") add another stuck ipfw process. See also http://www.freebsd.org/cgi/query-pr.cgi?pr=65961 Eugene Grosbein.