Commit ec55e52f authored by Mostafa Saleh's avatar Mostafa Saleh
Browse files

ANDROID: KVM: iommu: Fix hyp share check in __pkvm_host_use_dma_page



The hypervisor keeps track of mapped pages in the IOMMU page tables,
and checks the ownership of the host overthese pages.
There is also a hardening check to prevent mapping a page in the
IOMMU that is shared with the hyp, this mainly an extra hardening
as there shouldn't be such use case.

However, there is a bug in this path where the address passed to the
function was the physical address instead of virtual address. As this
is a hardening check it should lead to security problems, but only
failed IOMMU map pages which should have passed.

Bug: 277989609
Bug: 278749606

Change-Id: Ib571e90c358b2ffd9545c83674c407d0ddc11cb2
Signed-off-by: default avatarMostafa Saleh <smostafa@google.com>
parent 04469eba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment