Spdk/lib/vhost
Darek Stojaczyk 4d74fad8b5 vhost: fail I/Os with payload length = 0
We assumed the second descriptor in an I/O descriptor
chain will always point to a payload buffer, but in case
there is no payload, the second descriptor will point to
a response buffer. The vhost code doesn't provide proper
checks to handle such case, so to avoid various errors
down the stack, we just fail all requests with no
payload.

Change-Id: I6785c2843d6db4fc17e68e03562c2a1530bb469b
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/437187
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: <dstepanov.src@gmail.com>
2019-01-28 18:54:52 +00:00
..
rte_vhost vhost: do not close a closed connfd 2019-01-16 05:11:58 +00:00
Makefile vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_blk.c vhost: fail I/Os with payload length = 0 2019-01-28 18:54:52 +00:00
vhost_internal.h vhost: move lcore management to the device backend 2019-01-25 09:28:42 +00:00
vhost_nvme.c vhost: move lcore management to the device backend 2019-01-25 09:28:42 +00:00
vhost_rpc.c vhost_nvme/rpc: free partially decoded request 2019-01-22 01:09:59 +00:00
vhost_scsi.c vhost: assert to_scsi_dev and to_blk_dev returns 2019-01-25 19:47:23 +00:00
vhost.c vhost: setup iovs even for empty descriptors 2019-01-28 18:54:52 +00:00