Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752932AbdLNNrN (ORCPT ); Thu, 14 Dec 2017 08:47:13 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:41990 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129AbdLNNrL (ORCPT ); Thu, 14 Dec 2017 08:47:11 -0500 Date: Thu, 14 Dec 2017 13:47:07 +0000 From: Lorenzo Pieralisi To: Niklas Cassel Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, kishon@ti.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/3] Fix find_first_zero_bit() usage Message-ID: <20171214134707.GE27348@e107981-ln.cambridge.arm.com> References: <20171212141634.5985-1-niklas.cassel@axis.com> <20171213215925.GJ30595@bhelgaas-glaptop.roam.corp.google.com> <20171214133230.GA25307@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171214133230.GA25307@axis.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2227 Lines: 53 On Thu, Dec 14, 2017 at 02:32:30PM +0100, Niklas Cassel wrote: > On Wed, Dec 13, 2017 at 03:59:25PM -0600, Bjorn Helgaas wrote: > > On Tue, Dec 12, 2017 at 03:16:31PM +0100, Niklas Cassel wrote: > > > find_first_zero_bit()'s parameter 'size' is defined in bits, > > > not in bytes. > > > > > > Calling find_first_zero_bit() with the wrong size unit > > > will lead to insidious bugs. > > > > > > Fix all uses of find_first_zero_bit() called with > > > sizeof() as size argument in drivers/pci. > > > > > > Also had to fix broken error handling in pci_epc_epf_link() > > > in order to do proper error handling for find_first_zero_bit(). > > > > > > Niklas Cassel (3): > > > PCI: designware-ep: Fix find_first_zero_bit() usage > > > PCI: endpoint: Fix error handling in pci_epc_epf_link() > > > PCI: endpoint: Fix find_first_zero_bit() usage > > > > > > drivers/pci/dwc/pcie-designware-ep.c | 34 ++++++++++++++++++++++++++-------- > > > drivers/pci/dwc/pcie-designware.h | 8 ++++++-- > > > drivers/pci/endpoint/pci-ep-cfs.c | 13 ++++++++----- > > > 3 files changed, 40 insertions(+), 15 deletions(-) > > > > In the interest of making forward progress, I applied these to > > for-linus for v4.15. > > > > The issues apparently have been there since v4.12-rc1, but I guess > > this is proposed for for-linus because (a) it fixes insidious bugs > > and (b) the endpoint framework is relatively little-used yet so > > low-risk. Right? > > > > Hello Bjorn, > > As far as I know, dra7xx is the only in-tree user of the endpoint > framework. Therefore, I see no real need to rush these patches. > > One benefit of sending them to v4.15 would be if anyone starts > developing endpoint support for their driver (with v4.15 as a base), > we eliminate the risk that they might get hit by these bugs, and > potentially waste time finding bugs that have already been found. > > Please note that Kishon had some last minute review comments, > so I had to submit a V5 of the patch series. I missed this message (please CC me on the cover letter too next time) I hope Bjorn can drop v4 and replace it with v5 - or I can just queue v5 for v4.16 - just let me know please how you want to handle it. Thanks, Lorenzo