From: Frederic Weisbecker <fweisbec@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
LKML <linux-kernel@vger.kernel.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Linus Torvalds <torvalds@linux-foundation.org>,
Arjan van de Ven <arjan@infradead.org>
Subject: Re: [PATCH] x86: Add missing might_fault() from copy_{to,from}_user()
Date: Mon, 16 Nov 2009 16:12:34 +0100 [thread overview]
Message-ID: <20091116151231.GA5293@nowhere> (raw)
In-Reply-To: <20091116150937.GA22187@elte.hu>
On Mon, Nov 16, 2009 at 04:09:37PM +0100, Ingo Molnar wrote:
>
> * Frederic Weisbecker <fweisbec@gmail.com> wrote:
>
> > In x86-64, copy_to/from_user() rely on assembly routines that never
> > call might_fault(), making us missing various lockdep checks.
> >
> > This doesn't apply to __copy_from,to_user() that explicitly handle
> > these calls, neither is it a problem in x86-32 where
> > copy_to,from_user() rely on the "__" prefixed versions that also call
> > might_fault().
> >
> > Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
> > ---
> > arch/x86/include/asm/uaccess_64.h | 10 +++++++++-
> > arch/x86/lib/copy_user_64.S | 4 ++--
> > 2 files changed, 11 insertions(+), 3 deletions(-)
>
> Looks good - other than that you missed the renaming of the symbol
> export line in arch/x86/kernel/x8664_ksyms_64.c, which i fixed.
Oops, sorry!
> Thanks,
>
> Ingo
next prev parent reply other threads:[~2009-11-16 15:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-16 14:42 [PATCH] x86: Add missing might_fault() from copy_{to,from}_user() Frederic Weisbecker
2009-11-16 15:09 ` Ingo Molnar
2009-11-16 15:12 ` Frederic Weisbecker [this message]
2009-11-16 16:10 ` [tip:x86/asm] x86: Add missing might_fault() checks to copy_{to,from}_user() tip-bot for Frederic Weisbecker
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=20091116151231.GA5293@nowhere \
--to=fweisbec@gmail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=arjan@infradead.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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