[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <171754270332.2777568.8736329166014206290.b4-ty@google.com>
Date: Tue, 4 Jun 2024 16:29:17 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Sean Christopherson <seanjc@...gle.com>, Paolo Bonzini <pbonzini@...hat.com>,
Shuah Khan <shuah@...nel.org>, kvm@...r.kernel.org, linux-kselftest@...r.kernel.org,
Colin Ian King <colin.i.king@...il.com>
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next][V2] selftests: kvm: fix shift of 32 bit unsigned
int more than 32 bits
On Thu, 23 May 2024 16:41:02 +0100, Colin Ian King wrote:
> Currrentl a 32 bit 1u value is being shifted more than 32 bits causing
> overflow and incorrect checking of bits 32-63. Fix this by using the
> BIT_ULL macro for shifting bits.
>
> Detected by cppcheck:
> sev_init2_tests.c:108:34: error: Shifting 32-bit value by 63 bits is
> undefined behaviour [shiftTooManyBits]
>
> [...]
Applied to kvm-x86 fixes, thanks!
[1/1] selftests: kvm: fix shift of 32 bit unsigned int more than 32 bits
https://github.com/kvm-x86/linux/commit/9a68cefe9f05
--
https://github.com/kvm-x86/linux/tree/next
Powered by blists - more mailing lists