NetBSD Problem Report #47665

From martin@duskware.de  Mon Mar 18 19:50:11 2013
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id A420263F027
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 18 Mar 2013 19:50:09 +0000 (UTC)
Date: Mon, 18 Mar 2013 20:50:07 CET
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: IPF only works by chance on some archs
X-Send-Pr-Version: 3.95

>Number:         47665
>Category:       kern
>Synopsis:       IPF only works by chance on some archs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 18 19:55:00 +0000 2013
>Closed-Date:    
>Last-Modified:  Thu Nov 05 10:46:31 +0000 2015
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.17
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 6.99.17 NetBSD 6.99.17 (NIGHT-OWL) #142: Thu Mar 14 21:40:50 CET 2013 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

IPF inconsistently uses different union fiels, which happen to overlay
to the same storage on some archs but do not align as expected on others.
One example are nat->nat_osport and nat->nat_nicmpid.

>How-To-Repeat:
Code inspection.

>Fix:
Darren tracks this upstream already - hope he will have some soon.

>Release-Note:

>Audit-Trail:
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47665 CVS commit: src/tests/ipf
Date: Mon, 18 Mar 2013 20:03:56 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Mar 18 20:03:56 UTC 2013

 Modified Files:
 	src/tests/ipf: t_nat_exec.sh

 Log Message:
 Mark a few more test cases known to only work by chance as failing
 and point to PR 47665.
 Julio: how do we make such cases not fail when they actually happen to
 work (by pure luck)?


 To generate a diff of this commit:
 cvs rdiff -u -r1.14 -r1.15 src/tests/ipf/t_nat_exec.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Darren Reed" <darrenr@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47665 CVS commit: src/sys/external/bsd/ipf/netinet
Date: Sat, 12 Jul 2014 14:54:32 +0000

 Module Name:	src
 Committed By:	darrenr
 Date:		Sat Jul 12 14:54:32 UTC 2014

 Modified Files:
 	src/sys/external/bsd/ipf/netinet: ip_nat.c

 Log Message:
 PR kern/47665
 For ICMP packets, use the "oicmpid" and "nicmpid" fields explicitly rather
 than overloading those with "port" in them and expecting them to work.


 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.13 src/sys/external/bsd/ipf/netinet/ip_nat.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Tue, 11 Aug 2015 15:15:54 +0000
State-Changed-Why:
Presumably Darren's patch fixed this?


State-Changed-From-To: feedback->open
State-Changed-By: martin@NetBSD.org
State-Changed-When: Thu, 05 Nov 2015 10:46:31 +0000
State-Changed-Why:
The ipf internal tests for this still fail on big endian machines.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.