]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: selftests: Verify stats fd is usable after VM fd has been closed
authorSean Christopherson <seanjc@google.com>
Tue, 11 Jul 2023 23:01:31 +0000 (16:01 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 29 Jul 2023 15:05:30 +0000 (11:05 -0400)
commit211c0189ea18648a0cf23dea9f4ed745bc9252f6
tree72d0ed2ac85ab7122d5d1c6ef903ac36fd3f8a40
parent65f1f57f35e5e833c879a7afb9c862c603695917
KVM: selftests: Verify stats fd is usable after VM fd has been closed

Verify that VM and vCPU binary stats files are usable even after userspace
has put its last direct reference to the VM.  This is a regression test
for a UAF bug where KVM didn't gift the stats files a reference to the VM.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230711230131.648752-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/kvm_binary_stats_test.c