Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160494857
D7753.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
503 B
Referenced Files
None
Subscribers
None
D7753.diff
View Options
Index: head/sys/dev/hyperv/netvsc/hv_net_vsc.c
===================================================================
--- head/sys/dev/hyperv/netvsc/hv_net_vsc.c
+++ head/sys/dev/hyperv/netvsc/hv_net_vsc.c
@@ -816,7 +816,12 @@
{
const struct hn_nvs_hdr *hdr;
+ if (VMBUS_CHANPKT_DATALEN(pkt) < sizeof(*hdr)) {
+ if_printf(sc->hn_ifp, "invalid nvs notify\n");
+ return;
+ }
hdr = VMBUS_CHANPKT_CONST_DATA(pkt);
+
if (hdr->nvs_type == HN_NVS_TYPE_TXTBL_NOTE) {
/* Useless; ignore */
return;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 26, 2:37 AM (16 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34337662
Default Alt Text
D7753.diff (503 B)
Attached To
Mode
D7753: hyperv/hn: Stringent NVS notification length check.
Attached
Detach File
Event Timeline
Log In to Comment