Files
linux/net/tipc
Tung Nguyen b3c2e8e106 tipc: fix unsafe rcu locking when accessing publication list
[ Upstream commit d3092b2efc ]

The binding table's 'cluster_scope' list is rcu protected to handle
races between threads changing the list and those traversing the list at
the same moment. We have now found that the function named_distribute()
uses the regular list_for_each() macro to traverse the said list.
Likewise, the function tipc_named_withdraw() is removing items from the
same list using the regular list_del() call. When these two functions
execute in parallel we see occasional crashes.

This commit fixes this by adding the missing _rcu() suffixes.

Signed-off-by: Tung Nguyen <tung.q.nguyen@dektech.com.au>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-04 14:51:53 +01:00
..
2018-03-23 13:12:18 -04:00
2018-03-27 13:18:09 -04:00
2018-10-10 08:55:53 +02:00
2018-03-31 22:19:52 -04:00
2016-07-26 14:26:42 -07:00
2018-03-17 17:11:46 -04:00
2018-10-10 08:55:53 +02:00