Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1173631ybz; Wed, 29 Apr 2020 16:29:44 -0700 (PDT) X-Google-Smtp-Source: APiQypIjnPaM3wFRyeDdfWayKWK/6bp2Dp4MlRd4PqMVTVZqSauZOQ3WBCJBrLPQVolZtDCyQITh X-Received: by 2002:a17:906:d968:: with SMTP id rp8mr160416ejb.305.1588202984528; Wed, 29 Apr 2020 16:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588202984; cv=none; d=google.com; s=arc-20160816; b=Boj8JnD+o+rEfEfl2mAuy3zyBt09h/L3WUrfzdXMA8yWEHi5Fj6EqageVhDz2j7hZx CotWLz7J+gxk1cWetB8l2Xl4wcQID5weeeQ5f/keLS7+U5cniipRAFC0TjWxKwqOYbNk 49gB+EjyjvhSi8fTp89BIym9lR0hj7Sg7ddirSTe4WX8MjjZvCHSwcj3k4mMf/CrMw43 gaqsS//V3LRdsKvUpnRmfRAMsmSSFASDZC4V1JN18RAtSseS9abBcv2p3i+98MVq2+jU GaKsUSQQMlgDdwr1Ntpq7PCkLUukGo7CCU9Ca4daimHUdyMtWXQy+9m/BByqqtE2c3XD nqDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wzW2QoswANOc4BdubXXSnIPlG+98WpqoMVNvKMZnN90=; b=HnOvl2/FIYN0msbKQwhHASwDwg2cYdEZMNoIFA9XG4q1rtmF/ONwBj0KmWqH4V+Knd rOY217V+kdfIOtQXRlCIn8piQ+ZOlh0YG56ehyco9vG2MC0CrDO/8pzbNnGa6sJ0T8nq rLqiUL+vlHUvScOQxsWOg3rQ967nMH2Tgfpf1lZHp9B1HYJ11+uYhPi1xKDjr5ZNolNY Op0ZRE8J7NkEa6nd4t9Ak2SX6M6d1uq5LmJ4NIWy68Lmjem/h4q3RsAVbhayCdGaPZIc puS0irbD+8gzYQ/qM8LVrSrAir0bZVPbdp7DJogaJK1JrfRvPAsy5umTI5DrERIFSVUW pnfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eA7p5JCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si915496edt.274.2020.04.29.16.29.20; Wed, 29 Apr 2020 16:29:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eA7p5JCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726955AbgD2X05 (ORCPT + 99 others); Wed, 29 Apr 2020 19:26:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbgD2X05 (ORCPT ); Wed, 29 Apr 2020 19:26:57 -0400 Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CE3CC035495 for ; Wed, 29 Apr 2020 16:26:57 -0700 (PDT) Received: by mail-vs1-xe42.google.com with SMTP id 1so2593531vsl.9 for ; Wed, 29 Apr 2020 16:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wzW2QoswANOc4BdubXXSnIPlG+98WpqoMVNvKMZnN90=; b=eA7p5JCBVyNn88KfixBzJiT1YbieVZWfEMsnVvZKOME6ZOaQyKuCYAlB9zqkCbaLX6 Z8PSkYKabeGxUhxqpr4bIZyvkRrU40wg/ObnKdb+hwBj37ZYmQc9xjlvRK0BUOPT8m4c Waxov2b/Z7BTAuQ6+05KRfg+QVkMcrq4i2i3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wzW2QoswANOc4BdubXXSnIPlG+98WpqoMVNvKMZnN90=; b=Fpe4Ku37spsJXwt3XADU0j5IfEYsfsE0IQSkhQrGzL3oxYC7laSOaFfw3BA3t8OPNz r7BsG/VUcUbci5LCqj5pASEIBInXWQhTxt1jKSHIcNGJYOtBMCgV+lmKbYVJBU/dGE1k kigXHYe8sJmrc6AYC3FbG4QMkgVkPHEcsMKkkMymxK7rPVexo1c5QlXBqwkUBvQpoPKF 0DFE6cNxNKGt08PyixVt2juTvQni72JUsYSExYthIH8zijHfRwZQecCFLHl+mAKGVSmw Sk9FcyFgqTzV3KB4kz1+XoQ5GEk6bNLxmecvNdz6iThek3ISIP/tL+kwsZjXDaVZ3Rjw aCKw== X-Gm-Message-State: AGi0PuZBUZZiM/8HDZwoF2biH2dHUNE9onFAzh7QPKrbqoDhm1QEkMG4 NTVO3Pil3fEgPhs4Oon2n9kBNqx3u8I= X-Received: by 2002:a67:d81b:: with SMTP id e27mr900645vsj.40.1588202815926; Wed, 29 Apr 2020 16:26:55 -0700 (PDT) Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com. [209.85.217.44]) by smtp.gmail.com with ESMTPSA id n193sm299006vkf.43.2020.04.29.16.26.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Apr 2020 16:26:55 -0700 (PDT) Received: by mail-vs1-f44.google.com with SMTP id y185so2600030vsy.8 for ; Wed, 29 Apr 2020 16:26:55 -0700 (PDT) X-Received: by 2002:a67:bd07:: with SMTP id y7mr796832vsq.109.1588202814031; Wed, 29 Apr 2020 16:26:54 -0700 (PDT) MIME-Version: 1.0 References: <20191004073736.8327-1-cleger@kalray.eu> In-Reply-To: <20191004073736.8327-1-cleger@kalray.eu> From: Doug Anderson Date: Wed, 29 Apr 2020 16:26:41 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] remoteproc: Fix wrong rvring index computation To: Ohad Ben-Cohen , Bjorn Andersson , linux-remoteproc@vger.kernel.org, LKML Cc: Clement Leger , "stable@vger.kernel.org" , Evan Green Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, 4 Oct 2019 Clement Leger wrote: > > Index of rvring is computed using pointer arithmetic. However, since > rvring->rvdev->vring is the base of the vring array, computation > of rvring idx should be reversed. It previously lead to writing at negative > indices in the resource table. > > Signed-off-by: Clement Leger > --- > drivers/remoteproc/remoteproc_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Randomly stumbled upon this in a list of patches. This patch landed in mainline as: 00a0eec59ddb remoteproc: Fix wrong rvring index computation Should it be queued up for stable? I'm guessing: Fixes: c0d631570ad5 ("remoteproc: set vring addresses in resource table") -Doug