[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADrL8HXQBfT2MLUEW+0w4P0weCjCOWdDpp3kSu5uta4-vtXn2Q@mail.gmail.com>
Date: Thu, 10 Jul 2025 17:29:18 -0700
From: James Houghton <jthoughton@...gle.com>
To: Paolo Bonzini <pbonzini@...hat.com>, Sean Christopherson <seanjc@...gle.com>
Cc: Venkatesh Srinivas <venkateshs@...gle.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] KVM: selftests: Fix signedness issue with vCPU mmap size check
On Thu, Jul 10, 2025 at 5:17 PM James Houghton <jthoughton@...gle.com> wrote:
>
> Check that the return value of KVM_GET_VCPU_MMAP_SIZE is non-negative
> before comparing with sizeof(vcpu_run). If KVM_GET_VCPU_MMAP_SIZE fails,
> it will return -1, and `-1 > sizeof(vcpu_run)` is true, so the ASSERT
> passes.
:%s/vcpu_run/kvm_run/
Powered by blists - more mailing lists