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

Re: [PATCH v1 11/21] hw/i386/kvm/xen: Don't leak gnttab handle on reset



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

xen_xenstore_reset() and xen_primary_console_reset() open a new gnttab
handle without closing the previous one, leaking it and its mappings on
each guest soft reset. Close the old handle first; closing unmaps any
remaining refs.

Fixes: d05864d23b1a ("hw/xen: Map guest XENSTORE_PFN grant in emulated 
Xenstore")
Fixes: a72ccc7fc449 ("hw/xen: add support for Xen primary console in emulated 
mode")
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_primary_console.c | 3 +++
  hw/i386/kvm/xen_xenstore.c        | 3 +++
  2 files changed, 6 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®.