Skip to content

vsock/virtio: make the credit mechanism more robust

Stefano Garzarella kvm lkml netdev virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vsock/virtio: send a credit update when buffer size is changednet/vmw_vsock/virtio_transport_common.c+3 -00 replies
1/2vsock/virtio: send a credit update when buffer size is changednet/vmw_vsock/virtio_transport_common.c+3 -00 replies
2/2vsock/virtio: discard packets if credit is not respectednet/vmw_vsock/virtio_transport_common.c+11 -30 replies
2/2vsock/virtio: discard packets if credit is not respectednet/vmw_vsock/virtio_transport_common.c+11 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] vsock/virtio: make the credit mechanism more robust

This series makes the credit mechanism implemented in the virtio-vsock devices more robust.
Patch 1 sends an update to the remote peer when the buf_alloc change.
Patch 2 prevents a malicious peer (especially the guest) can consume all the memory of the other peer, discarding packets when the credit available is not respected.

Stefano Garzarella (2):
vsock/virtio: send a credit update when buffer size is changed vsock/virtio: discard packets if credit is not respected

 net/vmw_vsock/virtio_transport_common.c | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
Signature · 1 line
2.21.0