linux/drivers/vhost
Andrey Smetanin 1f5d2e3bab vhost_net: revert upend_idx only on retriable error
Fix possible virtqueue used buffers leak and corresponding stuck
in case of temporary -EIO from sendmsg() which is produced by
tun driver while backend device is not up.

In case of no-retriable error and zcopy do not revert upend_idx
to pass packet data (that is update used_idx in corresponding
vhost_zerocopy_signal_used()) as if packet data has been
transferred successfully.

v2: set vq->heads[ubuf->desc].len equal to VHOST_DMA_DONE_LEN
in case of fake successful transmit.

Signed-off-by: Andrey Smetanin <asmetanin@yandex-team.ru>
Message-Id: <20230424204411.24888-1-asmetanin@yandex-team.ru>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Andrey Smetanin <asmetanin@yandex-team.ru>
Acked-by: Jason Wang <jasowang@redhat.com>
2023-06-08 15:43:08 -04:00
..
iotlb.c vhost_iotlb: split out IOTLB initialization 2022-05-31 12:44:28 -04:00
Kconfig vhost_task: Allow vhost layer to use copy_process 2023-03-23 12:45:36 +01:00
Makefile
net.c vhost_net: revert upend_idx only on retriable error 2023-06-08 15:43:08 -04:00
scsi.c virtio,vhost,vdpa: features, fixes, cleanups 2023-04-27 17:05:34 -07:00
test.c vhost-test: remove meaningless debug info 2023-02-20 19:26:58 -05:00
test.h
vdpa.c vhost_vdpa: tell vqs about the negotiated 2023-06-08 15:43:08 -04:00
vhost.c vhost: use kzalloc() instead of kmalloc() followed by memset() 2023-06-07 16:22:30 -04:00
vhost.h vhost: use vhost_tasks for worker threads 2023-03-23 12:45:37 +01:00
vringh.c vringh: support VA with iotlb 2023-04-21 03:02:33 -04:00
vsock.c vsock: support sockmap 2023-03-29 08:19:38 +01:00