Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2021 12:18:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 257302] net/syncthing: Panic in in6_getmulti at /usr/src/sys/netinet6/in6_mcast.c:451
Message-ID:  <bug-257302-7501-RySx0Fzjm6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-257302-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257302-7501@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=3D257302

Andrey V. Elsukov <ae@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ae@FreeBSD.org

--- Comment #5 from Andrey V. Elsukov <ae@FreeBSD.org> ---
(In reply to Alex Vasylenko from comment #0)
>Jul 20 13:43:02 foam kernel: fault virtual address      =3D 0x28
>Jul 20 13:43:02 foam kernel: fault code         =3D supervisor read data, =
page not present
>#9  0xffffffff80e04a0e in in6_getmulti (ifp=3D<optimized out>, group=3D0xf=
ffffe005c3cf118, pinm=3D<optimized out>) at /usr/src/sys/netinet6/in6_mcast=
.c:451

It is NULL pointer dereference in the line:
inm->in6m_mli =3D MLD_IFINFO(ifp);

MLD_IFINFO() macro tries to dereference if_afdata[AF_INET6]->mld_info. 0x28
corresponds to mld_ifinfo field:

(kgdb) p/x offsetof(struct in6_ifextra, mld_ifinfo)
$1 =3D 0x28

ipfw0 interface does not have properly initialized if_afdata since IFT_PFLOG
interfaces do not support IPv6 (look at in6_domifattach()).

Thus I think we need to add somewhere the check that adapter doesn't support
IPv6 multicasts.

--=20
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257302-7501-RySx0Fzjm6>