Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1437654pxb; Wed, 20 Oct 2021 05:14:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzILgLTFEmo3NNbiRLb+ynXj54Nh4SY1hDCQqMSFCztDAN7GyXMSiv5wZpEEpKOAxnOreLd X-Received: by 2002:a05:6402:4389:: with SMTP id o9mr64080628edc.38.1634732072698; Wed, 20 Oct 2021 05:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634732072; cv=none; d=google.com; s=arc-20160816; b=AeKRjsy+TVXINGSzBe89fVcEWhNPYRyAyGjOeF8lb0zOVhyRnNzJJk+SJMRq9vhY7Q 0Y6B2kAz06xxXo6GQMytk7eNHaj59wxAHTW+3QW04D39cDroNg5o3A8dfYlzw21wKHUb CobpA6eeqldcaNiONewOegJvCn8i4IYtDUosJxIr6rXd1uMWEGWvrDbPoqErA5YHTajz z9lPbc0p7yN4PQ4AKAoBadErQmGUs48uDgCmaY5bRHxvfHsq0WkyOxo0RCjJRxnWl9L3 tz5A/RaoqnhiD4PufkdPpU1TOm6f8fKS2tUCeVY+7F8DPUdys2JGDpZqFx7m0Eq1TxdT outQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/NEeh0EdG+dqNvTtuqAE2poBwt67SRnzQ60OTrcP664=; b=NtupeBrynAnzEp26QcL7BFcqWy56LUDWWDdoHgXUdBcQvTbDL5AKtjnQ+uX4lz9x10 fBcC7U4CKxVDee8dLd4uBOLn9xKLsOCovIvokgPNozs/zEdShn5j6BeDdvAxZyR20Nb/ OGQy0cvRMafdMXz02kOUhyehnnx3MDICM//esB1ScAG4jxWpxNmi5K1gE3DUQkUFp6hr 8Kumtf4mICNXgBuPdwyf+W47iO3PAmNN3NRRl8EhGNHX+9cgSRrVnSchByIHmapoL8OY 54AGhQRnmAcO6GMZJquiE4wrKmZXLrRZtXR/6es/DwUGlME8dltOKaG+wVozsfQkksXk EcSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KnG137Ux; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci22si2788708ejb.240.2021.10.20.05.14.07; Wed, 20 Oct 2021 05:14:32 -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=@linuxfoundation.org header.s=korg header.b=KnG137Ux; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbhJTMOD (ORCPT + 99 others); Wed, 20 Oct 2021 08:14:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:43730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbhJTMOC (ORCPT ); Wed, 20 Oct 2021 08:14:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3B553611C6; Wed, 20 Oct 2021 12:11:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634731908; bh=/7MMHoYfZK7XLnUrE2PQLC1zWR1tC3EW2Hg6y4POQUA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KnG137UxBUNq+tAFiuBegbFpBqPiWBkXFxzbh0G/hCORY/I1RUNpOzov3Yaun84At kkxE+Vr5ue7UsnvsRDv2JDt/bun8Kvz9SSjvfQ+xX/8L0e3KU9lg1VtUnMJgNO64PC ZluY515zwhcw+NufsIT5v0Z9fRRT9CDvvc7d9xVE= Date: Wed, 20 Oct 2021 14:11:46 +0200 From: Greg KH To: James Bottomley Cc: Dov Murik , linux-efi@vger.kernel.org, Borislav Petkov , Ashish Kalra , Brijesh Singh , Tom Lendacky , Ard Biesheuvel , James Morris , "Serge E. Hallyn" , Andi Kleen , Andrew Scull , Dave Hansen , "Dr. David Alan Gilbert" , Tobin Feldman-Fitzthum , Jim Cadden , Daniele Buono , linux-coco@lists.linux.dev, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/3] efi/libstub: Copy confidential computing secret area Message-ID: References: <20211020061408.3447533-1-dovmurik@linux.ibm.com> <20211020061408.3447533-2-dovmurik@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 08:00:28AM -0400, James Bottomley wrote: > On Wed, 2021-10-20 at 08:39 +0200, Greg KH wrote: > > On Wed, Oct 20, 2021 at 06:14:06AM +0000, Dov Murik wrote: > [...] > > > + help > > > + Copy memory reserved by EFI for Confidential Computing (coco) > > > + injected secrets, if EFI exposes such a table entry. > > > > Why would you want to "copy" secret memory? > > > > This sounds really odd here, it sounds like you are opening up a > > security hole. Are you sure this is the correct text that everyone > > on the "COCO" group agrees with? > > The way this works is that EFI covers the secret area with a boot time > handoff block, which means it gets destroyed as soon as > ExitBootServices is called as a security measure ... if you do nothing > the secret is shredded. This means you need to make a copy of it > before that happens if there are secrets that need to live beyond the > EFI boot stub. Ok, but "copy secrets" does sound really odd, so you all need a much better description here, and hopefully somewhere else in Documentation/ to describe exactly what this new API is and is to be used for. Otherwise I read this as "hey a backdoor to read the secrets I wasn't supposed to be able to see!" thanks, greg k-h