From owner-freebsd-ipfw@FreeBSD.ORG Sun Feb 27 21:10:11 2011 Return-Path: Delivered-To: freebsd-ipfw@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD4B31065678 for ; Sun, 27 Feb 2011 21:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CAE4E8FC12 for ; Sun, 27 Feb 2011 21:10:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1RLABR2062416 for ; Sun, 27 Feb 2011 21:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1RLABxk062415; Sun, 27 Feb 2011 21:10:11 GMT (envelope-from gnats) Date: Sun, 27 Feb 2011 21:10:11 GMT Message-Id: <201102272110.p1RLABxk062415@freefall.freebsd.org> To: freebsd-ipfw@FreeBSD.org From: Jeff Kletsky Cc: Subject: Re: kern/143653: [ipfw] [patch] ipfw nat redirect_port "buf is too small" error X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeff Kletsky List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2011 21:10:11 -0000 The following reply was made to PR kern/143653; it has been noted by GNATS. From: Jeff Kletsky To: bug-followup@FreeBSD.org, dima_bsd@inbox.lv Cc: Subject: Re: kern/143653: [ipfw] [patch] ipfw nat redirect_port "buf is too small" error Date: Sun, 27 Feb 2011 13:01:12 -0800 Under some situations, can cause *kernel panic* with no automatic reboot (just hangs on screen, HW reset required). Additionally, the firewall script being executed has zero-byte length on reboot. In my case, it was 15 redirect rules entered. RELEASE-8.2 amd64 Copying by hand from the screen: unknown redirect mode: 0 panic: LibAliasRedirect* returned NULL cpuid = 0 The stack backtrace includes: kdb_backtrace+0x5e panic+0x187 ipfw_nat_cfg+0x35a ipfw_ctl+0x211 rip_ctloutput+0x9f sosetopt+0x42 kern_setsockopt+0xc0 setsockopt+0x22 syscallenter+0x1e5 syscall+0x4b Xfast_syscall+0xe2 Kernel dump and configuration files now available in http://wildside.wagsky.com/pr143653/ Should be able to replicate by installing RELEASE-8.2, those config files (adjusting as needed for the two network interfaces) and copying twoport.crashes to the target of the twoport symlink. [root@port7 /var/crash]# uname -a FreeBSD port7.pn.wagsky.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64