From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754014AbdDRO3u (ORCPT ); Tue, 18 Apr 2017 10:29:50 -0400 Received: from mga09.intel.com ([134.134.136.24]:20952 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751250AbdDRO3s (ORCPT ); Tue, 18 Apr 2017 10:29:48 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,219,1488873600"; d="scan'208";a="91248019" From: "Reshetova, Elena" To: Bjorn Helgaas CC: Stephen Hemminger , Bjorn Helgaas , 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 Thread-Topic: [PATCH 17/29] drivers, pci: convert hv_pci_dev.refs from atomic_t to refcount_t Thread-Index: AQHSloUy7QDW1qu8zE+2+pi4S/JWUKGIVvKAgAF2SwCAQWW/gIAAKNkAgAAXT6A= Date: Tue, 18 Apr 2017 14:29:43 +0000 Message-ID: <2236FBA76BA1254E88B949DDB74E612B41C8C6EB@IRSMSX102.ger.corp.intel.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> <20170307115808.16f5235e@xeon-e3> <2236FBA76BA1254E88B949DDB74E612B41C8C518@IRSMSX102.ger.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v3IETsoB010768 > On Tue, Apr 18, 2017 at 5:40 AM, Reshetova, Elena > wrote: > > > > > >> 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 > > > > Getting back on this: could you take the patch via your tree or should I resubmit > to some dedicated place with a new review-by added? > > Sorry, for some reason I had assumed this would all go as part of the > larger series. I applied it to my pci/host-hv branch with Stephen's > reviewed-by for v4.12. Thank you very much! I think I confused everyone in the beginning, but later on we decided that it is better off in small chunks and separate tress. Best Regards, Elena. > > Thanks for the ping! > > Bjorn