diff options
author | 2023-05-18 10:58:44 +0100 | |
---|---|---|
committer | 2023-05-19 10:20:30 +0100 | |
commit | 09cce60bddd6461a93a5bf434265a47827d1bc6f (patch) | |
tree | c84563cbc42439f7939b36387b78e6e34873bc98 /scripts/generate_rust_analyzer.py | |
parent | KVM: arm64: vgic: Fix a comment (diff) | |
download | wireguard-linux-09cce60bddd6461a93a5bf434265a47827d1bc6f.tar.xz wireguard-linux-09cce60bddd6461a93a5bf434265a47827d1bc6f.zip |
KVM: arm64: Prevent unconditional donation of unmapped regions from the host
Since host stage-2 mappings are created lazily, we cannot rely solely on
the pte in order to recover the target physical address when checking a
host-initiated memory transition as this permits donation of unmapped
regions corresponding to MMIO or "no-map" memory.
Instead of inspecting the pte, move the addr_is_allowed_memory() check
into the host callback function where it is passed the physical address
directly from the walker.
Cc: Quentin Perret <qperret@google.com>
Fixes: e82edcc75c4e ("KVM: arm64: Implement do_share() helper for sharing memory")
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230518095844.1178-1-will@kernel.org
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions