[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/32on64: zero-extend hypercall index before use in memory access (debug mode only)
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1292415031 0 # Node ID d8279118b4bbb3bb3689b9c20abb25d0c09e2b69 # Parent 20c65aa19075b1a696adb56325827412596ac0d4 x86/32on64: zero-extend hypercall index before use in memory access (debug mode only) Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- xen/arch/x86/x86_64/compat/entry.S | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r 20c65aa19075 -r d8279118b4bb xen/arch/x86/x86_64/compat/entry.S --- a/xen/arch/x86/x86_64/compat/entry.S Wed Dec 15 12:09:41 2010 +0000 +++ b/xen/arch/x86/x86_64/compat/entry.S Wed Dec 15 12:10:31 2010 +0000 @@ -25,7 +25,8 @@ ENTRY(compat_hypercall) pushq UREGS_rbx(%rsp); pushq %rcx; pushq %rdx; pushq %rsi; pushq %rdi pushq UREGS_rbp+5*8(%rsp) leaq compat_hypercall_args_table(%rip),%r10 - movq $6,%rcx + movl %eax,%eax + movl $6,%ecx subb (%r10,%rax,1),%cl movq %rsp,%rdi movl $0xDEADBEEF,%eax _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |