From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752220AbdGDIjv (ORCPT ); Tue, 4 Jul 2017 04:39:51 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:46102 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751614AbdGDIju (ORCPT ); Tue, 4 Jul 2017 04:39:50 -0400 Date: Tue, 04 Jul 2017 01:39:38 -0700 (PDT) Message-Id: <20170704.013938.680822769277278352.davem@davemloft.net> To: elena.reshetova@intel.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jmorris@namei.org, kaber@trash.net, yoshfuji@linux-ipv6.org, steffen.klassert@secunet.com, kuznet@ms2.inr.ac.ru, peterz@infradead.org, keescook@chromium.org Subject: Re: [PATCH 0/9] v2 ipv4/ipv6 refcount conversions From: David Miller In-Reply-To: <1499150102-7478-1-git-send-email-elena.reshetova@intel.com> References: <1499150102-7478-1-git-send-email-elena.reshetova@intel.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 04 Jul 2017 01:39:49 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Elena Reshetova Date: Tue, 4 Jul 2017 09:34:53 +0300 > Changes in v2: > * rebase on top of net-next > * currently by default refcount_t = atomic_t (*) and uses all > atomic standard operations unless CONFIG_REFCOUNT_FULL is enabled. > This is a compromise for the systems that are critical on > performance (such as net) and cannot accept even slight delay > on the refcounter operations. > > This series, for ipv4/ipv6 network components, replaces atomic_t reference > counters with the new refcount_t type and API (see include/linux/refcount.h). > By doing this we prevent intentional or accidental > underflows or overflows that can led to use-after-free vulnerabilities. > > The patches are fully independent and can be cherry-picked separately. > In order to try with refcount functionality enabled in run-time, > CONFIG_REFCOUNT_FULL must be enabled. ... Series applied, thanks.