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] [xen-3.4-testing] kexec: Fix dodgy use of cpu_present_ma

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] kexec: Fix dodgy use of cpu_present_map protecting percpu data access.
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 May 2010 12:55:35 -0700
Delivery-date: Wed, 19 May 2010 12:56:49 -0700
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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1274298637 -3600
# Node ID 4b52d8aad101b7cafe60504dc5d733e15441d6a2
# Parent  d542f7954a63f0aa75b854fdb95304ac25b114d6
kexec: Fix dodgy use of cpu_present_map protecting percpu data access.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   21432:f71b641aa327
xen-unstable date:        Wed May 19 18:38:19 2010 +0100
---
 xen/common/kexec.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r d542f7954a63 -r 4b52d8aad101 xen/common/kexec.c
--- a/xen/common/kexec.c        Sat May 15 08:44:53 2010 +0100
+++ b/xen/common/kexec.c        Wed May 19 20:50:37 2010 +0100
@@ -172,7 +172,7 @@ static int kexec_get_cpu(xen_kexec_range
     int nr = range->nr;
     int nr_bytes = 0;
 
-    if ( nr < 0 || nr >= num_present_cpus() )
+    if ( nr < 0 || nr >= NR_CPUS || !cpu_present(nr) )
         return -EINVAL;
 
     nr_bytes += sizeof_note("CORE", sizeof(ELF_Prstatus));

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] kexec: Fix dodgy use of cpu_present_map protecting percpu data access., Xen patchbot-3.4-testing <=