]> git.karo-electronics.de Git - linux-beck.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)
commit9f6bdcd4286145e812058e4111e906e9830514d8
tree081570fcafbd5329c788b9ef46c5e1b8b306ba2a
parent693d03ae3c2bafd7caca1cf4ade9f23f107e33c1
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