vhost: fix indirect descriptors table translation size
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 23 Jan 2018 08:51:29 +0000 (09:51 +0100)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 23 Apr 2018 14:04:30 +0000 (16:04 +0200)
commitc6ae7de0defc1ac4c9036a6a3395eb196422bbf7
tree3d59994e96cf94aa03e30043290f9e190d0293ec
parent91c6de7eb7ac19afbaa8c97f9bc66427b1022347
vhost: fix indirect descriptors table translation size

This patch fixes the size passed at the indirect descriptor
table translation time, which is the len field of the descriptor,
and not a single descriptor.

This issue has been assigned CVE-2018-1059.

Fixes: 62fdb8255ae7 ("vhost: use the guest IOVA to host VA helper")

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c