]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/kexec.c
UBUNTU: SAUCE: (efi-lockdown) kexec: Disable at runtime if the kernel is locked down
authorMatthew Garrett <matthew.garrett@nebula.com>
Wed, 24 May 2017 13:56:02 +0000 (14:56 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 29 Jan 2018 13:45:01 +0000 (07:45 -0600)
commitd58c4346d6a96ce9d390b497bb34c52523174775
tree2657d503c9c0e5c8e51221d08c1f7d4b88c18ce7
parent0dfddfc61e5c8b5906be7d4e8550147ada34ae0c
UBUNTU: SAUCE: (efi-lockdown) kexec: Disable at runtime if the kernel is locked down

kexec permits the loading and execution of arbitrary code in ring 0, which
is something that lock-down is meant to prevent. It makes sense to disable
kexec in this situation.

This does not affect kexec_file_load() which can check for a signature on the
image to be booted.

Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Dave Young <dyoung@redhat.com>
Reviewed-by: "Lee, Chun-Yi" <jlee@suse.com>
Reviewed-by: James Morris <james.l.morris@oracle.com>
cc: kexec@lists.infradead.org
(cherry picked from commit 9a7ef0aead9519d42e351d10e0c6f7b8d3bebdb1
 git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
kernel/kexec.c