From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH] x86/32on64: zero-extend hypercall index before use in memory access (debug mode only) Date: Wed, 15 Dec 2010 14:21:11 -0800 Message-ID: <4D093F57.7030809@goop.org> References: <4D08AB71020000780002813F@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D08AB71020000780002813F@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 12/15/2010 02:50 AM, Jan Beulich wrote: > 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 Is the second line part of the fix, or just a drive-by tweak? J