Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2016 11:21:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 210943] Page fault in ip6_setpktopts when syncthing is started with pflog loaded
Message-ID:  <bug-210943-8-eB8KRRyn2M@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210943-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210943-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210943

--- Comment #2 from Andrey V. Elsukov <ae@FreeBSD.org> ---
I prefer this patch, can you test?

--- ip6_output.c        (revision 302315)
+++ ip6_output.c        (working copy)
@@ -2659,8 +2659,8 @@ ip6_setpktopt(int optname, u_char *buf, int len, s
                        if (ifp == NULL)
                                return (ENXIO);
                }
-               if (ifp != NULL && (
-                   ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED))
+               if (ifp != NULL && (ifp->if_afdata[AF_INET6] == NULL ||
+                   (ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED) != 0))
                        return (ENETDOWN);

                if (ifp != NULL &&

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210943-8-eB8KRRyn2M>