Re: [PATCH 2/2] KVM: selftests: Add and use kvm_free_fd() to harden against fd goofs
From: Ackerley Tng
Date: Fri May 22 2026 - 14:12:08 EST
Sean Christopherson <seanjc@xxxxxxxxxx> writes:
> 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.
>
>
> [...snip...]
>
Thanks!
Reviewed-by: Ackerley Tng <ackerleytng@xxxxxxxxxx>