numam-dpdk/examples/vhost_scsi
Maxime Coquelin a3258d2993 examples/vhost_scsi: 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.

As the application did not checked return of previous API,
this patch just print an error if the buffer address isn't in
the vhost memory regions or if it is scattered. Ideally, it
should handle scattered buffers gracefully.

This issue has been assigned CVE-2018-1059.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-04-23 17:12:13 +02:00
..
Makefile examples: enable linking both static and shared 2018-01-30 21:58:59 +01:00
meson.build examples: disable unsupported examples on BSD build 2018-04-17 16:09:43 +02:00
scsi_spec.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
scsi.c examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
vhost_scsi.c examples/vhost_scsi: move to safe GPA translation API 2018-04-23 17:12:13 +02:00
vhost_scsi.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00