On 04.07.2018 16:05, Cy Schubert wrote: > Hi Matt, > > This is causing a panic of my gateway machine. Likely due to router > solicitations.
Hi,
probably in the last two chunks "inp" should be replaced with "last"
Index: udp6_usrreq.c
===================================================================
--- udp6_usrreq.c (revision 335934)
+++ udp6_usrreq.c (working copy)
@@ -387,7 +387,7 @@ udp6_input(struct mbuf **mp, int *offp, int proto)
if ((n = m_copym(m, 0, M_COPYALL, M_NOWAIT)) !=
NULL) {
INP_RLOCK(last);
- if (__predict_true(inp->inp_flags2 &
INP_FREED) == 0) {
+ if (__predict_true(last->inp_flags2 &
INP_FREED) == 0) {
UDP_PROBE(receive, NULL, last,
ip6,
last, uh);
if (udp6_append(last, n, off,
fromsa))
@@ -421,7 +421,7 @@ udp6_input(struct mbuf **mp, int *offp, int proto)
goto badheadlocked;
}
INP_RLOCK(last);
- if (__predict_true(inp->inp_flags2 & INP_FREED) == 0) {
+ if (__predict_true(last->inp_flags2 & INP_FREED) == 0) {
UDP_PROBE(receive, NULL, last, ip6, last, uh);
if (udp6_append(last, m, off, fromsa) == 0)
INP_RUNLOCK(last);
--
WBR, Andrey V. Elsukov
signature.asc
Description: OpenPGP digital signature
