[PATCH 10/12] x86: Restrict MSR access when trusted_kernel is true

2015-03-13 Thread Matthew Garrett
Permitting write access to MSRs allows userspace to modify the running kernel. Prevent this if trusted_kernel is true. Based on a patch by Kees Cook. Cc: Kees Cook Signed-off-by: Matthew Garrett --- arch/x86/kernel/msr.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/kerne

[PATCH 10/12] x86: Restrict MSR access when trusted_kernel is true

2014-02-26 Thread Matthew Garrett
Permitting write access to MSRs allows userspace to modify the running kernel. Prevent this if trusted_kernel is true. Based on a patch by Kees Cook. Cc: Kees Cook Signed-off-by: Matthew Garrett --- arch/x86/kernel/msr.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/kerne