svn commit: r335919 - head/sys/netinet6

Andrey V. Elsukov bu7cher at yandex.ru
Wed Jul 4 13:34:35 UTC 2018


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20180704/e7a8a66d/attachment.sig>


More information about the svn-src-head mailing list