Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161680026
D36794.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
399 B
Referenced Files
None
Subscribers
None
D36794.diff
View Options
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -2849,6 +2849,12 @@
return (ENOENT);
ifp = sc->vxl_ifp;
+ if (m->m_len < ETHER_HDR_LEN &&
+ (m = m_pullup(m, ETHER_HDR_LEN)) == NULL) {
+ *m0 = NULL;
+ error = ENOBUFS;
+ goto out;
+ }
eh = mtod(m, struct ether_header *);
if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 6, 9:44 PM (17 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34770295
Default Alt Text
D36794.diff (399 B)
Attached To
Mode
D36794: if_vxlan(4): Check the size of data available in mbuf before using them
Attached
Detach File
Event Timeline
Log In to Comment