Re: [PATCH net-next] net: devmem: remove min_t(iter_iov_len) in sendmsg
From: Al Viro
Date: Fri May 16 2025 - 23:40:08 EST
On Fri, May 16, 2025 at 07:17:23PM -0700, Stanislav Fomichev wrote:
> > Wait, in the same commit there's
> > + if (iov_iter_type(from) != ITER_IOVEC)
> > + return -EFAULT;
> >
> > shortly prior to the loop iter_iov_{addr,len}() are used. What am I missing now?
>
> Yeah, I want to remove that part as well:
>
> https://lore.kernel.org/netdev/20250516225441.527020-1-stfomichev@xxxxxxxxx/T/#u
>
> Otherwise, sendmsg() with a single IOV is not accepted, which makes not
> sense.
Wait a minute. What's there to prevent a call with two ranges far from each other?