lkml.org 
[lkml]   [2019]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net 0/2] vsock/virtio: make the credit mechanism more robust
Date
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(-)

--
2.21.0

\
 
 \ /
  Last update: 2019-10-17 14:44    [W:0.033 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site