diff options
| author | Ard Biesheuvel <ardb@kernel.org> | 2026-10-09 17:16:01 +0200 |
|---|---|---|
| committer | Catalin Marinas <catalin.marinas@arm.com> | 2026-10-12 17:29:35 +0100 |
| commit | 215d7b6622733603751f546b9faf9b84b0c281d4 (patch) | |
| tree | 52fbbb85e78f5ea0f2521b713863014ca31572f6 /tools/perf/scripts/python | |
| parent | 93f51579e7df248780214094418f205253383cc5 (diff) | |
arm64/efi: Clear PTE_WRITE when applying EFI_MEMORY_RO
set_permissions() sets PTE_RDONLY for regions that the Memory Attributes
Table describes as read-only, but leaves PTE_WRITE set. PTE_WRITE is
the DBM bit, so when hardware dirty state management is enabled
(TCR_EL1.HD), such a descriptor is writable-clean rather than read-only,
and a write by the firmware will be permitted by the hardware (which
marks the entry dirty) instead of faulting.
Clear PTE_WRITE as well, as pte_wrprotect() does.
Cc: stable@vger.kernel.org
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
