lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <vmm7ywopj3jearmgibwi7sqq23aomskkgjv5zv5jyft7wxek6n@5kikxu6mfscl>
Date: Mon, 12 Jan 2026 20:51:08 +0000
From: Yosry Ahmed <yosry.ahmed@...ux.dev>
To: Kevin Cheng <chengkev@...gle.com>
Cc: seanjc@...gle.com, pbonzini@...hat.com, kvm@...r.kernel.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH V2 3/5] KVM: SVM: Inject #UD for INVLPGA if EFER.SVME=0

On Mon, Jan 12, 2026 at 05:45:33PM +0000, Kevin Cheng wrote:
> INVLPGA should cause a #UD when EFER.SVME is not set. Add a check to
> properly inject #UD when EFER.SVME=0.
> 
> Signed-off-by: Kevin Cheng <chengkev@...gle.com>

Reviewed-by: Yosry Ahmed <yosry.ahmed@...ux.dev>

> ---
>  arch/x86/kvm/svm/svm.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
> index 557c84a060fc6..92a2faff1ccc8 100644
> --- a/arch/x86/kvm/svm/svm.c
> +++ b/arch/x86/kvm/svm/svm.c
> @@ -2306,6 +2306,9 @@ static int invlpga_interception(struct kvm_vcpu *vcpu)
>  	gva_t gva = kvm_rax_read(vcpu);
>  	u32 asid = kvm_rcx_read(vcpu);
>  
> +	if (nested_svm_check_permissions(vcpu))
> +		return 1;
> +
>  	/* FIXME: Handle an address size prefix. */
>  	if (!is_long_mode(vcpu))
>  		gva = (u32)gva;
> -- 
> 2.52.0.457.g6b5491de43-goog
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ