tipc: don't assume linear buffer when reading ancillary data
authorJon Maloy <donmalo99@gmail.com>
Sat, 17 Nov 2018 17:17:06 +0000 (12:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Nov 2018 07:17:03 +0000 (08:17 +0100)
commitaaf1377231081b41a6761695fb410884e3426635
tree02af0502ad5f046dc3f123568d5cbd13f833e362
parent710c65c8c8551a24bf9b4bd761de65259bbe8d74
tipc: don't assume linear buffer when reading ancillary data

[ Upstream commit 1c1274a56999fbdf9cf84e332b28448bb2d55221 ]

The code for reading ancillary data from a received buffer is assuming
the buffer is linear. To make this assumption true we have to linearize
the buffer before message data is read.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/tipc/socket.c