summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-06-23 14:02:24 +0200
committerBorislav Petkov <bp@suse.de>2021-06-23 19:58:45 +0200
commitbf68a7d98922e1665019b8bf0c4791500837c857 (patch)
tree0ad765b62b1dae50f8440fb98b58fa19ebc89874 /arch/x86
parent72a6c08c44e4460e39315ca828f60b8d5afd6b19 (diff)
downloadlinux-stable-bf68a7d98922e1665019b8bf0c4791500837c857.tar.gz
linux-stable-bf68a7d98922e1665019b8bf0c4791500837c857.tar.bz2
linux-stable-bf68a7d98922e1665019b8bf0c4791500837c857.zip
x86/fpu: Mark init_fpstate __ro_after_init
Nothing has to write into that state after init. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20210623121456.992342060@linutronix.de
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/fpu/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c
index 5295cbafc92e..7ada7bd03a32 100644
--- a/arch/x86/kernel/fpu/core.c
+++ b/arch/x86/kernel/fpu/core.c
@@ -23,7 +23,7 @@
* Represents the initial FPU state. It's mostly (but not completely) zeroes,
* depending on the FPU hardware format:
*/
-union fpregs_state init_fpstate __read_mostly;
+union fpregs_state init_fpstate __ro_after_init;
/*
* Track whether the kernel is using the FPU state