]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86: Restrict MSR access when securelevel is set
authorMatthew Garrett <matthew.garrett@nebula.com>
Mon, 9 Sep 2013 22:49:44 +0000 (15:49 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 10 Aug 2015 16:24:06 +0000 (09:24 -0700)
commit5c700e60c8c54a4f552af3bd79b5c4e431b761f1
treeb4a272f246a90b8aeb1df81ea0fef1c119a72fd2
parenteb4fa31a4a8f9d5974dc518edb2c5044926a0b61
x86: Restrict MSR access when securelevel is set

Orabug: 21539498

Permitting write access to MSRs allows userspace to modify the running
kernel. Prevent this if securelevel has been set. Based on a patch by Kees
Cook.

Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
arch/x86/kernel/msr.c