]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/acpi: disallow writeable AML opregion mapping for EFI code regions
authorArd Biesheuvel <ardb@kernel.org>
Fri, 26 Jun 2020 15:58:32 +0000 (17:58 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 14 Jul 2020 17:02:04 +0000 (18:02 +0100)
commitfeba62a99b8795580d70d0818824578a3c867659
tree43c8bf1b52c66318c24a3335060986556c0cbf49
parentda782b767e96a10d98959fc870428fd27caa3389
arm64/acpi: disallow writeable AML opregion mapping for EFI code regions

Given that the contents of EFI runtime code and data regions are
provided by the firmware, as well as the DSDT, it is not unimaginable
that AML code exists today that accesses EFI runtime code regions using
a SystemMemory OpRegion. There is nothing fundamentally wrong with that,
but since we take great care to ensure that executable code is never
mapped writeable and executable at the same time, we should not permit
AML to create writable mapping.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Link: https://lore.kernel.org/r/20200626155832.2323789-3-ardb@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/acpi.c