]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: linearize arriving NAME_DISTR and LINK_PROTO buffers
authorJon Paul Maloy <jon.maloy@ericsson.com>
Wed, 28 Oct 2015 17:09:53 +0000 (13:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Nov 2015 17:04:29 +0000 (12:04 -0500)
commitb26dc52cd3fe9eae746340c9dde180201501dfa6
tree61574fb0271a5d87b8e50422da792a67410e458f
parent88b94a0ca6ff716446c22c990b81bfd1187c5f80
tipc: linearize arriving NAME_DISTR and LINK_PROTO buffers

Testing of the new UDP bearer has revealed that reception of
NAME_DISTRIBUTOR, LINK_PROTOCOL/RESET and LINK_PROTOCOL/ACTIVATE
message buffers is not prepared for the case that those may be
non-linear.

We now linearize all such buffers before they are delivered up to the
generic reception layer.

In order for the commit to apply cleanly to 'net' and 'stable', we do
the change in the function tipc_udp_recv() for now. Later, we will post
a commit to 'net-next' moving the linearization to generic code, in
tipc_named_rcv() and tipc_link_proto_rcv().

Fixes: commit 38e17eaa07d7 ("tipc: add ip/udp media type")
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/udp_media.c