diff options
author | Mathias Krause <minipli@grsecurity.net> | 2024-06-14 22:28:59 +0200 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-06-18 09:12:08 -0700 |
commit | 438a496b9041402736e164c8ebf1368599903958 (patch) | |
tree | 2772956ef8d13aa998e11e3153f4937e0ba79ac8 /kernel/bpf/helpers.c | |
parent | 4b451a57809cacec00978c36c97b1c9b53cde664 (diff) |
KVM: selftests: Test vCPU boot IDs above 2^32 and MAX_VCPU_ID
The KVM_SET_BOOT_CPU_ID ioctl missed to reject invalid vCPU IDs. Verify
this no longer works and gets rejected with an appropriate error code.
Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Link: https://lore.kernel.org/r/20240614202859.3597745-6-minipli@grsecurity.net
[sean: add test for MAX_VCPU_ID+1, always do negative test]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions