]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/xenbus: Don't leak memory when unmapping the ring on HVM backend
authorJulien Grall <julien.grall@citrix.com>
Mon, 10 Aug 2015 18:10:38 +0000 (19:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:07:40 +0000 (09:07 -0700)
commiteb63f85afac03722b2229d61c39fec3083fcfa53
treee2e97615df747d994054d59cae0a81c69c5cc22f
parent0733a428056a18a6fbb1b57664a98cee4761d634
xen/xenbus: Don't leak memory when unmapping the ring on HVM backend

commit c22fe519e7e2b94ad173e0ea3b89c1a7d8be8d00 upstream.

The commit ccc9d90a9a8b5c4ad7e9708ec41f75ff9e98d61d "xenbus_client:
Extend interface to support multi-page ring" removes the call to
free_xenballooned_pages() in xenbus_unmap_ring_vfree_hvm(), leaking a
page for every shared ring.

Only with backends running in HVM domains were affected.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/xenbus/xenbus_client.c