Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2970779rdb; Fri, 22 Sep 2023 13:47:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmuq29YR7lAGxuQMh3LBEIXYh9s3H66/sQFqU9ORr+5qWFvbQbjuYxSsXp36d/r/G/dvdM X-Received: by 2002:a05:6a00:1248:b0:691:21:d9a3 with SMTP id u8-20020a056a00124800b006910021d9a3mr529987pfi.29.1695415669464; Fri, 22 Sep 2023 13:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695415669; cv=none; d=google.com; s=arc-20160816; b=lLaeeF57uVU9skK0PJBjVhq+4aHu43+emImPDP331nMTZAe7OM6BV0hEKANyHkTDTe hGPsl+8i6bWBJV/Fu/rXCwSEaKYS0PRHlFSln3fSn6PiYp03p33Rop+XNiks6Kxx+3Y4 s4fhLzzYCINwn2P0o+FmlR/MJJwPJbfL7kTP6WXv1LAty06guMvCL4iUNE5wFSK0rzlC LXuQURDemjThdlsfcQOi/hx4HYi0zBzM4rEzRV/ikGxiXuCvEMABJmJuw9B2PnmVCulp 3IS9C8k2+zTJhq5yKDrgmYz13tP/cCfSQNXgHcr1R/SLz4whPS/i9tkgpGqX4AC9P2JO EbhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RcHl6kwXaiSYVu5dXmKN5MtN8FbwuDqIEoAhgu/F9r0=; fh=WVyfjTxoVYC3xbwoiGqF5pvFxlmiXHmJp0fB9jr+klk=; b=mZxvovF4tiR8ALZzYC9d4ZUP2lQCwtTkCG2LUsAWklZ1nK19vRdq2oLN+/MJ80j9Hw A9bOr+UnBBMpXvFj8s5kDL8vyYYBDQrE3pZu9U8fswSaa7HIfVFcGZSiXjlZaQRnhZQC iA8MZzWgDUUyWi6WnwMRLrpbzeRSTFM9vdXzRMlkpwPRegiiVh0RLEPwstL9VLKTwDmL 1hVatTuRRiAOw7fYQHXL/iV6RaGWwBlUbxakcJp1eAHEzk7TzCdtf0ELPSi44SHcJVuE u4o7y55OREoJXd28i1vi0uGpb93ucYX5Ce8WUQv3zm8zziuXAvw7htmgPCGetdHOOEjf qi3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=exwkfWhB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id a35-20020a631a63000000b00578b40703bcsi4300078pgm.885.2023.09.22.13.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 13:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=exwkfWhB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 54F1A8061569; Fri, 22 Sep 2023 02:25:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231180AbjIVJZu (ORCPT + 99 others); Fri, 22 Sep 2023 05:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjIVJZt (ORCPT ); Fri, 22 Sep 2023 05:25:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A576CCE; Fri, 22 Sep 2023 02:25:43 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7E17C433C7; Fri, 22 Sep 2023 09:25:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1695374743; bh=MwiAl2OmUZtagJvVNwfbJoo0d7SmvqIR/m1GHGeUvUk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=exwkfWhBB7UHqxU9mxyvs2+oe4sgHDKS4tXpZFVeNZdzKEjUcyfzOjSGx85sMdXA4 EFr2cbFHyK0lnY+cx5SoMp+55ZS5IM14IXl+ryDZhqn+BVqvZKDEK3kt8nekfOhOZj b9RXXR7+ORkemS06SxEv2K+Np7QGnk7lWa/6qI7Q= Date: Fri, 22 Sep 2023 11:25:41 +0200 From: Greg KH To: "Jitindar Singh, Suraj" Cc: "maz@kernel.org" , "vdonnefort@google.com" , "philmd@linaro.org" , "james.morse@arm.com" , "suzuki.poulose@arm.com" , "oliver.upton@linux.dev" , "qperret@google.com" , "kvmarm@lists.linux.dev" , "catalin.marinas@arm.com" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "stable@vger.kernel.org" , "will@kernel.org" , "linux-kernel@vger.kernel.org" , "alexandru.elisei@arm.com" Subject: Re: [PATCH stable 6.1.y 1/2] KVM: arm64: Prevent the donation of no-map pages Message-ID: <2023092243-eliminate-unless-cc2b@gregkh> References: <20230920192729.694309-1-surajjs@amazon.com> <878r903snv.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 22 Sep 2023 02:25:50 -0700 (PDT) On Thu, Sep 21, 2023 at 10:22:54PM +0000, Jitindar Singh, Suraj wrote: > On Thu, 2023-09-21 at 08:13 +0100, Marc Zyngier wrote: > > On Wed, 20 Sep 2023 20:27:28 +0100, > > Suraj Jitindar Singh wrote: > > > > > > From: Quentin Perret > > > > > > commit 43c1ff8b75011bc3e3e923adf31ba815864a2494 upstream. > > > > > > Memory regions marked as "no-map" in the host device-tree routinely > > > include TrustZone carev-outs and DMA pools. Although donating such > > > pages > > > to the hypervisor may not breach confidentiality, it could be used > > > to > > > corrupt its state in uncontrollable ways. To prevent this, let's > > > block > > > host-initiated memory transitions targeting "no-map" pages > > > altogether in > > > nVHE protected mode as there should be no valid reason to do this > > > in > > > current operation. > > > > > > Thankfully, the pKVM EL2 hypervisor has a full copy of the host's > > > list > > > of memblock regions, so we can easily check for the presence of the > > > MEMBLOCK_NOMAP flag on a region containing pages being donated from > > > the > > > host. > > > > > > Reviewed-by: Philippe Mathieu-Daud? > > > Tested-by: Vincent Donnefort > > > Signed-off-by: Quentin Perret > > > Signed-off-by: Will Deacon > > > Signed-off-by: Marc Zyngier > > > Link: > > > https://lore.kernel.org/r/20221110190259.26861-8-will@kernel.org > > > [ bp: clean ] > > > > What is this? > > Noting any details about the backport. In this case it was a clean > backport. > > > > > > Signed-off-by: Suraj Jitindar Singh > > > > What is the rationale for backporting this? It wasn't tagged as Cc: > > to > > stable for a reason: pKVM isn't functional upstream, and won't be for > > the next couple of cycles *at least*. > > > > So at it stands, I'm against such a backport. > > > > The 2 patches were backported to address CVE-2023-21264. > This one provides context for the proceeding patch. > > I wasn't aware that it's non functional. Does this mean that the code > won't be compiled or just that it can't actually be run currently from > the upstream codebase? > > I guess I'm trying to understand if the conditions of the CVE are a > real concern even if it isn't technically functional. Why do you think the CVE is actually even valid? Who filed it and why? Remember, CVEs almost never mean anything for the kernel, they are not able to be given out by the kernel security team, and they just don't make any sense for us. I'll go drop these patches from the stable queues for now, and wait for you all to agree what is happening here. thanks, greg k-h