aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorMathias Krause <minipli@grsecurity.net>2024-06-14 22:28:56 +0200
committerSean Christopherson <seanjc@google.com>2024-06-18 08:59:36 -0700
commit7c305d5118e67d1773158304f1d5128949aea726 (patch)
tree85c41976d7747608f05f8a916888493a8aa38e90 /scripts/generate_rust_analyzer.py
parentKVM: Reject overly excessive IDs in KVM_CREATE_VCPU (diff)
downloadlinux-rng-7c305d5118e67d1773158304f1d5128949aea726.tar.xz
linux-rng-7c305d5118e67d1773158304f1d5128949aea726.zip
KVM: x86: Limit check IDs for KVM_SET_BOOT_CPU_ID
Do not accept IDs which are definitely invalid by limit checking the passed value against KVM_MAX_VCPU_IDS and 'max_vcpu_ids' if it was already set. This ensures invalid values, especially on 64-bit systems, don't go unnoticed and lead to a valid id by chance when truncated by the final assignment. Fixes: 73880c80aa9c ("KVM: Break dependency between vcpu index in vcpus array and vcpu_id.") Signed-off-by: Mathias Krause <minipli@grsecurity.net> Link: https://lore.kernel.org/r/20240614202859.3597745-3-minipli@grsecurity.net Co-developed-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions