public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/arch_prctl/64: restore accidentally removed put_cpu in ARCH_SET_GS
@ 2016-05-10 20:56 Mateusz Guzik
  2016-05-10 20:58 ` Andy Lutomirski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mateusz Guzik @ 2016-05-10 20:56 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: linux-kernel, Thomas Gleixner, H. Peter Anvin

This fixes 731e33e39a5b95ad770 "Remove FSBASE/GSBASE < 4G optimization"

Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
---
 arch/x86/kernel/process_64.c | 1 +
 1 file changed, 1 insertion(+)

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
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-13 11:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-10 20:56 [PATCH] x86/arch_prctl/64: restore accidentally removed put_cpu in ARCH_SET_GS Mateusz Guzik
2016-05-10 20:58 ` Andy Lutomirski
2016-05-11 20:35   ` Mateusz Guzik
2016-05-12  0:00     ` Andy Lutomirski
2016-05-12 15:11 ` Andy Lutomirski
2016-05-13 11:50   ` Ingo Molnar
2016-05-13 11:51 ` [tip:x86/asm] x86/arch_prctl/64: Restore accidentally removed put_cpu() " tip-bot for Mateusz Guzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox