oasis-tcs / virtio-spec

OASIS Virtual I/O Device TC: Source code for the VIRTIO (Virtual I/O) Specification maintained by the OASIS Virtual I/O Device (VIRTIO) Technical Committee
https://github.com/oasis-tcs/virtio-spec
Other
233 stars 70 forks source link

virtio-vsock: add max payload size config field #140

Open lauralt opened 2 years ago

lauralt commented 2 years ago

Added a new field to the vsock device config space that is limiting the size of the packet payload. This way the driver is not allowed to allocate huge buffers, and potentially fill up the entire memory. Also defined a new feature bit for this, VIRTIO_VSOCK_F_SIZE_MAX, in order to keep backwards compatibility.

https://lists.oasis-open.org/archives/virtio-comment/202206/msg00030.html

cohuck commented 2 years ago

BALLOT CREATED AT URL: https://www.oasis-open.org/committees/ballot.php?id=3703