From: Borislav Petkov <bp@alien8.de>
To: Andy Lutomirski <luto@amacapital.net>
Cc: Ingo Molnar <mingo@kernel.org>, X86 ML <x86@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [RFC PATCH] x86/debug: Dump more detailed segfault info
Date: Fri, 18 Nov 2016 13:38:38 +0100 [thread overview]
Message-ID: <20161118123837.up3f7d5plccrwd25@pd.tnic> (raw)
In-Reply-To: <CALCETrUU2rVQ14vVfR4pWA+J9dw=EoSmACHsnrXhg5b4sWbuAg@mail.gmail.com>
On Thu, Nov 17, 2016 at 03:33:21PM -0800, Andy Lutomirski wrote:
> Huh, go figure. How about access_ok() instead? There's also
> pagefault_disable() + copy_from_user().
Ah, you don't want to have another #PF during the first one.
How about copy_from_user_nmi()?
It already does __range_not_ok() which is basically access_ok() and
disables #PF around __copy_from_user_inatomic().
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
prev parent reply other threads:[~2016-11-18 12:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-11 10:19 [RFC PATCH] x86/debug: Dump more detailed segfault info Borislav Petkov
2016-11-12 11:06 ` Ingo Molnar
2016-11-12 12:27 ` Borislav Petkov
2016-11-13 7:39 ` Ingo Molnar
2016-11-13 11:25 ` Borislav Petkov
2016-11-13 15:49 ` Borislav Petkov
2016-11-15 6:14 ` Ingo Molnar
2016-11-15 10:06 ` Borislav Petkov
2016-11-15 10:19 ` Ingo Molnar
2016-11-15 10:22 ` Borislav Petkov
2016-11-15 10:38 ` Ingo Molnar
2016-11-13 16:15 ` Andy Lutomirski
2016-11-14 6:18 ` Borislav Petkov
2016-11-17 23:33 ` Andy Lutomirski
2016-11-18 12:38 ` Borislav Petkov [this message]
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=20161118123837.up3f7d5plccrwd25@pd.tnic \
--to=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=torvalds@linux-foundation.org \
--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;
as well as URLs for NNTP newsgroup(s).