vhost/crypto: move to safe GPA translation API
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 19 Apr 2018 08:52:33 +0000 (10:52 +0200)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 23 Apr 2018 15:12:13 +0000 (17:12 +0200)
commit0aee2428419f37d8f85e64e0d73311843b19676e
treed0808ee9c14b0f4c80107e88923db646511d4e6e
parenta3258d299378e33609409b36aebd987bc15033ea
vhost/crypto: move to safe GPA translation API

This patch uses the new rte_vhost_va_from_guest_pa() API
to ensure all the descriptor buffer is mapped contiguously
in the application virtual address space.

It does not handle buffers discontiguous in host virtual
address space, but only return an error.

This issue has been assigned CVE-2018-1059.

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