From owner-freebsd-amd64@FreeBSD.ORG Sat Mar 21 19:40:01 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75A44106566C for ; Sat, 21 Mar 2009 19:40:01 +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 33C448FC1A for ; Sat, 21 Mar 2009 19:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2LJe12H077265 for ; Sat, 21 Mar 2009 19:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2LJe1wV077264; Sat, 21 Mar 2009 19:40:01 GMT (envelope-from gnats) Resent-Date: Sat, 21 Mar 2009 19:40:01 GMT Resent-Message-Id: <200903211940.n2LJe1wV077264@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yoshitaka AHAREN Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7EF71065673 for ; Sat, 21 Mar 2009 19:37:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B50498FC12 for ; Sat, 21 Mar 2009 19:37:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2LJbCXu077888 for ; Sat, 21 Mar 2009 19:37:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n2LJbCeJ077887; Sat, 21 Mar 2009 19:37:12 GMT (envelope-from nobody) Message-Id: <200903211937.n2LJbCeJ077887@www.freebsd.org> Date: Sat, 21 Mar 2009 19:37:12 GMT From: Yoshitaka AHAREN To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Sat, 21 Mar 2009 20:23:46 +0000 Cc: Subject: amd64/132911: ip6fw: argument type of fill_icmptypes is wrong and causes problem on amd64 platform X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2009 19:40:02 -0000 >Number: 132911 >Category: amd64 >Synopsis: ip6fw: argument type of fill_icmptypes is wrong and causes problem on amd64 platform >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 21 19:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Yoshitaka AHAREN >Release: FreeBSD 6.4-RELEASE-p3 >Organization: College of Information Science, University of Tsukuba >Environment: FreeBSD freebsd.local 6.4-RELEASE-p3 FreeBSD 6.4-RELEASE-p3 #16: Fri Jan 23 14:46:52 JST 2009 root@freebsd.local:/usr/obj/usr/src/sys/MyKernel amd64 >Description: fill_icmptypes in usr/src/sbin/ip6fw/ip6fw.c takes wrong type of argument 'types'. It is defined as array of 'unsgined' in /usr/include/netinet6/ip6_fw.h, but in the prototype of fill_icmptypes it is defined as array of 'u_long'. In amd64 platform, u_long != unsigned. It causes wrong icmp types to pass to ip6fw kernel module. >How-To-Repeat: run the following command in amd64 platform: # ip6fw add 10 allow ipv6-icmp from any to any icmptypes 63 00010 allow ipv6-icmp from any to any icmptype 95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127 >Fix: Apply attached patch. >Release-Note: >Audit-Trail: >Unformatted: