Commit fcdf4f91 authored by Quentin Perret's avatar Quentin Perret Committed by Treehugger Robot
Browse files

ANDROID: KVM: arm64: Fix module_change_host_page_prot()



When module_change_host_page_prot() sets the page owner to
PKVM_ID_PROTECTED, host_stage2_set_owner_locked() will implicitly set
the PKVM_NOPAGE flag in the hyp_vmemmap. But when a page is returned to
its pristine state, we clear the PKVM_MODULE_OWNED_PAGE but forget to
update PKVM_NOPAGE.

Fix this by resetting the state to PKVM_PAGE_OWNED directly.

Bug: 278749606
Bug: 331311277
Change-Id: I4787495162c78087c609b53b2439a8249a06345a
Signed-off-by: default avatarQuentin Perret <qperret@google.com>
parent b2d4638b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment