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

x86/msr: Restrict MSR access when the kernel is locked down



Writing to MSRs should not be allowed if the kernel is locked down, since
it could lead to execution of arbitrary code in kernel mode.  Based on a
patch by Kees Cook.

Signed-off-by: default avatarMatthew Garrett <mjg59@google.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
cc: x86@kernel.org
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 96c4f672
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