]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
UBUNTU: SAUCE: (efi-lockdown) acpi: Disable APEI error injection if the kernel is...
authorLinn Crosetto <linn@hpe.com>
Mon, 9 Apr 2018 08:52:50 +0000 (09:52 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 4 Mar 2019 12:51:27 +0000 (06:51 -0600)
commit3d1c591110c2f467cc6ea0547fb0996a5145876c
tree129b8fc28c6e216e8d0dd3829b5d297985f86f30
parent9679e0646f23adf2ce799ae56e6b068e8ae23c22
UBUNTU: SAUCE: (efi-lockdown) acpi: Disable APEI error injection if the kernel is locked down

ACPI provides an error injection mechanism, EINJ, for debugging and testing
the ACPI Platform Error Interface (APEI) and other RAS features.  If
supported by the firmware, ACPI specification 5.0 and later provide for a
way to specify a physical memory address to which to inject the error.

Injecting errors through EINJ can produce errors which to the platform are
indistinguishable from real hardware errors.  This can have undesirable
side-effects, such as causing the platform to mark hardware as needing
replacement.

While it does not provide a method to load unauthenticated privileged code,
the effect of these errors may persist across reboots and affect trust in
the underlying hardware, so disable error injection through EINJ if
the kernel is locked down.

Signed-off-by: Linn Crosetto <linn@hpe.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: "Lee, Chun-Yi" <jlee@suse.com>
cc: linux-acpi@vger.kernel.org
(cherry picked from commit 2109af2ee05a7fe63323d0d1eb305addde4fedaf
 git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/acpi/apei/einj.c