diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2022-03-29 13:11:47 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-02 05:34:39 -0400 |
commit | 79593c086eb95eb2886f36ee6f78a1d6845e1bdf (patch) | |
tree | c0784da492f0d1efb29821eca40379199abf2ce7 /usr/Makefile | |
parent | f47e5bbbc92f5d234bbab317523c64a65b6ac4e2 (diff) | |
download | linux-79593c086eb95eb2886f36ee6f78a1d6845e1bdf.tar.bz2 |
KVM: avoid double put_page with gfn-to-pfn cache
If the cache's user host virtual address becomes invalid, there
is still a path from kvm_gfn_to_pfn_cache_refresh() where __release_gpc()
could release the pfn but the gpc->pfn field has not been overwritten
with an error value. If this happens, kvm_gfn_to_pfn_cache_unmap will
call put_page again on the same page.
Cc: stable@vger.kernel.org
Fixes: 982ed0de4753 ("KVM: Reinstate gfn_to_pfn_cache with invalidation support")
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'usr/Makefile')
0 files changed, 0 insertions, 0 deletions