From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751129AbdCQLwH (ORCPT ); Fri, 17 Mar 2017 07:52:07 -0400 Received: from mail.us.es ([193.147.175.20]:56638 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750999AbdCQLwD (ORCPT ); Fri, 17 Mar 2017 07:52:03 -0400 Date: Fri, 17 Mar 2017 12:50:58 +0100 From: Pablo Neira Ayuso To: Elena Reshetova Cc: netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, kadlec@blackhole.kfki.hu, peterz@infradead.org, Hans Liljestrand , Kees Cook , David Windsor Subject: Re: [PATCH] net, netfilter: refcounter conversions Message-ID: <20170317115058.GB4979@salvia> References: <1489651414-27511-1-git-send-email-elena.reshetova@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1489651414-27511-1-git-send-email-elena.reshetova@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 16, 2017 at 10:03:34AM +0200, Elena Reshetova wrote: > refcount_t type and corresponding API (see include/linux/refcount.h) > should be used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations. Applied, thanks.