Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp725099ima; Fri, 1 Feb 2019 10:00:58 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibe8qWFoSstGlbuSAs+cyj8+fPsFsM5vH9hLV8hRG12NASMWo4DQL96o309nxo3qctsYGcc X-Received: by 2002:a17:902:8497:: with SMTP id c23mr463494plo.64.1549044058594; Fri, 01 Feb 2019 10:00:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549044058; cv=none; d=google.com; s=arc-20160816; b=TdhVxt70s5lu0f/QEpIn+NHMp03HwDY4eS8GByg4hpFeDp5H21hlf3sJl8HDVIZxD1 QY22I08lw7OIMsZwwt4PKH/8d+pXs6B48Xun1e4sBI1TxSCxI1/y6IFMIJ+irForRY7a kl3oMz+YURJPYJcPMjCG9uo5wR62qdfNk5Anb7TB0/HxL2ZWdRXjHechxX+86Sa9vkRX ajwJcwWitaWWu0vK0QrOiJolLcbOjwg7kMMctG/o2iJbSZfR4RuF3tSkbgIfB3KdaMKX VNVpOdZVSOjJyzVOTzewIYip8sNBafn/Hmb3MXG9NgYMmHU+RGG5ZXoqWVUpenxY9CU4 qSvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=L5CW91mdBfB/Sl2uNeqzLyOkaqHA5XERHkVAxCj2hd8=; b=KeAy/4HvWP/IL9ZcjIgv/8QWSHNVStPH5bOmQxn/o2QWDQUzY9KP5lHBVw+VmHlUal o4Bel7m0SzUAa3kxKcS1MYvVTFv49tHlaacQ+DEKbKNRwsFhpyBdqYRLI5xWD77KDYq+ j1SDr/aypl+M09jh5f7DO113EkfPnU7pvgbIobFRs/M+M/bPteODYx6tam5U8w2JuiWW Gqsj91NYZI5T7NEGuknEjDj0iy8TaPYPZf2ppZ4bXLBwyAXq1KYXklUmG12Yk9h/huP9 DxJkKpZ0QhWbjqNO9bRwShLTsFqZ08w5+/9ZPIfKjr1atZSidbLdZ0uWylim1Z0XJn/U 4Z/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b36si7016332pgl.596.2019.02.01.10.00.42; Fri, 01 Feb 2019 10:00:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731191AbfBARNy (ORCPT + 99 others); Fri, 1 Feb 2019 12:13:54 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35668 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726542AbfBARNy (ORCPT ); Fri, 1 Feb 2019 12:13:54 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 25A3315BE; Fri, 1 Feb 2019 09:13:54 -0800 (PST) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.197.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7BDCE3F589; Fri, 1 Feb 2019 09:13:52 -0800 (PST) Date: Fri, 1 Feb 2019 17:13:49 +0000 From: Lorenzo Pieralisi To: Stefan Agner Cc: jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, l.stach@pengutronix.de, tpiepho@impinj.com, leonard.crestez@nxp.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/3] PCI: dwc: allow to limit registers set length Message-ID: <20190201171349.GC22887@e107981-ln.cambridge.arm.com> References: <20181204165528.15534-1-stefan@agner.ch> <20190130175415.GA7715@e107981-ln.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 10:08:11AM +0100, Stefan Agner wrote: > On 30.01.2019 18:54, Lorenzo Pieralisi wrote: > > On Tue, Dec 04, 2018 at 05:55:26PM +0100, Stefan Agner wrote: > >> Add length to the struct dw_pcie and check that the accessors > >> dw_pcie_(rd|wr)_conf() do not read/write beyond that point. > >> > >> Suggested-by: Trent Piepho > >> Signed-off-by: Stefan Agner > >> --- > >> Changes in v4: > >> - Move length check to dw_pcie_rd_conf > >> > >> .../pci/controller/dwc/pcie-designware-host.c | 16 ++++++++++++++-- > >> drivers/pci/controller/dwc/pcie-designware.h | 1 + > >> 2 files changed, 15 insertions(+), 2 deletions(-) > > > > Hi Stefan, > > > > I wanted to ask you if this series should be considered for v5.1 > > inclusion, it is in the PCI backlog. If it is, let me have a look > > and if it is OK to go I will likely ask you to rebase it. > > Yes please. With this last change I did not see any regression anymore > so far. > > Andrey Smirnov picked up the second patch: "PCI: imx6: introduce > drvdata". Not sure what the plan is with his patchset, if it gets merged > into v5.1 too then I probably better drop this patch and rebase ontop of > his series. Ok, I will get back to you when I merged Andrey's series so that you can rebase on top of my pci/dwc branch with Andrey's patches applied. Lorenzo