Re: [PATCH 14/24] x86: Restrict MSR access when the kernel is locked down

From: Thomas Gleixner
Date: Fri Apr 14 2017 - 14:30:51 EST


On Wed, 5 Apr 2017, David Howells wrote:

Can you please change the subsys in $subject to 'x86/msr:' ?

> From: Matthew Garrett <matthew.garrett@xxxxxxxxxx>
>
> 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: Matthew Garrett <matthew.garrett@xxxxxxxxxx>
> Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
> Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>
> cc: x86@xxxxxxxxxx

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>