diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-05-22 10:15:35 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-05-26 12:24:13 -0700 |
| commit | 3e8a0b9912239026defe839291c669984c734650 (patch) | |
| tree | 1ca0352051d83919ef496846ee4da2f82ef6a40d /scripts/dummy-tools/python3 | |
| parent | 849d65e27bd62bca9a9383f7dfa14da711f4bebc (diff) | |
KVM: selftests: Add and use kvm_free_fd() to harden against fd goofs
Add a kvm_free_fd() macro to close and invalidate a file descriptor, and
use it through the core infrastructure to harden against goofs where a
selftest attempts to reuse a closed file descriptor.
Cc: Bibo Mao <maobibo@loongson.cn>
Cc: Fuad Tabba <tabba@google.com>
Cc: Ackerley Tng <ackerleytng@google.com>
Reviewed-by: Ackerley Tng <ackerleytng@google.com>
Link: https://patch.msgid.link/20260522171535.3525890-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions
