NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: kern/50629: netbsd-7 kernel panic



The following reply was made to PR kern/50629; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, kern-bug-people%netbsd.org@localhost, 
	gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
	6bone%6bone.informatik.uni-leipzig.de@localhost
Cc: 
Subject: re: kern/50629: netbsd-7 kernel panic
Date: Fri, 11 Mar 2016 08:59:17 -0500

 On Mar 11,  1:45pm, 6bone%6bone.informatik.uni-leipzig.de@localhost (6bone%6bone.informatik.uni-leipzig.de@localhost) wrote:
 -- Subject: re: kern/50629: netbsd-7 kernel panic
 
 |  The server has only an ipv6 firewall. If the cause is ipfilter, then it 
 |  must be an ipv6 rule.
 
 Ok, found it...
 
 christos
 
 Index: ip_fil_netbsd.c
 ===================================================================
 RCS file: /cvsroot/src/sys/external/bsd/ipf/netinet/ip_fil_netbsd.c,v
 retrieving revision 1.12
 diff -u -u -r1.12 ip_fil_netbsd.c
 --- ip_fil_netbsd.c	20 Jan 2016 22:11:23 -0000	1.12
 +++ ip_fil_netbsd.c	11 Mar 2016 13:58:49 -0000
 @@ -1065,13 +1065,11 @@
  
  	if (fin->fin_v == 6) {
  #ifdef USE_INET6
 -		error = ipf_fastroute6(m0, mpp, fin, fdp);
 +		return ipf_fastroute6(m0, mpp, fin, fdp);
  #else
 -		error = EPROTONOSUPPORT;
 +		FREE_MB_T(*mpp);
 +		return EPROTONOSUPPORT;
  #endif
 -		if ((error != 0) && (*mpp != NULL))
 -			FREE_MB_T(*mpp);
 -		return error;
  	}
  #ifndef INET
  	FREE_MB_T(*mpp);
 @@ -1445,11 +1443,15 @@
  # else
  			error = nd6_output(ifp, ifp, m0, dst6, rt);
  # endif
 +			m0 = NULL;
  		} else {
  			error = EMSGSIZE;
  		}
  	}
  bad:
 +	if (m0) {
 +		FREE_MB_T(m0);
 +	}
  # if __NetBSD_Version__ >= 499001100
  	rtcache_free(ro);
  # else
 


Home | Main Index | Thread Index | Old Index