Re: [PATCH net-next] net: devmem: remove min_t(iter_iov_len) in sendmsg

From: Al Viro
Date: Fri May 16 2025 - 20:09:37 EST


On Fri, May 16, 2025 at 05:04:31PM -0700, Stanislav Fomichev wrote:
> iter_iov_len looks broken for UBUF. When iov_iter_advance is called
> for UBUF, it increments iov_offset and also decrements the count.
> This makes the iterator only go over half of the range (unless I'm
> missing something).

What do you mean by "broken"? iov_iter_len(from) == "how much data is
left in that iterator". That goes for all flavours, UBUF included...

Confused...