diff options
| author | Oliver Upton <oupton@kernel.org> | 2026-06-02 09:59:00 -0700 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-06-05 14:07:06 +0100 |
| commit | 49b32ddb87a3a109afecea89e55d70f73956b8bc (patch) | |
| tree | 359b6370b8c14316aa37b2ca840ac97c2ec28a00 /rust/kernel | |
| parent | 70543358fa08e0f7cebc3447c3b70fe97ad7aaa8 (diff) | |
KVM: arm64: nv: Fix handling of XN[0] when !FEAT_XNX
XN has already been extracted from its bitfield position so using
FIELD_PREP() on the mask that clears XN[0] is completely broken, having
the effect of unconditionally granting execute permissions...
Fix the obvious mistake by manipulating the right bit.
Cc: stable@vger.kernel.org
Fixes: d93febe2ed2e ("KVM: arm64: nv: Forward FEAT_XNX permissions to the shadow stage-2")
Reviewed-by: Wei-Lin Chang <weilin.chang@arm.com>
Signed-off-by: Oliver Upton <oupton@kernel.org>
Link: https://patch.msgid.link/20260602165901.52800-2-oupton@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions
