Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175525281
D60225.id188366.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
572 B
Referenced Files
None
Subscribers
None
D60225.id188366.diff
View Options
diff --git a/usr.sbin/bhyve/pci_e82545.c b/usr.sbin/bhyve/pci_e82545.c
--- a/usr.sbin/bhyve/pci_e82545.c
+++ b/usr.sbin/bhyve/pci_e82545.c
@@ -881,6 +881,16 @@
goto done;
}
+ /*
+ * Drop a frame longer than the guest allows, as the hardware
+ * does, even if the buffers have room for it.
+ */
+ if (len > maxpktsz - ETHER_CRC_LEN) {
+ DPRINTF("oversize packet (%zd bytes) dropped", len);
+ n = 0;
+ continue;
+ }
+
/*
* Adjust the packet length based on whether the CRC needs
* to be stripped or if the packet is less than the minimum
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 12, 11:22 AM (11 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40116537
Default Alt Text
D60225.id188366.diff (572 B)
Attached To
Mode
D60225: bhyve: e82545: drop frames that are too long for the guest
Attached
Detach File
Event Timeline
Log In to Comment