Re: [Qemu-devel] [PATCH] libvhost-user: Support across-memory-boundary access

2018-02-08 Thread Maxime Coquelin
On 01/18/2018 05:04 PM, Yongji Xie wrote: 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

[Qemu-devel] [PATCH] libvhost-user: Support across-memory-boundary access

2018-01-18 Thread Yongji Xie
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