Re: [PATCH] net: check the return value of the copy_from_sockptr
From: Eric Dumazet
Date: Wed Sep 11 2024 - 05:14:22 EST
On Wed, Sep 11, 2024 at 10:23 AM Qianqiang Liu <qianqiang.liu@xxxxxxx> wrote:
>
> > I do not think it matters, because the copy is performed later, with
> > all the needed checks.
>
> No, there is no checks at all.
>
Please elaborate ?
Why should maintainers have to spend time to provide evidence to
support your claims ?
Have you thought about the (compat) case ?
There are plenty of checks. They were there before Stanislav commit.
Each getsockopt() handler must perform the same actions.
For instance, look at do_ipv6_getsockopt()
If you find one getsockopt() method failing to perform the checks,
please report to us.