Spdk/lib/vhost
Dariusz Stojaczyk 024e0e9095 vhost: check against virtio descriptor table overflow
Also squashed function has_next_desc
into get_next_desc to simplify the
code.

We can't just mask indexes with
(desc_table_size - 1), since in
indirect descriptors case
desc_table_size might not be a
power of 2.

Change-Id: I8053b0e37c553548d76c7a9cfe6b4dbc11c28cfc
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/373744
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-10-09 14:09:00 -04:00
..
rte_vhost rte_vhost: fix numa_realloc() copy size 2017-09-07 18:02:09 -04:00
Makefile env: Automatically register new memory with the IOMMU 2017-09-01 15:25:24 -04:00
test_plan.md test/vhost: add vhost with lvol backends test 2017-09-20 12:53:28 -04:00
vhost_blk.c vhost: check against virtio descriptor table overflow 2017-10-09 14:09:00 -04:00
vhost_internal.h vhost: check against virtio descriptor table overflow 2017-10-09 14:09:00 -04:00
vhost_rpc.c vhost/rpc: replace strerror with spdk_strerror_r 2017-10-06 17:47:42 -04:00
vhost_scsi.c vhost: check against virtio descriptor table overflow 2017-10-09 14:09:00 -04:00
vhost.c vhost: check against virtio descriptor table overflow 2017-10-09 14:09:00 -04:00