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

[Xen-changelog] [linux-2.6.18-xen] x86: undo_limit_pages() must reset page count



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1321001481 -3600
# Node ID 97f927a1e3edba4c0b7f9d1ce8cf5577654d3a63
# Parent  2d7a321286c99098a59b6e12f0e448f0cb0d6cdd
x86: undo_limit_pages() must reset page count

... before calling __free_pages() as it is already being called in the
context of that or a similar function (which used put_page_testzero()
first or otherwise assumes the page count is zero).

Reported-by: Daniel Kiper <dkiper@xxxxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---


diff -r 2d7a321286c9 -r 97f927a1e3ed arch/i386/mm/hypervisor.c
--- a/arch/i386/mm/hypervisor.c Mon Oct 17 10:14:48 2011 +0200
+++ b/arch/i386/mm/hypervisor.c Fri Nov 11 09:51:21 2011 +0100
@@ -437,6 +437,7 @@
        BUG_ON(order > max_contig_order);
        xen_limit_pages_to_max_mfn(pages, order, 0);
        ClearPageForeign(pages);
+       init_page_count(pages);
        __free_pages(pages, order);
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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