Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153994093
D7753.id.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.id.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
Sun, Apr 26, 7:53 AM (2 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32090163
Default Alt Text
D7753.id.diff (503 B)
Attached To
Mode
D7753: hyperv/hn: Stringent NVS notification length check.
Attached
Detach File
Event Timeline
Log In to Comment