Re: [RFC PATCH] x86/debug: Dump more detailed segfault info

From: Borislav Petkov
Date: Fri Nov 18 2016 - 07:38:44 EST

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().


Good mailing practices for 400: avoid top-posting and trim the reply.