Re: [PATCH net-next] af_unix: fix bug on large send()

David Miller
2013-08-12T04:57:27Z

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Sun, 11 Aug 2013 21:54:48 -0700

> From: Eric Dumazet <edumazet@google.com>
>
> commit e370a723632 ("af_unix: improve STREAM behavior with fragmented
> memory") added a bug on large send() because the
> skb_copy_datagram_from_iovec() call always start from the beginning
> of iovec.
>
> We must instead use the @sent variable to properly skip the
> already processed part.
>
> Reported-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
> Signed-off-by: Eric Dumazet <edumazet@google.com>

Applied, thanks Eric.