linux/net/batman-adv
Linus Lüssing 5d02b3cdfa batman-adv: Make bat_priv->curr_gw an rcu protected pointer
The rcu protected macros rcu_dereference() and rcu_assign_pointer()
for the bat_priv->curr_gw need to be used, as well as spin/rcu locking.

Otherwise we might end up using a curr_gw pointer pointing to already
freed memory.

Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Linus Lüssing <linus.luessing@ascom.ch>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
2011-03-05 12:50:10 +01:00
..
Kconfig
Makefile batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
aggregation.c batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
aggregation.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
bat_debugfs.c batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
bat_debugfs.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
bat_sysfs.c batman-adv: Correct rcu refcounting for batman_if 2011-03-05 12:50:07 +01:00
bat_sysfs.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
bitarray.c batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
bitarray.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
gateway_client.c batman-adv: Make bat_priv->curr_gw an rcu protected pointer 2011-03-05 12:50:10 +01:00
gateway_client.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
gateway_common.c batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
gateway_common.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
hard-interface.c batman-adv: Correct rcu refcounting for batman_if 2011-03-05 12:50:07 +01:00
hard-interface.h batman-adv: Correct rcu refcounting for batman_if 2011-03-05 12:50:07 +01:00
hash.c batman-adv: protect each hash row with rcu locks 2011-03-05 12:49:58 +01:00
hash.h batman-adv: protect each hash row with rcu locks 2011-03-05 12:49:58 +01:00
icmp_socket.c batman-adv: Correct rcu refcounting for neigh_node 2011-03-05 12:50:03 +01:00
icmp_socket.h batman-adv: Remove duplicate types.h inclusions 2011-02-11 23:30:29 +01:00
main.c batman-adv: Remove duplicate types.h inclusions 2011-02-11 23:30:29 +01:00
main.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
originator.c batman-adv: make broadcast seqno operations atomic 2011-03-05 12:50:09 +01:00
originator.h batman-adv: Correct rcu refcounting for neigh_node 2011-03-05 12:50:03 +01:00
packet.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
ring_buffer.c batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
ring_buffer.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
routing.c batman-adv: make broadcast seqno operations atomic 2011-03-05 12:50:09 +01:00
routing.h batman-adv: protect bonding with rcu locks 2011-03-05 12:50:01 +01:00
send.c batman-adv: Remove duplicate types.h inclusions 2011-02-11 23:30:29 +01:00
send.h batman-adv: Remove duplicate types.h inclusions 2011-02-11 23:30:29 +01:00
soft-interface.c batman-adv: Correct rcu refcounting for softif_neigh 2011-03-05 12:50:05 +01:00
soft-interface.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
translation-table.c batman-adv: protect each hash row with rcu locks 2011-03-05 12:49:58 +01:00
translation-table.h batman-adv: Remove duplicate types.h inclusions 2011-02-11 23:30:29 +01:00
types.h batman-adv: Make bat_priv->curr_gw an rcu protected pointer 2011-03-05 12:50:10 +01:00
unicast.c batman-adv: Correct rcu refcounting for neigh_node 2011-03-05 12:50:03 +01:00
unicast.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
vis.c batman-adv: Correct rcu refcounting for neigh_node 2011-03-05 12:50:03 +01:00
vis.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00