cloud-hypervisor/vm-virtio
Rob Bradford 6c06420a11 vm-virtio: net: Fix out-of-range slice panic when under load
The numbr of bytes read was being incorrectly increased by the potential
length of the end of the sliced data rather than the number of bytes
that was in the range. This caused a panic when the the network was
under load by using iperf.

It's important to note that in the Firecracker code base the function
that read_slice() returns the number of bytes read which is used to
increment this counter. The VM memory version however only returns the
empty unit "()".

Fixes: #166

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-08-12 15:35:11 +01:00
..
src vm-virtio: net: Fix out-of-range slice panic when under load 2019-08-12 15:35:11 +01:00
Cargo.toml build: Bulk update dependencies 2019-08-02 15:22:37 +02:00