]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Report corrupted refcount at EL2
authorQuentin Perret <qperret@google.com>
Tue, 5 Oct 2021 09:01:42 +0000 (10:01 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 5 Oct 2021 12:02:54 +0000 (13:02 +0100)
commit9e6dbc79af348f5c7f8a365a29648cf9cf583804
tree874d1721abc8e9d1ae97942d6376d994e3081b99
parent4eef598fa04a6a22a2a6c25d59059c087586dbf4
KVM: arm64: Report corrupted refcount at EL2

Some of the refcount manipulation helpers used at EL2 are instrumented
to catch a corrupted state, but not all of them are treated equally. Let's
make things more consistent by instrumenting hyp_page_ref_dec_and_test()
as well.

Acked-by: Will Deacon <will@kernel.org>
Suggested-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211005090155.734578-6-qperret@google.com
arch/arm64/kvm/hyp/nvhe/page_alloc.c