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.

Reply via email to