vhost: add support for non-contiguous indirect descs tables
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 24 Jan 2018 10:27:25 +0000 (11:27 +0100)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 23 Apr 2018 14:04:30 +0000 (16:04 +0200)
commitd0c24508e1f7173612dc9ebc5b36f417284568d7
tree71b05a6206e750c0553813283d128559445d4f42
parent30920b1e2b157328f991ac595e20dbebc31bbb89
vhost: add support for non-contiguous indirect descs tables

This patch adds support for non-contiguous indirect descriptor
tables in VA space.

When it happens, which is unlikely, a table is allocated and the
non-contiguous content is copied into it.

This issue has been assigned CVE-2018-1059.

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