[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] VMX: values written to MSR_IA32_SYSENTER_E[IS]P should be canonical



> From: Jan Beulich [mailto:JBeulich@xxxxxxxx]
> Sent: Thursday, October 30, 2014 10:41 PM
> 
> A recent KVM change by Nadav Amit <namit@xxxxxxxxxxxxxxxxx> helped spot
> that we have the same issue as they did.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> Reviewed-by: Tim Deegan <tim@xxxxxxx>

Acked-by: Kevin Tian <kevin.tian@xxxxxxxxx>

> 
> --- a/xen/arch/x86/hvm/vmx/vmx.c
> +++ b/xen/arch/x86/hvm/vmx/vmx.c
> @@ -2273,9 +2273,13 @@ static int vmx_msr_write_intercept(unsig
>          __vmwrite(GUEST_SYSENTER_CS, msr_content);
>          break;
>      case MSR_IA32_SYSENTER_ESP:
> +        if ( !is_canonical_address(msr_content) )
> +            goto gp_fault;
>          __vmwrite(GUEST_SYSENTER_ESP, msr_content);
>          break;
>      case MSR_IA32_SYSENTER_EIP:
> +        if ( !is_canonical_address(msr_content) )
> +            goto gp_fault;
>          __vmwrite(GUEST_SYSENTER_EIP, msr_content);
>          break;
>      case MSR_IA32_DEBUGCTLMSR: {
> 
> 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.