Skip to content
Commit 7d31f460 authored by Matthew Garrett's avatar Matthew Garrett Committed by James Morris
Browse files

kexec_load: Disable at runtime if the kernel is locked down



The kexec_load() syscall 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_load() in this situation.

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

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarMatthew Garrett <mjg59@google.com>
Acked-by: default avatarDave Young <dyoung@redhat.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
cc: kexec@lists.infradead.org
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 9b9d8dda
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment