WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] x86: undo_limit_pages() must reset page count
From: Xen patchbot-linux-2.6.18-xen <patchbot@xxxxxxx>
Date: Fri, 11 Nov 2011 09:11:06 +0000
Delivery-date: Fri, 11 Nov 2011 01:11:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] x86: undo_limit_pages() must reset page count, Xen patchbot-linux-2 . 6 . 18-xen <=