From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755998AbdCGT6y (ORCPT ); Tue, 7 Mar 2017 14:58:54 -0500 Received: from mail-pg0-f52.google.com ([74.125.83.52]:33911 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754307AbdCGT6v (ORCPT ); Tue, 7 Mar 2017 14:58:51 -0500 Date: Tue, 7 Mar 2017 11:58:08 -0800 From: Stephen Hemminger To: Bjorn Helgaas Cc: Elena Reshetova , Stephen Hemminger , Kees Cook , linux-pci@vger.kernel.org, Haiyang Zhang , linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, Hans Liljestrand , David Windsor Subject: Re: [PATCH 17/29] drivers, pci: convert hv_pci_dev.refs from atomic_t to refcount_t Message-ID: <20170307115808.16f5235e@xeon-e3> In-Reply-To: <20170306213829.GB5305@bhelgaas-glaptop.roam.corp.google.com> References: <1488810076-3754-1-git-send-email-elena.reshetova@intel.com> <1488810076-3754-18-git-send-email-elena.reshetova@intel.com> <20170306213829.GB5305@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Mar 2017 15:38:29 -0600 Bjorn Helgaas wrote: > [+cc Hyper-V folks, -cc others] > > On Mon, Mar 06, 2017 at 04:21:04PM +0200, Elena Reshetova wrote: > > refcount_t type and corresponding API 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. > > > > Signed-off-by: Elena Reshetova > > Signed-off-by: Hans Liljestrand > > Signed-off-by: Kees Cook > > Signed-off-by: David Windsor Reviewed-by: Stephen Hemminger