Subject: Re: [PATCH 4/4] net: improve the user pointer check in init_user_sockptr

From: Christoph Hellwig <[email-masked]>
Date: Wed, 29 Jul 2020 08:04:01 +0200

On Tue, Jul 28, 2020 at 01:01:11PM -0700, David Miller wrote:
> From: Christoph Hellwig <[email-masked]>
> Date: Tue, 28 Jul 2020 08:36:43 +0200
> 
> >  	if (get_user(len, optlen))
> >  		return -EFAULT;
>         ^^^^^^^^^^^^^^^^^^^^^^^^^^
> > -	err = init_user_sockptr(&optval, user_optval);
> > +	err = init_user_sockptr(&optval, user_optval, *optlen);
>                                                       ^^^^^^^^
> 
> Hmmm?

A fixed version was already posted yesterday:

https://lore.kernel.org/netdev/[email-masked]/T/#me3e9c7b71e39b4689628ed2e61dec06705344847