diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2017-10-23 17:11:21 +0100 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2018-01-08 15:20:46 +0100 |
commit | 7a3796d2ef5bb948f709467eef1bf96edbfc67a0 (patch) | |
tree | 8b33f893ac17f71126f7960a7909d18be397353d /security | |
parent | a9c0e12ebee56ef06b7eccdbc73bab71d0018df8 (diff) | |
download | op-kernel-dev-7a3796d2ef5bb948f709467eef1bf96edbfc67a0.zip op-kernel-dev-7a3796d2ef5bb948f709467eef1bf96edbfc67a0.tar.gz |
KVM: arm/arm64: Preserve Exec permission across R/W permission faults
So far, we loose the Exec property whenever we take permission
faults, as we always reconstruct the PTE/PMD from scratch. This
can be counter productive as we can end-up with the following
fault sequence:
X -> RO -> ROX -> RW -> RWX
Instead, we can lookup the existing PTE/PMD and clear the XN bit in the
new entry if it was already cleared in the old one, leadig to a much
nicer fault sequence:
X -> ROX -> RWX
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions