qemu/contrib
Yongji Xie 293084a719 libvhost-user: Support across-memory-boundary access
The sg list/indirect descriptor table may be contigious
in GPA but not in HVA address space. But libvhost-user
wasn't aware of that. This would cause out-of-bounds
access. Even a malicious guest could use it to get
information from the vhost-user backend.

Introduce a plen parameter in vu_gpa_to_va() so we can
handle this case, returning the actual mapped length.

Signed-off-by: Yongji Xie <xieyongji@baidu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-02-13 18:25:48 +02:00
..
ivshmem-client Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
ivshmem-server Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
libvhost-user libvhost-user: Support across-memory-boundary access 2018-02-13 18:25:48 +02:00
systemd contrib: add systemd unit files 2017-12-20 22:29:26 +01:00
vhost-user-blk contrib/vhost-user-blk: introduce a vhost-user-blk sample application 2018-01-18 21:52:37 +02:00
vhost-user-scsi vhost-user-scsi: remove server_sock from VusDev 2017-10-10 23:31:09 +02:00