]> git.baikalelectronics.ru Git - kernel.git/commit
af_unix: fix bug on large send()
authorEric Dumazet <edumazet@google.com>
Mon, 12 Aug 2013 04:54:48 +0000 (21:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Aug 2013 05:02:36 +0000 (22:02 -0700)
commit5415f2603fd5a6385282d5b918de32e85d99e7e0
treeb7a261523d1225efcbdbcb254953492807eceeff
parent6a3c6da34e8d794535d04e014c33e40f1197bc72
af_unix: fix bug on large send()

commit cb357b92f10 ("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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c