]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Discard incoming broadcast messages that are unexpected
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 7 Apr 2011 18:57:53 +0000 (14:57 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 1 Sep 2011 15:16:37 +0000 (11:16 -0400)
commitef6590e1db32f223b6490d58783ad2379d037829
tree081570fcafbd5329c788b9ef46c5e1b8b306ba2a
parent9b2b6ddbf6eb63be94a4a3695a6d6a26c4d65f2f
tipc: Discard incoming broadcast messages that are unexpected

Modifies TIPC's incoming broadcast packet handler to discard messages
that cannot legally be sent over the broadcast link, including:

- broadcast protocol messages that do no contain state information
- payload messages that are not named multicast messages
- any other form of message except for bundled messages, fragmented
  messages, and name distribution messages.

These checks are needed to prevent TIPC from handing an unexpected
message to a routine that isn't prepared to handle it, which could
lead to incorrect processing (up to and including invalid memory
references caused by attempts to access message fields that aren't
present in the message).

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bcast.c