From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Yongji Xie <elohimes@gmail.com>,
mst@redhat.com, marcandre.lureau@redhat.com
Cc: dgilbert@redhat.com, f4bug@amsat.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] libvhost-user: Support across-memory-boundary access
Date: Thu, 8 Feb 2018 17:38:27 +0100 [thread overview]
Message-ID: <811ef72e-a502-8d7b-8409-8eef5d51a98a@redhat.com> (raw)
In-Reply-To: <1516291445-4572-1-git-send-email-xieyongji@baidu.com>
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 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>
> ---
> contrib/libvhost-user/libvhost-user.c | 133 +++++++++++++++++++++++++++++----
> contrib/libvhost-user/libvhost-user.h | 3 +-
> 2 files changed, 122 insertions(+), 14 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Thanks,
Maxime
prev parent reply other threads:[~2018-02-08 16:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-18 16:04 [Qemu-devel] [PATCH] libvhost-user: Support across-memory-boundary access Yongji Xie
2018-02-08 16:38 ` Maxime Coquelin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=811ef72e-a502-8d7b-8409-8eef5d51a98a@redhat.com \
--to=maxime.coquelin@redhat.com \
--cc=dgilbert@redhat.com \
--cc=elohimes@gmail.com \
--cc=f4bug@amsat.org \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).