Re: [arc] get_user() not clearing destination on failure

2016-08-19 Thread Al Viro
On Thu, Aug 18, 2016 at 11:11:09PM -0700, Vineet Gupta wrote: > On 08/17/2016 08:00 PM, Al Viro wrote: > Just curious - why is that. The typical usage paradigm is check for return > value > and if 0 only then proceed to use the actual value. > > Also for discussion sake, will eliminating the int

Re: [arc] get_user() not clearing destination on failure

2016-08-18 Thread Vineet Gupta
On 08/17/2016 08:00 PM, Al Viro wrote: > First of all, my apologies if I'd managed to misread the ARC assembler > in uaccess.h. AFAICS, neither __arc_get_user_one() nor > __arc_get_user_one_64() > end up zeroing the destination upon exception. Your __get_user_fn() is > ({