Re: [PATCH 0/3] xtensa: clean up __user annotations in asm/uaccess.h
From: Max Filippov
Date: Fri May 22 2020 - 18:35:47 EST
On Fri, May 22, 2020 at 2:58 PM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> On Fri, May 22, 2020 at 02:41:50PM -0700, Max Filippov wrote:
> Useful test:
>
> void __user *f(void __user * __user *p)
> {
> void __user *q;
> (void)get_user(q, p);
> return q;
> }
I think this change passes this test, i.e. originally reported warning
does not show up.
There's other kind of warning that it triggers: 'Using plain integer
as NULL pointer',
I'll post an updated version that fixes that as well.
--
Thanks.
-- Max