[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALCETrUU2rVQ14vVfR4pWA+J9dw=EoSmACHsnrXhg5b4sWbuAg@mail.gmail.com>
Date: Thu, 17 Nov 2016 15:33:21 -0800
From: Andy Lutomirski <luto@...capital.net>
To: Borislav Petkov <bp@...en8.de>
Cc: Ingo Molnar <mingo@...nel.org>, X86 ML <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
Peter Zijlstra <peterz@...radead.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [RFC PATCH] x86/debug: Dump more detailed segfault info
On Nov 13, 2016 10:18 PM, "Borislav Petkov" <bp@...en8.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().
Powered by blists - more mailing lists