vhost: deprecate unsafe GPA translation API
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 14 Mar 2018 16:31:25 +0000 (17:31 +0100)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 23 Apr 2018 15:12:13 +0000 (17:12 +0200)
commit9553e6e408883b3677e208dc66049bcd7f758529
tree3a3b0a217018ad1a311bfc375c0e5de157959c70
parent0aee2428419f37d8f85e64e0d73311843b19676e
vhost: deprecate unsafe GPA translation API

This patch marks rte_vhost_gpa_to_vva() as deprecated because
it is unsafe. Application relying on this API should move
to the new rte_vhost_va_from_guest_pa() API, and check
returned length to avoid out-of-bound accesses.

This issue has been assigned CVE-2018-1059.

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