]> 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)
commit7e222b2020d7ffdd165c7bc9154c8716da12b3ea
tree081570fcafbd5329c788b9ef46c5e1b8b306ba2a
parent2e8a434ba1f143f60a1d4c8c2cdbb16b84d4c009
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