kern/108216: ipv6 broken in 6.2

Nick Johnson freebsd at
Mon Jan 22 17:50:20 UTC 2007

>Number:         108216
>Category:       kern
>Synopsis:       ipv6 broken in 6.2
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 22 17:50:19 GMT 2007
>Originator:     Nick Johnson
>Release:        FreeBSD 6.2-STABLE i386
System: FreeBSD 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jan 21 16:53:54 PST 2007 root at i386


IPv6 in FreeBSD 6.2-RELEASE and -STABLE as of this writing is broken.  The symptom is that any attempt to send
a packet results in a "no route to host" message.  This was tested using v6v4 over a gif interface using (which configures with the tspc daemon).


Upgrade to 6.2.  Create an ipv6 tunnel with any tunnel broker.  Attempt to ping6 any ipv6 destination.

As mentioned in this problem can
be traced to a single commit.

The workaround is to back out this commit locally, by fetching the diff to the previous commit:

And then doing a patch -R against sys/netinet6/nd6.c , then recompiling the kernel.

At the very least, this bug should be noted in the 6.2 errata (at the time of this writing it still wasn't) since
it is complete breakage of major system functionality.

Visual inspection suggests that the problem may be related to this change:

-				rt->rt_gwroute = rtalloc1(rt->rt_gateway, 1, 0UL);
-				if ((rt = rt->rt_gwroute) == 0)
+				RT_UNLOCK(rt0);
+				rt = rtalloc1(rt->rt_gateway, 1, 0UL);

Note that the assignment changed from rt->gwroute to rt itself.  This seems suspicious.  Unfortunately I do not
have a test system available at the moment to change this code to see if it corrects the trouble.


More information about the freebsd-bugs mailing list