Re: [PATCH 22/24] uaccess: add memzero_user

From: Paolo Bonzini
Date: Wed May 20 2020 - 17:33:50 EST


On 20/05/20 23:28, Al Viro wrote:
> Unless I'm seriously misreading that patch, it could've been done as
>
> static inline __must_check int memzero_user(void __user *addr, size_t size)
> {
> return clear_user(addr, n) ? -EFAULT : 0;
> }
>
> What am I missing?

Ok, I have a serious tunnel vision problem. Thanks very much Al.

Since I have your attention, would you take a look at
https://lore.kernel.org/lkml/20200421135119.30007-1-eesposit@xxxxxxxxxx/
please?

Thanks,

Paolo