examples/vhost: move to safe GPA translation API
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 13 Mar 2018 18:43:48 +0000 (19:43 +0100)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 23 Apr 2018 15:12:13 +0000 (17:12 +0200)
commit82c93a567d3b987f9a93909e2087432450680a63
treeecdcb166245b5f93c288c78ede6dac1d5b735adf
parentfb3815cc614dc754a96e5933165a2ded66b87164
examples/vhost: move to safe GPA translation API

This patch uses the new rte_vhost_va_from_guest_pa() API
to ensure the application doesn't perform out-of-bound
accesses either because of a malicious guest providing an
incorrect descriptor length, or because the buffer is
contiguous in guest physical address space but not in the
host process virtual address space.

This issue has been assigned CVE-2018-1059.

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