Patch "batman-adv: Modify neigh_list only with rcu-list functions" has been added to the 4.8-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
batman-adv: Modify neigh_list only with rcu-list functions
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
batman-adv-modify-neigh_list-only-with-rcu-list-functions.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
9ca488dd53088d4fcc97258aeeccf21f63b7da1eMon Sep 17 00:00:00 2001
From: Sven Eckelmann <[email protected]>
Date: Thu, 29 Sep 2016 17:22:58 +0200
Subject: batman-adv: Modify neigh_list only with rcu-list functions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Sven Eckelmann <[email protected]>
commit 9ca488dd53088d4fcc97258aeeccf21f63b7da1e upstream.
The batadv_hard_iface::neigh_list is accessed via rcu based primitives. Thus all operations done on it have to fulfill the requirements by RCU. So using non-RCU mechanisms like hlist_add_head is not allowed because it misses the barriers required to protect concurrent readers when accessing the data behind the pointer.
--- net/batman-adv/originator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/batman-adv/originator.c +1 -1
@@ -537,7 +537,7 @@ batadv_hardif_neigh_create(struct batadvif (bat_priv->algo_ops->neigh.hardif_init) bat_priv->algo_ops->neigh.hardif_init (hardif_neigh); -hlist_add_head (&hardif_neigh->list, &hard_iface->neigh_list); +hlist_add_head_rcu (&hardif_neigh->list, &hard_iface->neigh_list); out:spin_unlock_bh (&hard_iface->neigh_list_lock);
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/batman-adv-modify-neigh_list-only-with-rcu-list-functions.patch