diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-09-08 12:07:11 +0100 |
|---|---|---|
| committer | Oliver Upton <oupton@kernel.org> | 2026-09-15 15:09:57 -0700 |
| commit | 5a8b505ede133fb30ca3b3a19d0db00c08237615 (patch) | |
| tree | ebf7fe9d245089cc449224758d0175e94afeb4fd /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 3a8c562892b96f35bba1e00d5e455a15963bbb92 (diff) | |
| download | linux-next-5a8b505ede133fb30ca3b3a19d0db00c08237615.tar.gz linux-next-5a8b505ede133fb30ca3b3a19d0db00c08237615.zip | |
KVM: arm64: Match hyp text by physical address in fix_host_ownership()
On a non-hVHE host, fix_host_ownership_walker()'s test for PAGE_HYP_EXEC
never matches: KVM_PGTABLE_PROT_UX is cleared at map time and only PX is
reported on read-back. Hyp text is therefore donated rather than left
read-only in the host stage-2, and the instruction dump in
nvhe_hyp_panic_handler() reads a page the host has no access to.
Match the text by physical address instead, in a helper a later patch
reuses. A test on the permissions would leave any other executable
mapping host-readable too.
Fixes: 80cbfd7174f31 ("KVM: arm64: Honor UX/PX attributes for EL2 S1 mappings")
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Reviewed-by: Vincent Donnefort <vdonnefort@google.com>
Tested-by: Vincent Donnefort <vdonnefort@google.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://patch.msgid.link/20260908110713.1540304-3-fuad.tabba@linux.dev
Signed-off-by: Oliver Upton <oupton@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
