rxrpc: Fix send in rxrpc_send_data_packet()
authorDavid Howells <dhowells@redhat.com>
Thu, 22 Feb 2018 14:38:14 +0000 (14:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 06:41:12 +0000 (22:41 -0800)
commitf0a04a0e1ab48ba7089f9476dcf22ce00cf7b9e9
treebf4af3c4a95752e83064fd41d17a36fbaf4fc3e7
parent17634603d494978f5bf3ce9f261862c8f119af36
rxrpc: Fix send in rxrpc_send_data_packet()

[ Upstream commit 93c62c45ed5fad1b87e3a45835b251cd68de9c46 ]

All the kernel_sendmsg() calls in rxrpc_send_data_packet() need to send
both parts of the iov[] buffer, but one of them does not.  Fix it so that
it does.

Without this, short IPv6 rxrpc DATA packets may be seen that have the rxrpc
header included, but no payload.

Fixes: 5a924b8951f8 ("rxrpc: Don't store the rxrpc header in the Tx queue sk_buffs")
Reported-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/rxrpc/output.c