[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0b3b5f02-9492-4569-b2a0-190b95b43c31@linux.ibm.com>
Date: Thu, 22 Feb 2024 12:30:09 +0100
From: Janosch Frank <frankja@...ux.ibm.com>
To: Nina Schoetterl-Glausch <nsg@...ux.ibm.com>,
Claudio Imbrenda <imbrenda@...ux.ibm.com>,
Paolo Bonzini <pbonzini@...hat.com>, Shuah Khan <shuah@...nel.org>,
Christian Borntraeger <borntraeger@...ux.ibm.com>
Cc: David Hildenbrand <david@...hat.com>, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org
Subject: Re: [PATCH v2] KVM: s390: selftest: memop: Fix undefined behavior
On 1/11/24 10:48, Nina Schoetterl-Glausch wrote:
> If an integer's type has x bits, shifting the integer left by x or more
> is undefined behavior.
> This can happen in the rotate function when attempting to do a rotation
> of the whole value by 0.
>
> Fixes: 0dd714bfd200 ("KVM: s390: selftest: memop: Add cmpxchg tests")
> Signed-off-by: Nina Schoetterl-Glausch <nsg@...ux.ibm.com>
Acked-by: Janosch Frank <frankja@...ux.ibm.com>
Powered by blists - more mailing lists