]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tipc: guarantee group unicast doesn't bypass group broadcast
authorJon Maloy <jon.maloy@ericsson.com>
Fri, 13 Oct 2017 09:04:30 +0000 (11:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2017 15:46:01 +0000 (08:46 -0700)
commitb87a5ea31c935a7f7e11ca85df2ec7917921e96d
tree6d8d1235da6271bea5506b6564205583a4772305
parent5b8dddb63769587badc50725ec9857caaeba4de0
tipc: guarantee group unicast doesn't bypass group broadcast

Group unicast messages don't follow the same path as broadcast messages,
and there is a high risk that unicasts sent from a socket might bypass
previously sent broadcasts from the same socket.

We fix this by letting all unicast messages carry the sequence number of
the next sent broadcast from the same node, but without updating this
number at the receiver. This way, a receiver can check and if necessary
re-order such messages before they are added to the socket receive buffer.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/group.c
net/tipc/socket.c