Thread (2 messages) flat view 2 messages, 2 authors, 2018-10-16

Re: [net 1/1] tipc: fix unsafe rcu locking when accessing publication list

From: David Miller <davem@davemloft.net>
Date: 2018-10-16 13:22:41

From: Jon Maloy <redacted>
Date: Fri, 12 Oct 2018 22:46:55 +0200
From: Tung Nguyen <redacted>

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 <redacted>
Signed-off-by: Jon Maloy <redacted>
Applied and queued up for -stable.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help