]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Disallow regular interface as mesh device
authorSven Eckelmann <sven@narfation.org>
Fri, 4 Mar 2011 21:36:41 +0000 (21:36 +0000)
committerMarek Lindner <lindner_marek@yahoo.de>
Sat, 5 Mar 2011 11:52:09 +0000 (12:52 +0100)
commitc6411b1c039f933f63b0625c6edb428ba153efdb
tree1ed6d2b1fa04a4fe333d8eda498b3e866129d4d3
parentbca9586d9d3992b587339a832d41396a2ced5b31
batman-adv: Disallow regular interface as mesh device

When trying to associate a net_device with another net_device which
already exists, batman-adv assumes that this interface is a fully
initialized batman mesh interface without checking it. The behaviour
when accessing data behind netdev_priv of a random net_device is
undefined and potentially dangerous.

Reported-by: Linus Lüssing <linus.luessing@ascom.ch>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/hard-interface.c
net/batman-adv/soft-interface.c
net/batman-adv/soft-interface.h