NetBSD Problem Report #52439

From htodd@emily.i8u.org  Fri Jul 28 14:51:52 2017
Return-Path: <htodd@emily.i8u.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id DEC4B7A1BE
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 28 Jul 2017 14:51:52 +0000 (UTC)
Message-Id: <20170728145151.E0511333297@emily.i8u.org>
Date: Fri, 28 Jul 2017 07:51:51 -0700 (PDT)
From: htodd@twofifty.com
Reply-To: htodd@twofifty.com
To: gnats-bugs@NetBSD.org
Subject: ipv6 stops routing randomly
X-Send-Pr-Version: 3.95

>Number:         52439
>Category:       kern
>Synopsis:       ipv6 stops routing randomly
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 28 14:55:00 +0000 2017
>Closed-Date:    Mon Nov 20 00:02:06 +0000 2017
>Last-Modified:  Mon Nov 20 00:02:06 +0000 2017
>Originator:     Hisashi T Fujinaka <htodd@twofifty.com>
>Release:        NetBSD 8.0_BETA
>Organization:
none

>Environment:


System: NetBSD emily.i8u.org 8.0_BETA NetBSD 8.0_BETA (EMILY) #27: Wed Jul 26 06:07:13 PDT 2017 htodd@emily.i8u.org:/usr/obj/i386/sys/arch/i386/compile/EMILY i386
Architecture: i386
Machine: i386
>Description:
ipv6 will quit routing randomly, and to restart it it takes a restart of dhcpcd and npf. A restart of only npf won't work.

>How-To-Repeat:
Set up a 8-beta system a router and prepare for misery. Use dhcpcd to get the info from Comcast, and npf as filtering.

>Fix:


>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/52439: ipv6 stops routing randomly
Date: Fri, 28 Jul 2017 17:01:15 +0200

 On Fri, Jul 28, 2017 at 02:55:00PM +0000, htodd@twofifty.com wrote:

 > ipv6 will quit routing randomly, and to restart it it takes a restart
 > of dhcpcd and npf. A restart of only npf won't work.

 Sounds like an issue with dhcpcd vs. your ISP, nothing kernel related.
 Please provide more information about your IPv6 setup and maybe dhcpcd
 debug logs.

 Martin

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/52439: ipv6 stops routing randomly
Date: Fri, 28 Jul 2017 08:42:19 -0700 (PDT)

 As someone who does this for a living (works in bug databases), I wish
 Martin would ask his questions in the pr.

 From irc, I am collecting "netstat -rn" from before and after the
 failure. I am also waiting for Roy to provide input on what to provide
 from dhcpcd.

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: kern/52439: ipv6 stops routing randomly
Date: Sat, 29 Jul 2017 04:27:18 -0400

 On Jul 28,  2:55pm, htodd@twofifty.com (htodd@twofifty.com) wrote:
 -- Subject: kern/52439: ipv6 stops routing randomly

 | ipv6 will quit routing randomly, and to restart it it takes a restart of dhcpcd and npf. A restart of only npf won't work.
 | 	
 | >How-To-Repeat:
 | Set up a 8-beta system a router and prepare for misery. Use dhcpcd to get the info from Comcast, and npf as filtering.
 | 	

 I had the same problem for a long while, but it got fixed on HEAD.
 I would try first the HEAD kernel, and then the HEAD dhcpcd separately.

 christos

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/52439: ipv6 stops routing randomly
Date: Mon, 31 Jul 2017 07:20:35 -0700 (PDT)

 With the newest kernel from HEAD, dhcpcd dumped core:

 #0  0xac9aa6f0 in strlen () from /lib/libc.so.12
 (gdb) bt
 #0  0xac9aa6f0 in strlen () from /lib/libc.so.12
 #1  0xac99b7eb in __vfprintf_unlocked_l () from /lib/libc.so.12
 #2  0xac998881 in __vfprintf_unlocked_l () from /lib/libc.so.12
 #3  0xac99d1d7 in vfprintf () from /lib/libc.so.12
 #4  0x0008b787 in vlogprintf_r.constprop ()
 #5  0x0008b860 in vlogmessage ()
 #6  0x0008babc in logerrx ()
 #7  0x000a74d7 in ipv6_addaddr1 ()
 #8  0x000a78c6 in ipv6_addaddrs ()
 #9  0x000ab555 in ipv6nd_expire ()
 #10 0x00088da4 in dhcpcd_handlecarrier ()
 #11 0x000996cd in if_handlelink ()
 #12 0x000882a6 in dhcpcd_handlelink ()
 #13 0x0008b56a in eloop_start ()
 #14 0x000b4f80 in main ()

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/52439: ipv6 stops routing randomly
Date: Mon, 31 Jul 2017 08:32:41 -0700 (PDT)

 netstat -rn from working system:

 Routing tables

 Internet:
 Destination        Gateway            Flags    Refs      Use    Mtu Interface
 default            75.148.87.26       UGS         -        -      -  re0
 10/8               link#2             UC          -        -      -  re0
 10.1.10.2          link#2             UHl         -        -      -  lo0
 75.148.87.24/30    link#2             UC          -        -      -  re0
 75.148.87.25       link#2             UHl         -        -      -  lo0
 127/8              127.0.0.1          UGRS        -        -  33180  lo0
 127.0.0.1          lo0                UHl         -        -  33180  lo0
 192.168.0/24       link#3             UC          -        -      -  re1
 192.168.0.1        link#3             UHl         -        -      -  lo0
 192.168.0.200      00:24:b2:88:a2:82  UHL         -        -      -  re1
 192.168.0.11       00:1b:21:69:c3:70  UHL         -        -      -  re1
 192.168.0.14       a0:36:9f:8f:10:aa  UHL         -        -      -  re1
 192.168.0.64       f4:f9:51:ba:26:b4  UHL         -        -      -  re1
 192.168.0.56       b8:27:eb:20:fd:3e  UHL         -        -      -  re1
 192.168.0.25       e0:cb:4e:1c:47:66  UHL         -        -      -  re1
 192.168.0.31       64:4b:f0:00:65:02  UHL         -        -      -  re1
 192.168.0.53       00:25:9b:9f:22:47  UHL         -        -      -  re1
 192.168.0.23       00:1b:63:ae:ca:4b  UHL         -        -      -  re1
 192.168.0.55       b8:27:eb:23:aa:8b  UHL         -        -      -  re1
 10.1.10.1          6a:ee:96:e1:9d:06  UHL         -        -      -  re0
 10.1.10.207        b4:18:d1:bc:dd:71  UHL         -        -      -  re0
 75.148.87.26       6a:ee:96:e1:9d:06  UHL         -        -      -  re0

 Internet6:
 Destination                             Gateway                        Flags    Refs      Use    Mtu Interface
 ::/104                                  ::1                            UGRS        -        -  33180  lo0
 ::/96                                   ::1                            UGRS        -        -  33180  lo0
 default                                 fe80::68ee:96ff:fee1:9d06      UGS         -        -      -  re0
 ::1                                     lo0                            UHl         -        -  33180  lo0
 ::127.0.0.0/104                         ::1                            UGRS        -        -  33180  lo0
 ::224.0.0.0/100                         ::1                            UGRS        -        -  33180  lo0
 ::255.0.0.0/104                         ::1                            UGRS        -        -  33180  lo0
 ::ffff:0.0.0.0/96                       ::1                            UGRS        -        -  33180  lo0
 2001:db8::/32                           ::1                            UGRS        -        -  33180  lo0
 2002::/24                               ::1                            UGRS        -        -  33180  lo0
 2002:7f00::/24                          ::1                            UGRS        -        -  33180  lo0
 2002:e000::/20                          ::1                            UGRS        -        -  33180  lo0
 2002:ff00::/24                          ::1                            UGRS        -        -  33180  lo0
 2603:3004:a:3100::/64                   link#2                         UC          -        -      -  re0
 2603:3004:a:3100:6e16:f4e2:f68c:8358    link#2                         UHl         -        -      -  lo0
 2603:3004:a:31e0::/59                   ::1                            UGRS        -        -  33180  lo0
 2603:3004:a:31e3::/64                   link#3                         UC          -        -      -  re1
 2603:3004:a:31e3::1                     link#3                         UHl         -        -      -  lo0
 fc00::/7                                ::1                            UGRS        -        -  33180  lo0
 fe80::/10                               ::1                            UGRS        -        -  33180  lo0
 fe80::%lo0/64                           fe80::1                        U           -        -      -  lo0
 fe80::1                                 lo0                            UHl         -        -      -  lo0
 fe80::%re0/64                           link#2                         UC          -        -      -  re0
 fe80::201:c0ff:fe09:c061                link#2                         UHl         -        -      -  lo0
 fe80::%re1/64                           link#3                         UC          -        -      -  re1
 fe80::201:c0ff:fe09:c062                link#3                         UHl         -        -      -  lo0
 ff01:1::/32                             ::1                            UC          -        -  33180  lo0
 ff01:2::/32                             link#2                         UC          -        -      -  re0
 ff01:3::/32                             link#3                         UC          -        -      -  re1
 ff02::%lo0/32                           ::1                            UC          -        -  33180  lo0
 ff02::%re0/32                           link#2                         UC          -        -      -  re0
 ff02::%re1/32                           link#3                         UC          -        -      -  re1
 2603:3004:a:31e3:5e8f:d053:77ed:c4dd    b8:27:eb:20:fd:3e              UHL         -        -      -  re1
 fe80::e2cb:4eff:fe1c:4766               e0:cb:4e:1c:47:66              UHL         -        -      -  re1
 2603:3004:a:31e3:21b:21ff:fe69:c370     00:1b:21:69:c3:70              UHL         -        -      -  re1
 fe80::a236:9fff:fe8f:10aa               a0:36:9f:8f:10:aa              UHL         -        -      -  re1
 2603:3004:a:31e3:58a8:2e15:4635:28b7    00:1b:63:ae:ca:4b              UHL         -        -      -  re1
 2603:3004:a:31e3:bcbd:f34:eef2:bf0f     f4:f9:51:ba:26:b4              UHL         -        -      -  re1
 fe80::21b:63ff:feae:ca4b                00:1b:63:ae:ca:4b              UHL         -        -      -  re1
 2603:3004:a:31e3:3e1e:52c1:5c11:3b60    a0:36:9f:8f:10:aa              UHL         -        -      -  re1
 fe80::36c2:9d7f:5d7f:7c67               b8:27:eb:20:fd:3e              UHL         -        -      -  re1
 fe80::68ee:96ff:fee1:9d06               6a:ee:96:e1:9d:06              UHL         -        -      -  re0
 fe80::1ab4:30ff:fe1c:f1d4               18:b4:30:1c:f1:d4              UHL         -        -      -  re0
 fe80::6aa8:6dff:fe22:6612               b8:c7:5d:c7:c9:6c              UHL         -        -      -  re0
 fe80::1019:bbed:42f2:f5f6               20:3c:ae:7d:97:57              UHL         -        -      -  re0
 fe80::45a:d1a8:22a2:e4d7                b4:18:d1:bc:dd:71              UHL         -        -      -  re0
 fe80::201:c0ff:fe09:c061                00:01:c0:09:c0:61              UHL         -        -      -  re0
 fe80::5660:9ff:fe04:d130                54:60:09:04:d1:30              UHL         -        -      -  re0

 netstat -rn from failed system:

 Routing tables

 Internet:
 Destination        Gateway            Flags    Refs      Use    Mtu Interface
 default            75.148.87.26       UGS         -        -      -  re0
 10/8               link#2             UC          -        -      -  re0
 10.1.10.2          link#2             UHl         -        -      -  lo0
 75.148.87.24/30    link#2             UC          -        -      -  re0
 75.148.87.25       link#2             UHl         -        -      -  lo0
 127/8              127.0.0.1          UGRS        -        -  33180  lo0
 127.0.0.1          lo0                UHl         -        -  33180  lo0
 192.168.0/24       link#3             UC          -        -      -  re1
 192.168.0.1        link#3             UHl         -        -      -  lo0
 192.168.0.200      00:24:b2:88:a2:82  UHL         -        -      -  re1
 192.168.0.11       00:1b:21:69:c3:70  UHL         -        -      -  re1
 192.168.0.14       a0:36:9f:8f:10:aa  UHL         -        -      -  re1
 192.168.0.64       f4:f9:51:ba:26:b4  UHL         -        -      -  re1
 192.168.0.56       b8:27:eb:20:fd:3e  UHL         -        -      -  re1
 192.168.0.25       e0:cb:4e:1c:47:66  UHL         -        -      -  re1
 192.168.0.31       64:4b:f0:00:65:02  UHL         -        -      -  re1
 192.168.0.23       00:1b:63:ae:ca:4b  UHL         -        -      -  re1
 192.168.0.55       b8:27:eb:23:aa:8b  UHL         -        -      -  re1
 10.1.10.1          6a:ee:96:e1:9d:06  UHL         -        -      -  re0
 75.148.87.26       6a:ee:96:e1:9d:06  UHL         -        -      -  re0

 Internet6:
 Destination                             Gateway                        Flags    Refs      Use    Mtu Interface
 ::/104                                  ::1                            UGRS        -        -  33180  lo0
 ::/96                                   ::1                            UGRS        -        -  33180  lo0
 default                                 fe80::68ee:96ff:fee1:9d06      UGS         -        -      -  re0
 ::1                                     lo0                            UHl         -        -  33180  lo0
 ::127.0.0.0/104                         ::1                            UGRS        -        -  33180  lo0
 ::224.0.0.0/100                         ::1                            UGRS        -        -  33180  lo0
 ::255.0.0.0/104                         ::1                            UGRS        -        -  33180  lo0
 ::ffff:0.0.0.0/96                       ::1                            UGRS        -        -  33180  lo0
 2001:db8::/32                           ::1                            UGRS        -        -  33180  lo0
 2002::/24                               ::1                            UGRS        -        -  33180  lo0
 2002:7f00::/24                          ::1                            UGRS        -        -  33180  lo0
 2002:e000::/20                          ::1                            UGRS        -        -  33180  lo0
 2002:ff00::/24                          ::1                            UGRS        -        -  33180  lo0
 2603:3004:a:3100::/64                   link#2                         UC          -        -      -  re0
 2603:3004:a:3100:6e16:f4e2:f68c:8358    link#2                         UHl         -        -      -  lo0
 2603:3004:a:31e0::/59                   ::1                            UGRS        -        -  33180  lo0
 2603:3004:a:31e3::/64                   link#3                         UC          -        -      -  re1
 2603:3004:a:31e3::1                     link#3                         UHl         -        -      -  lo0
 fc00::/7                                ::1                            UGRS        -        -  33180  lo0
 fe80::/10                               ::1                            UGRS        -        -  33180  lo0
 fe80::%lo0/64                           fe80::1                        U           -        -      -  lo0
 fe80::1                                 lo0                            UHl         -        -      -  lo0
 fe80::%re0/64                           link#2                         UC          -        -      -  re0
 fe80::201:c0ff:fe09:c061                link#2                         UHl         -        -      -  lo0
 fe80::%re1/64                           link#3                         UC          -        -      -  re1
 fe80::201:c0ff:fe09:c062                link#3                         UHl         -        -      -  lo0
 ff01:1::/32                             ::1                            UC          -        -  33180  lo0
 ff01:2::/32                             link#2                         UC          -        -      -  re0
 ff01:3::/32                             link#3                         UC          -        -      -  re1
 ff02::%lo0/32                           ::1                            UC          -        -  33180  lo0
 ff02::%re0/32                           link#2                         UC          -        -      -  re0
 ff02::%re1/32                           link#3                         UC          -        -      -  re1
 fe80::3e07:54ff:fe4c:9a09               3c:07:54:4c:9a:09              UHL         -        -      -  re1
 fe80::18ed:3947:9cc4:9aa0               f4:f9:51:ba:26:b4              UHL         -        -      -  re1
 fe80::e2cb:4eff:fe1c:4766               e0:cb:4e:1c:47:66              UHL         -        -      -  re1
 2603:3004:a:31e3:e2cb:4eff:fe1c:4766    e0:cb:4e:1c:47:66              UHL         -        -      -  re1
 2603:3004:a:31e3:5e8f:d053:77ed:c4dd    b8:27:eb:20:fd:3e              UHL         -        -      -  re1
 2603:3004:a:31e3:21b:21ff:fe69:c370     00:1b:21:69:c3:70              UHL         -        -      -  re1
 fe80::1c69:e85a:c26a:42a                link#3                         UHL         -        -      -  re1
 2603:3004:a:31e3:14f5:6:e777:71aa       f4:f9:51:ba:26:b4              UHL         -        -      -  re1
 fe80::21b:63ff:feae:ca4b                00:1b:63:ae:ca:4b              UHL         -        -      -  re1
 2603:3004:a:31e3:1140:c688:93b5:9cce    00:1b:63:ae:ca:4b              UHL         -        -      -  re1
 2603:3004:a:31e3:3e1e:52c1:5c11:3b60    a0:36:9f:8f:10:aa              UHL         -        -      -  re1
 fe80::36c2:9d7f:5d7f:7c67               b8:27:eb:20:fd:3e              UHL         -        -      -  re1
 2603:3004:a:31e3:b171:52f7:422a:9546    3c:07:54:4c:9a:09              UHL         -        -      -  re1
 fe80::21d:4fff:fefb:9f18                00:1d:4f:fb:9f:18              UHL         -        -      -  re0
 fe80::68ee:96ff:fee1:9d06               6a:ee:96:e1:9d:06              UHL         -        -      -  re0
 fe80::1ab4:30ff:fe1c:f1d4               18:b4:30:1c:f1:d4              UHL         -        -      -  re0
 fe80::6aa8:6dff:fe22:6612               68:a8:6d:22:66:12              UHL         -        -      -  re0
 fe80::1019:bbed:42f2:f5f6               link#2                         UHL         -        -      -  re0
 fe80::bac7:5dff:fec7:c96c               b8:c7:5d:c7:c9:6c              UHL         -        -      -  re0
 2603:3004:a:3100:c164:c0d:cf92:c161     54:60:09:04:d1:30              UHL         -        -      -  re0

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, 
    roy@marples.name
Subject: Re: kern/52439: ipv6 stops routing randomly
Date: Tue, 3 Oct 2017 09:54:46 -0700 (PDT)

 Does it make sense that the command "dhcpcd -dB6T --nodhcp6 wm0" on
 netbsd8-amd64 and current-amd64 respond differently?

 netbsd8-amd64:
 dhcpcd-7.0.0-rc1 starting
 DUID 00:01:00:01:21:66:7c:2a:00:1b:21:69:c3:70
 wm0: IAID 21:69:c3:70
 wm0: delaying IPv6 router solicitation for 0.3 seconds
 wm1: waiting for carrier
 wm2: waiting for carrier
 wm0: soliciting an IPv6 router
 wm0: sending Router Solicitation
 wm0: Router Advertisement from fe80::201:c0ff:fe09:c062
 wm0: executing `/libexec/dhcpcd-run-hooks' TEST
 interface=wm0
 pid=10146
 reason=TEST
 ifcarrier=up
 ifflags=4294936643
 ifmtu=1500
 ifwireless=0
 nd1_acquired=12346
 nd1_addr1=2603:3004:a:31e3:d2f:8d6c:f504:ffe9/64
 nd1_from=fe80::201:c0ff:fe09:c062
 nd1_now=12346
 nd1_prefix_information1_flags=LA
 nd1_prefix_information1_length=64
 nd1_prefix_information1_pltime=604800
 nd1_prefix_information1_prefix=2603:3004:a:31e3::
 nd1_prefix_information1_vltime=2592000
 nd1_source_address=0001c009c062
 dhcpcd exited

 current-amd64:
 dhcpcd-7.0.0-rc2 starting
 DUID 00:01:00:01:1a:4b:2e:ab:00:1b:21:69:c3:70
 wm0: IAID 9f:8f:10:aa
 wm0: delaying IPv6 router solicitation for 0.2 seconds
 wm0: soliciting an IPv6 router
 wm0: sending Router Solicitation
 wm0: sending Router Solicitation
 wm0: sending Router Solicitation
 wm0: sending Router Solicitation
 wm0: no IPv6 Routers available
 timed out
 dhcpcd exited

From: Roy Marples <roy@marples.name>
To: Hisashi T Fujinaka <htodd@twofifty.com>, gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/52439: ipv6 stops routing randomly
Date: Tue, 3 Oct 2017 18:54:59 +0100

 On 03/10/2017 17:54, Hisashi T Fujinaka wrote:
 > Does it make sense that the command "dhcpcd -dB6T --nodhcp6 wm0" on
 > netbsd8-amd64 and current-amd64 respond differently?

 No it does not.

 However, dhcpcd-7.0.0-rc2 on a NetBSD-8.99.1 kernel produces output I 
 would expect.

 > 
 > netbsd8-amd64:
 > dhcpcd-7.0.0-rc1 starting
 > DUID 00:01:00:01:21:66:7c:2a:00:1b:21:69:c3:70
 > wm0: IAID 21:69:c3:70
 > wm0: delaying IPv6 router solicitation for 0.3 seconds
 > wm1: waiting for carrier
 > wm2: waiting for carrier
 > wm0: soliciting an IPv6 router
 > wm0: sending Router Solicitation
 > wm0: Router Advertisement from fe80::201:c0ff:fe09:c062
 > wm0: executing `/libexec/dhcpcd-run-hooks' TEST
 > interface=wm0
 > pid=10146
 > reason=TEST
 > ifcarrier=up
 > ifflags=4294936643
 > ifmtu=1500
 > ifwireless=0
 > nd1_acquired=12346
 > nd1_addr1=2603:3004:a:31e3:d2f:8d6c:f504:ffe9/64
 > nd1_from=fe80::201:c0ff:fe09:c062
 > nd1_now=12346
 > nd1_prefix_information1_flags=LA
 > nd1_prefix_information1_length=64
 > nd1_prefix_information1_pltime=604800
 > nd1_prefix_information1_prefix=2603:3004:a:31e3::
 > nd1_prefix_information1_vltime=2592000
 > nd1_source_address=0001c009c062
 > dhcpcd exited
 > 
 > current-amd64:
 > dhcpcd-7.0.0-rc2 starting
 > DUID 00:01:00:01:1a:4b:2e:ab:00:1b:21:69:c3:70
 > wm0: IAID 9f:8f:10:aa
 > wm0: delaying IPv6 router solicitation for 0.2 seconds
 > wm0: soliciting an IPv6 router
 > wm0: sending Router Solicitation
 > wm0: sending Router Solicitation
 > wm0: sending Router Solicitation
 > wm0: sending Router Solicitation
 > wm0: no IPv6 Routers available
 > timed out
 > dhcpcd exited

 Are you sure it's not a kernel issue? The failing output just shows that 
 dhcpcd sent an RA but didn't receive one.

 Roy

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/52439: ipv6 stops routing randomly
Date: Tue, 3 Oct 2017 19:16:22 -0700 (PDT)

 On Tue, 3 Oct 2017, Roy Marples wrote:

 > Are you sure it's not a kernel issue? The failing output just shows that
 > dhcpcd sent an RA but didn't receive one.

 I tried with GENERIC, and with both bge and wm (i210) and neither works.

 -- 
 Hisashi T Fujinaka - htodd@twofifty.com
 BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/52439: ipv6 stops routing randomly
Date: Tue, 3 Oct 2017 19:37:17 -0700 (PDT)

 I did a tcpdump while waiting for a router and here's what I see;

 [htodd@mara]~ 2508 % sudo tcpdump -i wm0 -vv ip6
 tcpdump: listening on wm0, link-type EN10MB (Ethernet), capture size 262144 bytes
 19:32:53.873928 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::a236:9fff:fe8f:10aa > ff02::2: [icmp6 sum ok] ICMP6, router solicitation, length 16
            source link-address option (1), length 8 (1): a0:36:9f:8f:10:aa
              0x0000:  a036 9f8f 10aa
 19:32:53.958450 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::201:c0ff:fe09:c062 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
          hop limit 64, Flags [none], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s
            source link-address option (1), length 8 (1): 00:01:c0:09:c0:62
              0x0000:  0001 c009 c062
            prefix info option (3), length 32 (4): 2603:3004:a:31e3::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
              0x0000:  40c0 0027 8d00 0009 3a80 0000 0000 2603
              0x0010:  3004 000a 31e3 0000 0000 0000 0000
 19:32:54.189239 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::201:c0ff:fe09:c062 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
          hop limit 64, Flags [none], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s
            source link-address option (1), length 8 (1): 00:01:c0:09:c0:62
              0x0000:  0001 c009 c062
            prefix info option (3), length 32 (4): 2603:3004:a:31e3::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
              0x0000:  40c0 0027 8d00 0009 3a80 0000 0000 2603
              0x0010:  3004 000a 31e3 0000 0000 0000 0000
 19:32:57.885378 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::a236:9fff:fe8f:10aa > ff02::2: [icmp6 sum ok] ICMP6, router solicitation, length 16
            source link-address option (1), length 8 (1): a0:36:9f:8f:10:aa
              0x0000:  a036 9f8f 10aa
 19:32:58.019401 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::201:c0ff:fe09:c062 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
          hop limit 64, Flags [none], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s
            source link-address option (1), length 8 (1): 00:01:c0:09:c0:62
              0x0000:  0001 c009 c062
            prefix info option (3), length 32 (4): 2603:3004:a:31e3::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
              0x0000:  40c0 0027 8d00 0009 3a80 0000 0000 2603
              0x0010:  3004 000a 31e3 0000 0000 0000 0000
 19:32:58.109461 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::201:c0ff:fe09:c062 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
          hop limit 64, Flags [none], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s
            source link-address option (1), length 8 (1): 00:01:c0:09:c0:62
              0x0000:  0001 c009 c062
            prefix info option (3), length 32 (4): 2603:3004:a:31e3::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
              0x0000:  40c0 0027 8d00 0009 3a80 0000 0000 2603
              0x0010:  3004 000a 31e3 0000 0000 0000 0000
 19:33:01.896849 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::a236:9fff:fe8f:10aa > ff02::2: [icmp6 sum ok] ICMP6, router solicitation, length 16
            source link-address option (1), length 8 (1): a0:36:9f:8f:10:aa
              0x0000:  a036 9f8f 10aa
 19:33:02.120012 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::201:c0ff:fe09:c062 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
          hop limit 64, Flags [none], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s
            source link-address option (1), length 8 (1): 00:01:c0:09:c0:62
              0x0000:  0001 c009 c062
            prefix info option (3), length 32 (4): 2603:3004:a:31e3::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
              0x0000:  40c0 0027 8d00 0009 3a80 0000 0000 2603
              0x0010:  3004 000a 31e3 0000 0000 0000 0000
 19:33:02.400913 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::201:c0ff:fe09:c062 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
          hop limit 64, Flags [none], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s
            source link-address option (1), length 8 (1): 00:01:c0:09:c0:62
              0x0000:  0001 c009 c062
            prefix info option (3), length 32 (4): 2603:3004:a:31e3::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
              0x0000:  40c0 0027 8d00 0009 3a80 0000 0000 2603
              0x0010:  3004 000a 31e3 0000 0000 0000 0000
 19:33:05.908361 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::a236:9fff:fe8f:10aa > ff02::2: [icmp6 sum ok] ICMP6, router solicitation, length 16
            source link-address option (1), length 8 (1): a0:36:9f:8f:10:aa
              0x0000:  a036 9f8f 10aa
 19:33:05.970441 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::201:c0ff:fe09:c062 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
          hop limit 64, Flags [none], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s
            source link-address option (1), length 8 (1): 00:01:c0:09:c0:62
              0x0000:  0001 c009 c062
            prefix info option (3), length 32 (4): 2603:3004:a:31e3::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
              0x0000:  40c0 0027 8d00 0009 3a80 0000 0000 2603
              0x0010:  3004 000a 31e3 0000 0000 0000 0000
 19:33:06.100544 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::201:c0ff:fe09:c062 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
          hop limit 64, Flags [none], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s
            source link-address option (1), length 8 (1): 00:01:c0:09:c0:62
              0x0000:  0001 c009 c062
            prefix info option (3), length 32 (4): 2603:3004:a:31e3::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
              0x0000:  40c0 0027 8d00 0009 3a80 0000 0000 2603
              0x0010:  3004 000a 31e3 0000 0000 0000 0000
 19:33:26.205754 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32) 2603:3004:a:31e3:3e1e:52c1:5c11:3b60 > ff02::1:ff09:c062: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has fe80::201:c0ff:fe09:c062
            source link-address option (1), length 8 (1): a0:36:9f:8f:10:aa
              0x0000:  a036 9f8f 10aa
 19:33:26.205909 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32) 2603:3004:a:31e3::1 > 2603:3004:a:31e3:3e1e:52c1:5c11:3b60: [icmp6 sum ok] ICMP6, neighbor advertisement, length 32, tgt is fe80::201:c0ff:fe09:c062, Flags [router, solicited, override]
            destination link-address option (2), length 8 (1): 00:01:c0:09:c0:62
              0x0000:  0001 c009 c062
 19:33:26.205932 IP6 (class 0xb8, hlim 64, next-header UDP (17) payload length: 56) 2603:3004:a:31e3:3e1e:52c1:5c11:3b60.ntp > 2604:880:50:6f::ffff:54.ntp: [udp sum ok] NTPv4, length 48
          Client, Leap indicator:  (0), Stratum 2 (secondary reference), poll 6 (64s), precision -21
          Root Delay: 0.068450, Root dispersion: 0.036056, Reference-ID: time-b.timefreq.bldrdoc.gov
            Reference Timestamp:  3716072697.276009363 (2017/10/03 19:24:57)
            Originator Timestamp: 3716073010.303099730 (2017/10/03 19:30:10)
            Receive Timestamp:    3716073010.289069027 (2017/10/03 19:30:10)
            Transmit Timestamp:   3716073206.205734693 (2017/10/03 19:33:26)
              Originator - Receive Timestamp:  -0.014030702
              Originator - Transmit Timestamp: +195.902634963
 19:33:26.285297 IP6 (class 0x20, flowlabel 0x97c40, hlim 50, next-header UDP (17) payload length: 56) 2604:880:50:6f::ffff:54.ntp > 2603:3004:a:31e3:3e1e:52c1:5c11:3b60.ntp: [udp sum ok] NTPv4, length 48
          Server, Leap indicator:  (0), Stratum 4 (secondary reference), poll 6 (64s), precision -22
          Root Delay: 0.209106, Root dispersion: 0.022521, Reference-ID: 109-204-69-224.iit.mops2.co.uk
            Reference Timestamp:  3716073205.696514338 (2017/10/03 19:33:25)
            Originator Timestamp: 3716073206.205734693 (2017/10/03 19:33:26)
            Receive Timestamp:    3716073206.301316960 (2017/10/03 19:33:26)
            Transmit Timestamp:   3716073206.301352374 (2017/10/03 19:33:26)
              Originator - Receive Timestamp:  +0.095582266
              Originator - Transmit Timestamp: +0.095617681
 19:33:35.735035 IP6 (flowlabel 0x79739, hlim 255, next-header UDP (17) payload length: 85) fe80::9b:3157:7848:8e75.mdns > ff02::fb.mdns: [udp sum ok] 0 [1a] PTR (QU)? _printopia._tcp.local. _printopia._tcp.local. PTR HisashiM-bM-^@M-^Ys MacBook Pro._printopia._tcp.local. (77)
 19:33:36.741794 IP6 (flowlabel 0x79739, hlim 255, next-header UDP (17) payload length: 85) fe80::9b:3157:7848:8e75.mdns > ff02::fb.mdns: [udp sum ok] 0 [1a] PTR (QM)? _printopia._tcp.local. _printopia._tcp.local. PTR HisashiM-bM-^@M-^Ys MacBook Pro._printopia._tcp.local. (77)
 19:33:39.752059 IP6 (flowlabel 0x79739, hlim 255, next-header UDP (17) payload length: 85) fe80::9b:3157:7848:8e75.mdns > ff02::fb.mdns: [udp sum ok] 0 [1a] PTR (QM)? _printopia._tcp.local. _printopia._tcp.local. PTR HisashiM-bM-^@M-^Ys MacBook Pro._printopia._tcp.local. (77)
 ^C
 19 packets captured
 208 packets received by filter
 0 packets dropped by kernel

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 20 Nov 2017 00:02:06 +0000
State-Changed-Why:
Submitter reports roy fixed this. Thanks for the update!


>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.