Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146935141
D24821.id71684.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
839 B
Referenced Files
None
Subscribers
None
D24821.id71684.diff
View Options
Index: sys/netinet6/nd6.c
===================================================================
--- sys/netinet6/nd6.c
+++ sys/netinet6/nd6.c
@@ -821,9 +821,27 @@
clear_llinfo_pqueue(ln);
}
nd6_free(&ln, 0);
- if (m != NULL)
- icmp6_error2(m, ICMP6_DST_UNREACH,
- ICMP6_DST_UNREACH_ADDR, 0, ifp);
+ if (m != NULL) {
+ struct mbuf *n = m;
+
+ /*
+ * if there are any ummapped mbufs, we
+ * must free them, rather than using
+ * them for an ICMP, as they cannot be
+ * checksummed.
+ */
+ while (NULL != (n = n->m_next)) {
+ if (n->m_flags & M_EXTPG)
+ break;
+ }
+ if (n != NULL) {
+ m_freem(m);
+ m = NULL;
+ } else {
+ icmp6_error2(m, ICMP6_DST_UNREACH,
+ ICMP6_DST_UNREACH_ADDR, 0, ifp);
+ }
+ }
}
break;
case ND6_LLINFO_REACHABLE:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 7, 10:06 PM (8 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29383056
Default Alt Text
D24821.id71684.diff (839 B)
Attached To
Mode
D24821: IPv6: Fix a panic in the nd6 code with unmapped mbufs.
Attached
Detach File
Event Timeline
Log In to Comment