Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp940884lqp; Thu, 23 May 2024 04:59:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOsDBXaZ0+HJYxsbrOvkqOBJKq/iSGwTznGKBo8pa+SFQUB7szintB7gGQJEASlX0NafJmcYZ9oFH/R/++VBLBX8/2APWrGMMnIkIXyw== X-Google-Smtp-Source: AGHT+IFEpUskcuD2/icyNHL/toQVDHt4RFFnPZwyQeAO7rqqHLCGUnUs8H7l+lo1GxOF3zBbd7DA X-Received: by 2002:a50:9f67:0:b0:573:50a6:d3b0 with SMTP id 4fb4d7f45d1cf-57832a07e05mr2864592a12.3.1716465549772; Thu, 23 May 2024 04:59:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716465549; cv=pass; d=google.com; s=arc-20160816; b=gdFYLLGfvuYxDXcTI6Vx5cQWTJ2FAstgPJKzHDJ0I+X/f/yoWnpAHNPP6SMB9jNNGU pmHN0jj3YDuCHwliLCWiZlYTZ8OT+j93b97shItLdVGqiZiBTi9FYzDgg85IjEBnsMPo sg+D7kUGE8h1t4EmpiTpD4VtSE2zv2lqAFtfjrHXtyp4noh7ZaPmBa3xsPfSxb0c9PoM 6wobcio4IfCx0F8dxXfxDhtYsde4l9rApB4xlLfMOW5AIHzaFms8GzrrRLT6nhhSLSvK VLB3RuW9hfX4FhaN3OxpRCCSYQvtkz/BgwvhHm+KuIdNSMxcqx0/2pIDlcI+WDxOxTjf h9uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oddA+ryn/emfngrcKa2mFL2Nas+vSYhw4hln17P2sCQ=; fh=4Sa0QU16cg7ffkv4fqnDWGx+X7xcnuclbJK3cJNjvqk=; b=xFHryQrNPB3XXIbCQ/Bj1HrLl4oKmohn/N5wXcFpdz3Sm+qkxJAIPii8JMTz//mm9e TU2H49bFnYIx+HiumUfb9SaERsWYVhGMKTxm2h/Te1oXUqD3K/DWYDFwQ1ZEy2mTLjZP ivcVb5VwEHzm0ED+4wetyj4Y5a77cy1a5ketLnCcW1vmevsZcVAXGIbsPC7KSugz3N6b O1gVXml+1WqYIPPOlpFJT7g9K5fYq7beRI/Yhk+4ZyCovIjJkCBp2Fs4aCCc+abqFvw9 wT/IKstJTXMU6odXzxO8hesgW9lcZHwPHn/OQIEd+c/GoNkzo2+HGZA1GIkz0InwL5ky 7Iag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="oq5Y/6bv"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-187426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d5297si15930273a12.287.2024.05.23.04.59.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 04:59:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="oq5Y/6bv"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-187426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7C6F21F22A0D for ; Thu, 23 May 2024 11:59:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C600A13C3C4; Thu, 23 May 2024 11:59:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oq5Y/6bv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8B4113BC13; Thu, 23 May 2024 11:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716465542; cv=none; b=k72WITAKLDqy8t/F48RUnbxYwV0Qd781idLrtAhPF7x5pxpKgHGojeEZahonP5iNLI+Qfw6Cmo/IYdD+g3lCKbCW/kX4YVNR1K9HW15hA2xFtz438E04o6NUG3vpxMg+x8W6h316uc9et3bhAdlyOcskqCA5L9Vri9fo/ESRuRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716465542; c=relaxed/simple; bh=ovB6iL5IBWmYqxJJOaGrT6tWCnVgJJf3GENQRYszLvg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UPL2hHnhkj39v7VV4QR4hTE3UKcHOaXQdFeYJQp963IMbk+7zauxM2tRykBnIxKFvgGx+7JrQOS1CdQdebh3wrII/5HWxuIppy+/+v4x0yvxZ0v4bbrlsPklLn/RJCRX8+8ZFa7gfCEjhEg/gPt1JG49y4CJixEuk2cj9UTASJU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oq5Y/6bv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E3A6C2BD10; Thu, 23 May 2024 11:59:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716465541; bh=ovB6iL5IBWmYqxJJOaGrT6tWCnVgJJf3GENQRYszLvg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oq5Y/6bvRjWdw7HFKcnz6DhROjLv61OtHELAPMTdCf/sVtGEfO5SKEr3bek2LxRS2 URyZbxxyAB3t9iethVKZrGuan0nXcyAQ55yPdW5jYNhNwn6IOFFS2qgKikZjUP64km lPX/nR9U/4GrAu/XRBoguYNjTc/uggApkbzeawUw= Date: Thu, 23 May 2024 13:58:59 +0200 From: Greg Kroah-Hartman To: Sudeep Holla Cc: Dominique Martinet , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Cristian Marussi Subject: Re: [PATCH 5.4 / 5.10] firmware: arm_scmi: Harden accesses to the reset domains Message-ID: <2024052351-outward-skinny-c38b@gregkh> References: <20240513003837.810709-1-dominique.martinet@atmark-techno.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, May 13, 2024 at 10:22:21AM +0100, Sudeep Holla wrote: > On Mon, May 13, 2024 at 09:38:37AM +0900, Dominique Martinet wrote: > > From: Cristian Marussi > > > > [ Upstream commit e9076ffbcaed5da6c182b144ef9f6e24554af268 ] > > > > Accessing reset domains descriptors by the index upon the SCMI drivers > > requests through the SCMI reset operations interface can potentially > > lead to out-of-bound violations if the SCMI driver misbehave. > > > > Add an internal consistency check before any such domains descriptors > > accesses. > > > > Link: https://lore.kernel.org/r/20220817172731.1185305-5-cristian.marussi@arm.com > > Signed-off-by: Cristian Marussi > > Signed-off-by: Sudeep Holla > > Signed-off-by: Dominique Martinet > > --- > > This is the backport I promised for CVE-2022-48655[1] > > [1] https://lkml.kernel.org/r/Zj4t4q_w6gqzdvhz@codewreck.org > > > > The backport looks good and thanks for doing that. Sometimes since we > know all the users are in the kernel, we tend to ignore the facts that > they need to be backport as this was considered as theoretical issue when > we pushed the fix. We try to keep that in mind and add fixes tag more > carefully in the future. Thanks for your effort and bring this to our > attention. Now queued up, thanks greg k-h