Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177882071
D36794.1795506291.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
399 B
Referenced Files
None
Subscribers
None
D36794.1795506291.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
Tue, Nov 24, 7:44 AM (2 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41950188
Default Alt Text
D36794.1795506291.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