vhost: introduce safe API for GPA translation
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 23 Jan 2018 13:37:50 +0000 (14:37 +0100)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 23 Apr 2018 14:04:30 +0000 (16:04 +0200)
commit41333fba5b98945b8051e7b48f8fe47432cdd356
treea21f8448757f744623ca5ee1e2b284ddd84c59c4
parent070aceda33ac820ce78e1552ddf6e2b0d7d127eb
vhost: introduce safe API for GPA translation

This new rte_vhost_va_from_guest_pa API takes an extra len
parameter, used to specify the size of the range to be mapped.
Effective mapped range is returned via len parameter.

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/rte_vhost.h
lib/librte_vhost/rte_vhost_version.map
lib/librte_vhost/vhost.h