Re: [RFC][CFT][PATCHSET v1] uaccess unification

From: Al Viro
Date: Thu Mar 30 2017 - 14:54:38 EST


On Thu, Mar 30, 2017 at 07:48:24PM +0100, Al Viro wrote:

> BTW, ..._inatomic is a very unfortunate name, IMO - it's *not* safe
> to use in atomic contexts as-is, to start with; the caller needs to take
> care of pagefault_disable(). If anything, __copy_from_user_nofault() would
> probably be better...

Not even that - again, it will happily trigger page faults unless the
caller disables those. __copy_from_user_I_know_what_I_am_doing()?