From: Mateusz Guzik Date: Tue, 10 May 2016 20:56:43 +0000 (+0200) Subject: x86/arch_prctl/64: Restore accidentally removed put_cpu() in ARCH_SET_GS X-Git-Tag: v4.9.8~2146^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4afd0565552c87f23834db9121dd9cf6955d0b43;p=platform%2Fkernel%2Flinux-rpi3.git x86/arch_prctl/64: Restore accidentally removed put_cpu() in ARCH_SET_GS This fixes an oversight in: 731e33e39a5b95 ("Remove FSBASE/GSBASE < 4G optimization") Signed-off-by: Mateusz Guzik Cc: Alexander Shishkin Cc: Andy Lutomirski Cc: Andy Lutomirski Cc: Arnaldo Carvalho de Melo Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Jiri Olsa Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Gleixner Cc: Vince Weaver Link: http://lkml.kernel.org/r/1462913803-29634-1-git-send-email-mguzik@redhat.com Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 4285f6a..6b16c36 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -541,6 +541,7 @@ long do_arch_prctl(struct task_struct *task, int code, unsigned long addr) load_gs_index(0); ret = wrmsrl_safe(MSR_KERNEL_GS_BASE, addr); } + put_cpu(); break; case ARCH_SET_FS: /* Not strictly needed for fs, but do it for symmetry