Re: [PATCH] x86/svm: Avoid sign extension of SVM_EVTINJ_VALID in 64-bit expressions

From: Sean Christopherson

Date: Mon Sep 21 2026 - 10:22:45 EST


On Tue, 08 Sep 2026 05:37:22 +0000, Chaithanya Lagisetty wrote:
> SVM_EVTINJ_VALID is defined as (1 << 31), i.e. as an int with the sign
> bit set. Whenever it is used in a 64-bit expression the int is sign
> extended, so bits 63:32 end up set as well. Two 64-bit users are
> affected.
>
> verify_exception_info() uses the macro as a mask against a 64-bit value
> when it sanity checks hypervisor supplied exception information:
>
> [...]

Applied to kvm-x86 svm, thanks!

[1/1] x86/svm: Avoid sign extension of SVM_EVTINJ_VALID in 64-bit expressions
https://github.com/kvm-x86/linux/commit/c5991239b148

--
https://github.com/kvm-x86/linux/tree/next