dhcpcd-discuss

Re: 7.1.0 kernel crash on FreeBSD r12.0

Athan Papadimitriou

Wed Jan 23 22:23:33 2019

On Wed, Jan 23, 2019 at 9:36 PM Roy Marples <roy@xxxxxxxxxxxx> wrote:

> On 23/01/2019 19:34, Athan Papadimitriou wrote:
> >
> > Στις Τετ, 23 Ιαν 2019 στις 21:26 ο χρήστης Roy Marples <roy@xxxxxxxxxxxx
> > <mailto:roy@xxxxxxxxxxxx>> έγραψε:
> >
> >     On 23/01/2019 18:45, Athan Papadimitriou wrote:
> >      > On Wed, Jan 23, 2019 at 3:49 PM Roy Marples <roy@xxxxxxxxxxxx
> >     <mailto:roy@xxxxxxxxxxxx>
> >      > <mailto:roy@xxxxxxxxxxxx <mailto:roy@xxxxxxxxxxxx>>> wrote:
> >      >     Can you try this patch please?
> >      >     diff --git a/src/if-bsd.c b/src/if-bsd.c
> >      >     index a5338624..820ecc9c 100644
> >      >     --- a/src/if-bsd.c
> >      >     +++ b/src/if-bsd.c
> >      >     @@ -501,7 +501,7 @@ if_route(unsigned char cmd, const struct
> >     rt *rt)
> >      >                           !sa_is_loopback(&rt->rt_gateway))
> >      >                       {
> >      >                               rtm->rtm_index = (unsigned
> >      >     short)rt->rt_ifp->index;
> >      >     -#ifdef __OpenBSD__
> >      >     +#if defined(__OpenBSD__) || defined(__FreeBSD__)
> >      >                               if (!gateway_unspec ||
> >      >     rt->rt_dest.sa_family!=AF_INET6)
> >      >        #endif
> >      >                               rtm->rtm_addrs |= RTA_IFP;
> >      >
> >      >     Roy
> >      >
> >      >
> >      > It works! Well done Roy!
> >      >
> >      > I will have it running for awhile and keep you informed if
> >     another issue
> >      > arise...
> >
> >     Could you please post a full debug log so we can see if it's a
> >     dhcpcd or
> >     FreeBSD error please? I suspect FreeBSD.
> >     Add this to /etc/dhcpcd.conf
> >
> >     debug
> >     logfile /var/log/dhcpcd.log
> >
> >     Restart dhcpcd, wait for it to finish and then post the logfile here.
> >
> >     Roy
> >
> >
> > Just to clarify do you mean a debug log of the original dhcpcd, before
> > patching or after that?
>
> Patched working dhcpcd-7.1.0 please.
>
> Roy
>

Hi Roy,

Sorry for the late response but I had to come to my office lab to test that.

Here is the debug log of patched 7.1.0

====================================
dhcpcd-7.1.0 starting
forking to background
forked to background, child pid 1203
ng0: executing `/usr/local/libexec/dhcpcd-run-hooks' PREINIT
ng0: executing `/usr/local/libexec/dhcpcd-run-hooks' CARRIER
DUID 00:04:3b:90:37:80:4f:79:10:18:81:6e:ae:b2:72:47:78:a7
ng0: IAID 6e:67:30:00
ng0: IA type 25 IAID 00:00:00:01
ng0: delaying IPv6 router solicitation for 0.2 seconds
ng0: reading lease `/var/db/dhcpcd/ng0.lease6'
ng0: soliciting a DHCPv6 lease
ng0: delaying SOLICIT6 (xid 0x8fe130), next in 1.9 seconds
bridge0: activating for delegation
bridge0: executing `/usr/local/libexec/dhcpcd-run-hooks' PREINIT
bridge0: carrier acquired
bridge0: interface updated
bridge0: executing `/usr/local/libexec/dhcpcd-run-hooks' CARRIER
bridge0: IAID 4d:96:8f:00
ng0: soliciting an IPv6 router
ng0: sending Router Solicitation
ng0: Router Advertisement from fe80::da67:d9ff:fe48:7a10
ng0: adding route to 2a02:587:12fe:223d::/64
ng0: adding default route via fe80::da67:d9ff:fe48:7a10
ng0: executing `/usr/local/libexec/dhcpcd-run-hooks' ROUTERADVERT
ng0: broadcasting SOLICIT6 (xid 0x8fe130), next in 1.1 seconds
ng0: ADV 2a02:587:122c:2800::/56 from fe80::da67:d9ff:fe48:7a10
ng0: broadcasting REQUEST6 (xid 0x5d127f), next in 1.1 seconds
ng0: REPLY6 received from fe80::da67:d9ff:fe48:7a10
ng0: renew in 43200, rebind in 69120, expire in 86400 seconds
lo0: adding reject route to 2a02:587:122c:2800::/56 via ::1
ng0: writing lease `/var/db/dhcpcd/ng0.lease6'
ng0: delegated prefix 2a02:587:122c:2800::/56
bridge0: adding address 2a02:587:122c:2800::1/64
bridge0: pltime 86400 seconds, vltime 86400 seconds
bridge0: waiting for DHCPv6 DAD to complete
bridge0: adding route to 2a02:587:122c:2800::/64
ng0: executing `/usr/local/libexec/dhcpcd-run-hooks' BOUND6
bridge0: DHCPv6 DAD completed
bridge0: executing `/usr/local/libexec/dhcpcd-run-hooks' DELEGATED6
====================================

Athan

Follow-Ups:
Re: 7.1.0 kernel crash on FreeBSD r12.0Roy Marples
References:
7.1.0 kernel crash on FreeBSD r12.0Athan Papadimitriou
Re: 7.1.0 kernel crash on FreeBSD r12.0Roy Marples
Re: 7.1.0 kernel crash on FreeBSD r12.0Athan Papadimitriou
Re: 7.1.0 kernel crash on FreeBSD r12.0Roy Marples
Re: 7.1.0 kernel crash on FreeBSD r12.0Athan Papadimitriou
Re: 7.1.0 kernel crash on FreeBSD r12.0Roy Marples
Re: 7.1.0 kernel crash on FreeBSD r12.0Athan Papadimitriou
Re: 7.1.0 kernel crash on FreeBSD r12.0Roy Marples
Archive administrator: postmaster@marples.name