]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Handle WXN attribute
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Oct 2024 14:53:45 +0000 (15:53 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 02:44:23 +0000 (02:44 +0000)
commit1c6801d565eca7654732812b0c45ed898e64f238
tree92279ee16b1029eb7b075fd002e028924f253550
parente39ce7033c70df5e402b47dd248137878df6c771
KVM: arm64: Handle WXN attribute

Until now, we didn't really care about WXN as it didn't have an
effect on the R/W permissions (only the execution could be droppped),
and therefore not of interest for AT.

However, with S1POE, WXN can revoke the Write permission if an
overlay is active and that execution is allowed. This *is* relevant
to AT.

Add full handling of WXN so that we correctly handle this case.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241023145345.1613824-38-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/at.c