Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2017 21:04:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ipfw@FreeBSD.org
Subject:   [Bug 220078] [patch] [panic] [ipfw] repeatable kernel panic due to unlocked INADDR_TO_IFP usage
Message-ID:  <bug-220078-7515-B9eQ1wCrwa@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-220078-7515@https.bugs.freebsd.org/bugzilla/>
References:  <bug-220078-7515@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=3D220078

--- Comment #10 from Cassiano Peixoto <peixoto.cassiano@gmail.com> ---
(In reply to Eugene Grosbein from comment #9)
mcast has been reject:

# patch < mcast.patch=20
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- sys/netinet/in_mcast.c.orig        2017-04-20 15:01:10.786840000 +0700
|+++ sys/netinet/in_mcast.c     2017-06-17 18:24:34.034823000 +0700
--------------------------
Patching file sys/netinet/in_mcast.c using Plan A...
Hunk #1 succeeded at 1340 (offset 2 lines).
Hunk #2 succeeded at 1378 (offset 2 lines).
Hunk #3 succeeded at 1878 (offset 2 lines).
Hunk #4 succeeded at 1895 (offset 2 lines).
Hunk #5 succeeded at 2229 (offset 2 lines).
Hunk #6 failed at 2288.
Hunk #7 succeeded at 2452 (offset 2 lines).
Hunk #8 succeeded at 2491 (offset 2 lines).
1 out of 8 hunks failed--saving rejects to sys/netinet/in_mcast.c.rej
done
Exit 1

# cat sys/netinet/in_mcast.c.rej
@@ -2283,9 +2288,11 @@
                 * XXX NOTE WELL: The RFC 3678 API is preferred because
                 * using an IPv4 address as a key is racy.
                 */
-               if (!in_nullhost(mreqs.imr_interface))
+               if (!in_nullhost(mreqs.imr_interface)) {
+                       IN_IFADDR_RLOCK(&in_ifa_tracker);
                        INADDR_TO_IFP(mreqs.imr_interface, ifp);
-
+                       IN_IFADDR_RUNLOCK(&in_ifa_tracker);
+               }
                CTR3(KTR_IGMPV3, "%s: imr_interface =3D 0x%08x, ifp =3D %p",
                    __func__, ntohl(mreqs.imr_interface.s_addr), ifp);

--=20
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-220078-7515-B9eQ1wCrwa>