From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFD3BC432C0 for ; Tue, 3 Dec 2019 19:43:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 85F17206EC for ; Tue, 3 Dec 2019 19:43:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Bx8XtEFT"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="lA3ApHna" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 85F17206EC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xVM0ZlCu8wCJFWvGoLp8Vvw8RyDmEm4ZaQfr89244oE=; b=Bx8XtEFTwNnwzg k+p3oqgrMMtPSTs1JpSgHAyrYPlE4KRywHeBYAl0pxCfC4adlFvB1e2l65JQS/oXd2Pm9dqClP1Ao 2ZQaRUpFGGEb9/U/3hn8vS1bk3MQ7YlinXy5X9O7c0xrAipgYfpYWgRZlGByyPu69gehbh0mNZEHl E9KZ5MmvZa2A8qzfGMPv0Bms8091RZHFIDMBHW8uZT5wwH4nE+jyNg9WjJhSVtmR1BOi+0m+wYs8K m//BtGV0wocyq2uT1lNCxPcM9AQaIcwA7l5M1Vq/56w/hb2hnhy20rWtRXN+nW7MXVi9o/i05Tw9Y aQ7iXV9EZmxUQnsJvjKA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1icE5A-0007I8-KV; Tue, 03 Dec 2019 19:43:36 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1icE57-0007He-Qo for linux-arm-kernel@lists.infradead.org; Tue, 03 Dec 2019 19:43:35 +0000 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 969AC206EC; Tue, 3 Dec 2019 19:43:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575402213; bh=SM0rYSykbk7tf2FAMkHp85Q+Xwfmlf1KnW/8RwZfe5c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lA3ApHnaIe4TfRVp1tYFqtZxuNftBqD6Ls3dtM2j3Hf3vCKnnDuiLAUT15EGJV551 GJ1iJzz7CW0GF2Qm+z3ZjCuwHPLn/1rW+c1Uh1G3PxsrKM0tDWogSG3nGeSJElfia2 Z2728TFQbUxqcqxvmZXmm+4fpxdPWqa/K4RImHx0= Date: Tue, 3 Dec 2019 20:43:30 +0100 From: Greg KH To: Mathieu Poirier Subject: Re: [stable 4.19][PATCH 06/17] remoteproc: fix rproc_da_to_va in case of unallocated carveout Message-ID: <20191203194330.GA2847072@kroah.com> References: <20191128165002.6234-1-mathieu.poirier@linaro.org> <20191128165002.6234-7-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191128165002.6234-7-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191203_114333_930364_47832E69 X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Nov 28, 2019 at 09:49:51AM -0700, Mathieu Poirier wrote: > From: Loic Pallardy > > commit 74457c40f97a98142bb13153395d304ad3c85cdd upstream > > With introduction of rproc_alloc_registered_carveouts() which > delays carveout allocation just before the start of the remote > processor, rproc_da_to_va() could be called before all carveouts > are allocated. > This patch adds a check in rproc_da_to_va() to return NULL if > carveout is not allocated. > > Fixes: d7c51706d095 ("remoteproc: add alloc ops in rproc_mem_entry struct") This commit only shows up in 4.20, not 4.19, so why is this patch relevant for 4.19? thanks, greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel