From: Mateusz Guzik <mguzik@redhat.com>
To: Andy Lutomirski <luto@kernel.org>
Cc: linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>
Subject: [PATCH] x86/arch_prctl/64: restore accidentally removed put_cpu in ARCH_SET_GS
Date: Tue, 10 May 2016 22:56:43 +0200 [thread overview]
Message-ID: <1462913803-29634-1-git-send-email-mguzik@redhat.com> (raw)
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
next reply other threads:[~2016-05-10 20:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-10 20:56 Mateusz Guzik [this message]
2016-05-10 20:58 ` [PATCH] x86/arch_prctl/64: restore accidentally removed put_cpu in ARCH_SET_GS 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1462913803-29634-1-git-send-email-mguzik@redhat.com \
--to=mguzik@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox