x86/bugs: Make boot modes __ro_after_init
authorKees Cook <keescook@chromium.org>
Thu, 3 May 2018 22:03:30 +0000 (15:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 May 2018 14:58:01 +0000 (16:58 +0200)
commitea055f7d43fb3a9d56e80d0116104555d6dde3f7
tree863672777f838f58d55a71f411a8b79983289e8a
parent0a112f104548667f5618477ff0f2a54ee626addd
x86/bugs: Make boot modes __ro_after_init

commit f9544b2b076ca90d887c5ae5d74fab4c21bb7c13 upstream

There's no reason for these to be changed after boot.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/bugs.c