From: Ingo Molnar <mingo@kernel.org>
To: Andy Lutomirski <luto@kernel.org>
Cc: X86 ML <x86@kernel.org>, Borislav Petkov <bp@alien8.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
Sasha Levin <sasha.levin@oracle.com>,
Mateusz Guzik <mguzik@redhat.com>
Subject: Re: [PATCH] x86/arch_prctl/64: restore accidentally removed put_cpu in ARCH_SET_GS
Date: Fri, 13 May 2016 13:50:31 +0200 [thread overview]
Message-ID: <20160513115031.GA30189@gmail.com> (raw)
In-Reply-To: <CALCETrUe_6+p0FJnTn=QVM8NutUibFEWfE_CmUFro8bqWJ+G6g@mail.gmail.com>
* Andy Lutomirski <luto@kernel.org> wrote:
> On Tue, May 10, 2016 at 1:56 PM, Mateusz Guzik <mguzik@redhat.com> wrote:
> > 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
> >
>
> Ingo, can you apply this before the merge window opens?
Yeah, done, applied it to tip:x86/asm.
> I just noticed that you weren't cc'd, so I'll repeat my ack:
>
> Acked-by: Andy Lutomirski <luto@kernel.org>
>
> And I'll ask, since IIRC you wrote it: would it make sense to augment
> lockdep_sys_exit to see if preemption got left disabled?
Yeah, absolutely. I'm quite sure early lockdep versions did such a check.
Thanks,
Ingo
next prev parent reply other threads:[~2016-05-13 11:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=20160513115031.GA30189@gmail.com \
--to=mingo@kernel.org \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mguzik@redhat.com \
--cc=sasha.levin@oracle.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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