misc/159601: [patch] in_scrubprefix() - loopback route refcount malfunction

Svatopluk Kraus onwahe at gmail.com
Tue Aug 9 14:10:14 UTC 2011


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

From: Svatopluk Kraus <onwahe at gmail.com>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: misc/159601: [patch] in_scrubprefix() - loopback route refcount malfunction
Date: Tue, 9 Aug 2011 16:07:53 +0200

 I'm sorry, the category should be [kern] and correct patch is following:
 
 Index: sys/netinet/in.c
 ===================================================================
 --- sys/netinet/in.c	(revision 224705)
 +++ sys/netinet/in.c	(working copy)
 @@ -1126,8 +1126,10 @@
  			RT_LOCK(ia_ro.ro_rt);
  			if (ia_ro.ro_rt->rt_refcnt <= 1)
  				freeit = 1;
 -			else
 +			else if (flags & LLE_STATIC) {
  				RT_REMREF(ia_ro.ro_rt);
 +				target->ia_flags &= ~IFA_RTSELF;
 +			}
  			RTFREE_LOCKED(ia_ro.ro_rt);
  		}
  		if (freeit && (flags & LLE_STATIC)) {


More information about the freebsd-bugs mailing list