Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4508374pxb; Thu, 14 Oct 2021 06:38:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcuHQQ1aAxHxYROUAwhHJIJaKaSNymP/Zdf0rr3NLnX31J1D/OtZFZvk5lgOjGjfl9x63E X-Received: by 2002:aa7:95bd:0:b0:44d:43d1:66fd with SMTP id a29-20020aa795bd000000b0044d43d166fdmr5217626pfk.39.1634218732939; Thu, 14 Oct 2021 06:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634218732; cv=none; d=google.com; s=arc-20160816; b=fwFz36424ZkK3ZFiWfqI1RnZ+ilR45vR1ZAkOJgAqWo/Jylh4gttw4N0YI0ZBO2gK6 USNltnRXj6XN3H1yH3+0wnUyEVeVT92nwqnFMoJvdkt+/QF+otZ6Jccm+lmECuqgltBD /l9i8a8429XXzTCyRt0LBrGVMeSJ3V1wYppbiw7JVOZtL4Q1h+9irShOkTfeF5RH5Wqz xM2ZNMCulGQURq93MlQ7jkZEZ7dlY7aGAAHTgpfnbH7S5wIoJFdBQ5SxKCCKf6AOWV4r IFIkE/gSbAmHCBkyQvu6D8l/CV4/gOh10u7eJYeK+UPnhWfJpq/E58Zd+n1yFsfMrpFI 7J6Q== 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=LPIuOHHQLVfRlCvtWfdfO8Q+5f/EmVRi6P2STwk3YaM=; b=kGKxDwgyMjJopHVy4ddkLOkmqKnHyrrNLA58z6xyiEQbFJKpOkqfWg6Fgz1TRIq7Kn xIwrRSvxdsft0BYwCfAfYq7s32Gbcq60Qu31d6orTGntSXycu/PYZ5kfb7VDpuR+3rOG y+YQ9Vgc77X4g47dmOJglp2VdIDhKvUISGl4oPP9x9dCsfXSMdcV4sDcT1b1tIQ/v9E/ SQB7pbRmjTuv9rIRjEkMYTeRQOKlLRQxcVzL3dD2uXqz2ynU4JB3JfAxj+W1/CZg4ZLf m8ow5suiFKDcdLpqJ/sIlAMQ8VHWvU0NcTYB2z/Ny4Q8XqQp3Mpbr+J/U6SnvG3om3mj 8ymA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zTpbbbvx; 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 s17si4737772pfu.221.2021.10.14.06.38.39; Thu, 14 Oct 2021 06:38:52 -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=zTpbbbvx; 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 S231166AbhJNNie (ORCPT + 99 others); Thu, 14 Oct 2021 09:38:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:43200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbhJNNid (ORCPT ); Thu, 14 Oct 2021 09:38:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 10B59610F9; Thu, 14 Oct 2021 13:36:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634218588; bh=yb0ExzouNkOeX4mfCayvzzwWXqG8VFL8qAlMemOcvC4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zTpbbbvxGO5lbAptCbEEw8h+Xf8OQcLwq/+Gv3SIOLh4CyoZvCN+Oe1lbRowNaRPS c3ZIku/+kJ2fGgGNuiHK/z1oOiEjY13jAyTUfdi9esYCNiTMLbZitSUtrfJnWtceCn kBR95wrcmQyr9+FWiFE069J2vt/eXubcPCwf/dpw= Date: Thu, 14 Oct 2021 15:36:25 +0200 From: Greg KH To: Dov Murik Cc: 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" , James Bottomley , 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 v3 2/3] efi: Reserve confidential computing secret area Message-ID: References: <20211014130848.592611-1-dovmurik@linux.ibm.com> <20211014130848.592611-3-dovmurik@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211014130848.592611-3-dovmurik@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 14, 2021 at 01:08:47PM +0000, Dov Murik wrote: > When efi-stub copies an EFI-provided confidential computing (coco) > secret area, reserve that memory block for future use within the kernel. > > Signed-off-by: Dov Murik > --- > arch/x86/platform/efi/efi.c | 1 + > drivers/firmware/efi/Makefile | 2 +- > drivers/firmware/efi/coco.c | 41 +++++++++++++++++++++++++++++++++++ > drivers/firmware/efi/efi.c | 4 ++++ > include/linux/efi.h | 3 +++ > 5 files changed, 50 insertions(+), 1 deletion(-) > create mode 100644 drivers/firmware/efi/coco.c > > diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c > index 147c30a81f15..35e082e5f603 100644 > --- a/arch/x86/platform/efi/efi.c > +++ b/arch/x86/platform/efi/efi.c > @@ -93,6 +93,7 @@ static const unsigned long * const efi_tables[] = { > #ifdef CONFIG_LOAD_UEFI_KEYS > &efi.mokvar_table, > #endif > + &efi.coco_secret, Shouldn't this depend on CONFIG_EFI_SECRET? Why build all of this code if that option is not enabled? thanks, greg k-h