From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: [PATCH] x86/32on64: zero-extend hypercall index before use in memory access (debug mode only) Date: Wed, 15 Dec 2010 10:50:09 +0000 Message-ID: <4D08AB71020000780002813F@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartC1ED8971.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartC1ED8971.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- a/xen/arch/x86/x86_64/compat/entry.S +++ b/xen/arch/x86/x86_64/compat/entry.S @@ -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 --=__PartC1ED8971.0__= Content-Type: text/plain; name="32on64-hypercall-debug.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="32on64-hypercall-debug.patch" Signed-off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/x8= 6_64/compat/entry.S=0A+++ b/xen/arch/x86/x86_64/compat/entry.S=0A@@ -25,7 = +25,8 @@ ENTRY(compat_hypercall)=0A pushq UREGS_rbx(%rsp); pushq = %rcx; pushq %rdx; pushq %rsi; pushq %rdi=0A pushq UREGS_rbp+5*8(%rs= p)=0A leaq compat_hypercall_args_table(%rip),%r10=0A- movq = $6,%rcx=0A+ movl %eax,%eax=0A+ movl $6,%ecx=0A = subb (%r10,%rax,1),%cl=0A movq %rsp,%rdi=0A movl = $0xDEADBEEF,%eax=0A --=__PartC1ED8971.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartC1ED8971.0__=--