From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [net 1/1] tipc: fix unsafe rcu locking when accessing publication list Date: Mon, 15 Oct 2018 22:33:58 -0700 (PDT) Message-ID: <20181015.223358.494900183078195656.davem@davemloft.net> References: <1539377215-29145-1-git-send-email-jon.maloy@ericsson.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, gordan.mihaljevic@dektech.com.au, tung.q.nguyen@dektech.com.au, hoang.h.le@dektech.com.au, canh.d.luu@dektech.com.au, ying.xue@windriver.com, tipc-discussion@lists.sourceforge.net To: jon.maloy@ericsson.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:43862 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727259AbeJPNWl (ORCPT ); Tue, 16 Oct 2018 09:22:41 -0400 In-Reply-To: <1539377215-29145-1-git-send-email-jon.maloy@ericsson.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Jon Maloy Date: Fri, 12 Oct 2018 22:46:55 +0200 > From: Tung Nguyen > > 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 > Signed-off-by: Jon Maloy Applied and queued up for -stable.