diff options
author | Mathias Krause <minipli@grsecurity.net> | 2024-06-14 23:28:58 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-06-18 19:03:52 +0300 |
commit | 4b451a57809cacec00978c36c97b1c9b53cde664 (patch) | |
tree | 1213f81f9cbd09c6446f60c5011d175746089118 /scripts/generate_rust_analyzer.py | |
parent | d29bf2ca140410705447ac26100a149b51094c00 (diff) | |
download | linux-4b451a57809cacec00978c36c97b1c9b53cde664.tar.xz |
KVM: selftests: Test max vCPU IDs corner cases
The KVM_CREATE_VCPU ioctl ABI had an implicit integer truncation bug,
allowing 2^32 aliases for a vCPU ID by setting the upper 32 bits of a 64
bit ioctl() argument.
It also allowed excluding a once set boot CPU ID.
Verify this no longer works and gets rejected with an error.
Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Link: https://lore.kernel.org/r/20240614202859.3597745-5-minipli@grsecurity.net
[sean: tweak assert message+comment for 63:32!=0 testcase]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions