[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.2-testing] x86: compat_show_guest_stack() should not truncate MFN
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1357725196 -3600 # Node ID 3444f03cf52d91e59b9cdcf7478f8dc39273f49d # Parent b2b486d4331f6b3bb43bda8fc62b6a9b32d7b8ba x86: compat_show_guest_stack() should not truncate MFN Re-using "addr" here was a mistake, as it is a 32-bit quantity. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> xen-unstable changeset: 26332:8e942f2f3b45 xen-unstable date: Mon Jan 7 12:28:29 UTC 2013 --- diff -r b2b486d4331f -r 3444f03cf52d xen/arch/x86/x86_64/compat/traps.c --- a/xen/arch/x86/x86_64/compat/traps.c Wed Jan 09 10:51:54 2013 +0100 +++ b/xen/arch/x86/x86_64/compat/traps.c Wed Jan 09 10:53:16 2013 +0100 @@ -20,11 +20,12 @@ void compat_show_guest_stack(struct vcpu if ( v != current ) { struct vcpu *vcpu; + unsigned long mfn; ASSERT(guest_kernel_mode(v, regs)); - addr = read_cr3() >> PAGE_SHIFT; + mfn = read_cr3() >> PAGE_SHIFT; for_each_vcpu( v->domain, vcpu ) - if ( pagetable_get_pfn(vcpu->arch.guest_table) == addr ) + if ( pagetable_get_pfn(vcpu->arch.guest_table) == mfn ) break; if ( !vcpu ) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |