Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-08-09 14:53:49 +0200
committerTakashi Iwai <tiwai@suse.de>2018-08-09 14:53:49 +0200
commit7a58a8799e5b1563eafe93202afc7609e0f5612e (patch)
tree7f0bcf2efeeb46bfbc71f0d78d5aaa952292e79b
parenta588dca808917c10552bcfd0b652c8871012f033 (diff)
Fix arm64 breakage with this_cput_write() (bsc#1089343
CVE-2018-3646). suse-commit: 059d25de4932b161a446cedbed89011329ec04e6
-rw-r--r--kernel/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index a0a574b71aca..3b5ce839444b 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -2056,8 +2056,8 @@ void __init boot_cpu_init(void)
*/
void __init boot_cpu_state_init(void)
{
- this_cpu_write(cpuhp_state.booted_once, true);
- this_cpu_write(cpuhp_state.state, CPUHP_ONLINE);
+ per_cpu_ptr(&cpuhp_state, smp_processor_id())->booted_once = true;
+ per_cpu_ptr(&cpuhp_state, smp_processor_id())->state = CPUHP_ONLINE;
}
/* kabi */