From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: Convert atomic_t net::count to refcount_t Date: Mon, 15 Jan 2018 14:23:57 -0500 (EST) Message-ID: <20180115.142357.55179119386016179.davem@davemloft.net> References: <151577086012.22020.9600397187098638726.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, ebiederm@xmission.com To: ktkhai@virtuozzo.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:51588 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750718AbeAOTX6 (ORCPT ); Mon, 15 Jan 2018 14:23:58 -0500 In-Reply-To: <151577086012.22020.9600397187098638726.stgit@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: From: Kirill Tkhai Date: Fri, 12 Jan 2018 18:28:31 +0300 > Since net could be obtained from RCU lists, > and there is a race with net destruction, > the patch converts net::count to refcount_t. > > This provides sanity checks for the cases of > incrementing counter of already dead net, > when maybe_get_net() has to used instead > of get_net(). > > Drivers: allyesconfig and allmodconfig are OK. > > Suggested-by: Eric Dumazet > Signed-off-by: Kirill Tkhai Applied, thank you.