diff options
| author | 2026-09-23 08:51:07 -0700 | |
|---|---|---|
| committer | 2026-09-30 06:40:47 -0700 | |
| commit | 12e0d427c335f6f140087def6b2002419ee5f6b0 (patch) | |
| tree | 38a7925b7cd247c841b28923406672dbdc4e6383 /scripts/Makefile.thinlto | |
| parent | KVM: SVM: Add paranoid helper for checking if vCPU is AVIC-addressable (diff) | |
KVM: SVM: Use "is AVIC-addressable" helper to sanity check load()/put()
Use avic_is_addressable_vcpu() instead of open coding a check on the bounds
of the allocated table for the sanity checks when loading/putting AVIC
state for a vCPU. If KVM botches the allocation, then KVM will already
have performed an OOB write in avic_init_backing_page(), i.e. being super
paranoid in load()/put() doesn't provide meaningful protection in practice.
Cc: Naveen N Rao (AMD) <naveen@kernel.org>
Reviewed-by: Naveen N Rao (AMD) <naveen@kernel.org>
Link: https://patch.msgid.link/20260923155108.1550622-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
