aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorYongji Xie <elohimes@gmail.com>2018-01-19 00:04:05 +0800
committerMichael S. Tsirkin <mst@redhat.com>2018-02-13 18:25:48 +0200
commit293084a7196b1d7781b6fe19b24e85eb8b7f4de0 (patch)
tree9c3adca62a86fca93bb70d452e9193881e366897 /hw
parentbb102d1da15a97c6750a4f96810cf15713be2bd6 (diff)
downloadqemu-293084a7196b1d7781b6fe19b24e85eb8b7f4de0.zip
qemu-293084a7196b1d7781b6fe19b24e85eb8b7f4de0.tar.gz
qemu-293084a7196b1d7781b6fe19b24e85eb8b7f4de0.tar.bz2
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>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions