On Nov 13, 2016 10:18 PM, "Borislav Petkov" <b...@alien8.de> wrote:
>
> On Sun, Nov 13, 2016 at 08:15:01AM -0800, Andy Lutomirski wrote:
> > How about dropping the __ in front of the copy?
>
> In front of __copy_from_user_inatomic()?
>
> If so, is there even a global helper by that name?
>
> $ git grep -E "[^_]copy_from_user_inatomic"
> drivers/gpu/drm/msm/msm_gem_submit.c:98:                ret = 
> copy_from_user_inatomic(&submit_bo, userptr, sizeof(submit_bo));
>
> is all I can find.

Huh, go figure.  How about access_ok() instead?  There's also
pagefault_disable() + copy_from_user().

Reply via email to