diff options
author | Sven Eckelmann <sven@narfation.org> | 2016-07-01 15:49:43 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-07-05 12:43:21 +0200 |
commit | 3db0decf1185357d6ab2256d0dede1ca9efda03d (patch) | |
tree | 1fc52de94b2acd9bee5823169e8c0883adec1c9d /net/batman-adv/routing.c | |
parent | batman-adv: Fix orig_node_vlan leak on orig_node_release (diff) | |
download | linux-3db0decf1185357d6ab2256d0dede1ca9efda03d.tar.xz linux-3db0decf1185357d6ab2256d0dede1ca9efda03d.zip |
batman-adv: Fix non-atomic bla_claim::backbone_gw access
The pointer batadv_bla_claim::backbone_gw can be changed at any time.
Therefore, access to it must be protected to ensure that two function
accessing the same backbone_gw are actually accessing the same. This is
especially important when the crc_lock is used or when the backbone_gw of a
claim is exchanged.
Not doing so leads to invalid memory access and/or reference leaks.
Fixes: 23721387c409 ("batman-adv: add basic bridge loop avoidance code")
Fixes: 5a1dd8a4773d ("batman-adv: lock crc access in bridge loop avoidance")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/routing.c')
0 files changed, 0 insertions, 0 deletions