Linus Lüssing
54e22f265e
batman-adv: fix TT sync flag inconsistencies
...
This patch fixes an issue in the translation table code potentially
leading to a TT Request + Response storm. The issue may occur for nodes
involving BLA and an inconsistent configuration of the batman-adv AP
isolation feature. However, since the new multicast optimizations, a
single, malformed packet may lead to a mesh-wide, persistent
Denial-of-Service, too.
The issue occurs because nodes are currently OR-ing the TT sync flags of
all originators announcing a specific MAC address via the
translation table. When an intermediate node now receives a TT Request
and wants to answer this on behalf of the destination node, then this
intermediate node now responds with an altered flag field and broken
CRC. The next OGM of the real destination will lead to a CRC mismatch
and triggering a TT Request and Response again.
Furthermore, the OR-ing is currently never undone as long as at least
one originator announcing the according MAC address remains, leading to
the potential persistency of this issue.
This patch fixes this issue by storing the flags used in the CRC
calculation on a a per TT orig entry basis to be able to respond with
the correct, original flags in an intermediate TT Response for one
thing. And to be able to correctly unset sync flags once all nodes
announcing a sync flag vanish for another.
Fixes: e9c00136a4 ("batman-adv: fix tt_global_entries flags update")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Acked-by: Antonio Quartulli <a@unstable.cc>
[sw: typo in commit message]
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2017-07-31 11:17:38 +02:00
..
bat_algo.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
bat_algo.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
bat_iv_ogm.c
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
bat_iv_ogm.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
bat_v.c
batman-adv: Replace a seq_puts() call by seq_putc() in two functions
2017-05-23 12:09:14 +02:00
bat_v.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
bat_v_elp.c
networking: convert many more places to skb_put_zero()
2017-06-16 11:48:35 -04:00
bat_v_elp.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
bat_v_ogm.c
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
bat_v_ogm.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
bitarray.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
bitarray.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
bridge_loop_avoidance.c
batman-adv: Print correct function names in dbg messages
2017-05-23 14:34:31 +02:00
bridge_loop_avoidance.h
batman-adv: prevent multiple ARP replies sent by gateways if dat enabled
2017-03-22 10:30:53 +01:00
debugfs.c
batman-adv: Fix includes for IS_ERR/ERR_PTR
2017-01-28 10:40:35 +01:00
debugfs.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
distributed-arp-table.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-06-15 11:59:32 -04:00
distributed-arp-table.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
fragmentation.c
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
fragmentation.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
gateway_client.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
gateway_client.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
gateway_common.c
Here are two batman-adv bugfixes:
2017-03-16 12:05:38 -07:00
gateway_common.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
hard-interface.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
hard-interface.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
hash.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
hash.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
icmp_socket.c
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
icmp_socket.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
Kconfig
batman-adv: Allow selecting BATMAN V if CFG80211 is not built
2016-10-17 16:28:48 +02:00
log.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
log.h
batman-adv: Fix possible side-effects in _batadv_dbg
2017-03-16 21:14:52 +01:00
main.c
batman-adv: restructure rebroadcast counter into forw_packet API
2017-03-26 12:46:44 +02:00
main.h
batman-adv: decrease maximum fragment size
2017-05-23 12:09:13 +02:00
Makefile
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
multicast.c
batman-adv: Reduce preprocessor checks in multicast.c
2017-03-16 21:14:50 +01:00
multicast.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
netlink.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
netlink.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
network-coding.c
batman-adv: Combine two seq_puts() calls into one call in batadv_nc_nodes_seq_print_text()
2017-05-23 12:09:15 +02:00
network-coding.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
originator.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
originator.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
packet.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
routing.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-06-15 11:59:32 -04:00
routing.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
send.c
batman-adv: Print correct function names in dbg messages
2017-05-23 14:34:31 +02:00
send.h
batman-adv: restructure rebroadcast counter into forw_packet API
2017-03-26 12:46:44 +02:00
soft-interface.c
net: Fix inconsistent teardown and release of private netdev state.
2017-06-07 15:53:24 -04:00
soft-interface.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
sysfs.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
sysfs.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
tp_meter.c
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
tp_meter.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
translation-table.c
batman-adv: fix TT sync flag inconsistencies
2017-07-31 11:17:38 +02:00
translation-table.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
tvlv.c
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
tvlv.h
batman-adv: update copyright years for 2017
2017-01-26 08:34:19 +01:00
types.h
batman-adv: fix TT sync flag inconsistencies
2017-07-31 11:17:38 +02:00