[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 06/21] hw/xen: Validate grant copy segments against the page size



On 24/11/2026 16:22, David Woodhouse wrote:
From: David Woodhouse <dwmw@xxxxxxxxxxxx>

Reject a grant copy segment whose offset and length reach beyond the
granted page, matching Xen's GNTST_bad_copy_arg behaviour, in both the
emulated gnttab backend and the libxengnttab fallback. The only current
caller, xen-block, already bounds its segments to a single page.

Fixes: b08d88e30f06 ("hw/xen: Add emulated implementation of grant table 
operations")
Fixes: c412ba47b2ec ("hw/xen: Add gnttab operations to allow redirection to internal 
emulation")
Reported-by: Hui Peng <benquike@xxxxxxxxx>
Closes: https://gitlab.com/qemu-project/qemu/-/work_items/4525
Signed-off-by: David Woodhouse <dwmw@xxxxxxxxxxxx>
---
  hw/i386/kvm/xen_gnttab.c | 10 ++++++++++
  hw/xen/xen-operations.c  | 11 +++++++++++
  2 files changed, 21 insertions(+)

Reviewed-by: Paul Durrant <paul@xxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.