]> git.ipfire.org Git - people/arne_f/kernel.git/commit
batman-adv: Check skb size before using encapsulated ETH+VLAN header
authorSven Eckelmann <sven@narfation.org>
Fri, 26 Feb 2016 16:56:13 +0000 (17:56 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:07:19 +0000 (23:07 -0400)
commitf7ac631102975609851be1969f7d89a77ecaa52e
treece521d371ea3afa17fed3bb2e9adb82edf721319
parent7b1f624b9e5dbba4d7613a9b9050526eba6da626
batman-adv: Check skb size before using encapsulated ETH+VLAN header

[ Upstream commit c78296665c3d81f040117432ab9e1cb125521b0c ]

The encapsulated ethernet and VLAN header may be outside the received
ethernet frame. Thus the skb buffer size has to be checked before it can be
parsed to find out if it encapsulates another batman-adv packet.

Fixes: 420193573f11 ("batman-adv: softif bridge loop avoidance")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/batman-adv/soft-interface.c