summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorOliver Upton <oupton@kernel.org>2026-06-02 09:59:01 -0700
committerMarc Zyngier <maz@kernel.org>2026-06-05 14:07:57 +0100
commit17f073f78fc43280891ecde8f8ec3f84f98bb37c (patch)
tree1cee89ee69d1c7e0303435970264254657165213 /rust/kernel
parent49b32ddb87a3a109afecea89e55d70f73956b8bc (diff)
KVM: arm64: Correctly identify executable PTEs at stage-2
KVM invalidates the I-cache before installing an executable PTE on implementations without DIC. Unfortunately, support for FEAT_XNX broke this check as KVM_PTE_LEAF_ATTR_HI_S2_XN was expanded to a bitfield. Fix it by reusing kvm_pgtable_stage2_pte_prot() and testing the abstract permission bits instead. Fixes: 2608563b466b ("KVM: arm64: Add support for FEAT_XNX stage-2 permissions") Reported-by: Sashiko (gemini/gemini-3.1-pro-preview) Signed-off-by: Oliver Upton <oupton@kernel.org> Reviewed-by: Wei-Lin Chang <weilin.chang@arm.com> Link: https://patch.msgid.link/20260602165901.52800-3-oupton@kernel.org Signed-off-by: Marc Zyngier <maz@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions