Re: [RFC][PATCH 01/22] x86 user stack frame reads: switch to explicit __get_user()

From: Linus Torvalds
Date: Sun Mar 29 2020 - 14:20:18 EST


On Sun, Mar 29, 2020 at 11:18 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> Except that you'd better make that
> if (!user_access_begin(...))
> return -EFAULT;

Yeah, that should teach me not to just write random code snippets in
the mail reader rather than just cutting-and-pasting actual working
code ;)

Linus