linux/net/vmw_vsock
Stefano Garzarella ae6fcfbf5f vsock/virtio: discard packets if credit is not respected
If the remote peer doesn't respect the credit information
(buf_alloc, fwd_cnt), sending more data than it can send,
we should drop the packets to prevent a malicious peer
from using all of our memory.

This is patch follows the VIRTIO spec: "VIRTIO_VSOCK_OP_RW data
packets MUST only be transmitted when the peer has sufficient
free buffer space for the payload"

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-18 10:19:43 -07:00
..
af_vsock_tap.c
af_vsock.c vsock: Fix a lockdep warning in __vsock_release() 2019-10-01 21:23:35 -04:00
diag.c
hyperv_transport.c vsock: Fix a lockdep warning in __vsock_release() 2019-10-01 21:23:35 -04:00
Kconfig
Makefile
virtio_transport_common.c vsock/virtio: discard packets if credit is not respected 2019-10-18 10:19:43 -07:00
virtio_transport.c vsock/virtio: limit the memory used per-socket 2019-07-30 15:00:00 -07:00
vmci_transport_notify_qstate.c
vmci_transport_notify.c
vmci_transport_notify.h
vmci_transport.c
vmci_transport.h
vsock_addr.c