Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp361543pxb; Thu, 7 Apr 2022 07:34:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGweWwuVeKexWCQBWhkqNGAT1EyRBMUJjh7EdFokyH+jueXvGqr91MQE9DnDK4rgVAdbqE X-Received: by 2002:a17:907:6e88:b0:6da:8f01:7a8f with SMTP id sh8-20020a1709076e8800b006da8f017a8fmr13981802ejc.619.1649342055500; Thu, 07 Apr 2022 07:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649342055; cv=none; d=google.com; s=arc-20160816; b=puiIwqMs+kMnVgwAW7w4iNDzWD2G52nQQj9uaFYuwDW9Un0E4jln+KKXewHkggGOOb 06Ws2FG3IjmLkriSXriMAZAIbXun3Vd0P82gx8UNa0aq+vKDtGnidlSRwyPXwAaB8dXp 3TFURryiiWdy4JP2T2O17c6XZZz4M3evW63snn8nHElJvD+GctTQfT0aionFzLrPoE0m pyzUW6slblShuAcCDBN5t7yy2Wz9/NLS07iiPZMYGek5fhEbRL/TxLIFEO+HBV4owDb2 JWgiyBsepZlnhNRCoornro3B4RTafN7kf8jA00oyp9VMLjHDSsTd/ewC+EHKszifdKd4 j7ww== 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=9tmb94Vnr/m1iiTombsEjR+CsqwafFX61UIDruzVV9I=; b=TuS+aW0RGEOh1qyirusHKRi2PqUFhyjXJi3yeLlrn63Ta6sJoT77GaoH6FD3KpUdLZ o2D7w6JIZq52xzFb6KL8l2jGJf6jQPbdH87Df5FzuPQBC0BIXUC41Ig4JMOhD32s8w++ p0Y45/ncX/EJyQpDcjGvyELVGZM++wqsU3C6yfSo1jl9L7xKyDsUeV4duFpJDkjTZc1e zhdYHPXnQ4yXCOlhOo05cg8mNqwRswtmMpoEYW2492Y7yWcarzoYnrDKkPvdlwYJm0wP 0aES/ocEtpJDixFUO+ErweF7zbia7gKyiX0A9kxFJ+ZEZNnL3XrFSOzlhP1mB8bpQEOA GMMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bl64EKsu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a170906448e00b006df76385f02si14415577ejo.930.2022.04.07.07.33.49; Thu, 07 Apr 2022 07:34:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bl64EKsu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244356AbiDGKjY (ORCPT + 99 others); Thu, 7 Apr 2022 06:39:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244943AbiDGKiK (ORCPT ); Thu, 7 Apr 2022 06:38:10 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14F4B18F22B for ; Thu, 7 Apr 2022 03:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649327769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9tmb94Vnr/m1iiTombsEjR+CsqwafFX61UIDruzVV9I=; b=Bl64EKsuTlIuV9mtVAm6THZSeXS3E+VHmplGkGRKGHsGxTr+J3KLU0HCozp7qDcU3XaZfh NGYvz/vrfatqH9E8BC85yiX8zfnvXNwcT7lpAie6a+CobhYqBhGH3iaMCDLqQZ811ST7NF geEM3RaEILEDYrZophJH3b5dHDFSTG8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-479-m1pDVn1JM7SgfIYbB3R6ug-1; Thu, 07 Apr 2022 06:36:06 -0400 X-MC-Unique: m1pDVn1JM7SgfIYbB3R6ug-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 24CE11066680; Thu, 7 Apr 2022 10:36:05 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 74C117B7C; Thu, 7 Apr 2022 10:36:04 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 0721218000B3; Thu, 7 Apr 2022 12:36:03 +0200 (CEST) Date: Thu, 7 Apr 2022 12:36:02 +0200 From: Gerd Hoffmann 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 , Greg KH , Andrew Scull , Dave Hansen , "Dr. David Alan Gilbert" , Lenny Szubowicz , Peter Gonda , Matthew Garrett , 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 v9 2/4] virt: Add efi_secret module to expose confidential computing secrets Message-ID: <20220407103602.5hblcyz4zzocjgcw@sirius.home.kraxel.org> References: <20220331215607.3182232-1-dovmurik@linux.ibm.com> <20220331215607.3182232-3-dovmurik@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220331215607.3182232-3-dovmurik@linux.ibm.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 31, 2022 at 09:56:05PM +0000, Dov Murik wrote: > The new efi_secret module exposes the confidential computing (coco) > EFI secret area via securityfs interface. > > When the module is loaded (and securityfs is mounted, typically under > /sys/kernel/security), a "secrets/coco" directory is created in > securityfs. In it, a file is created for each secret entry. The name > of each such file is the GUID of the secret entry, and its content is > the secret data. > > This allows applications running in a confidential computing setting to > read secrets provided by the guest owner via a secure secret injection > mechanism (such as AMD SEV's LAUNCH_SECRET command). > > Removing (unlinking) files in the "secrets/coco" directory will zero out > the secret in memory, and remove the filesystem entry. If the module is > removed and loaded again, that secret will not appear in the filesystem. > > Signed-off-by: Dov Murik Reviewed-by: Gerd Hoffmann take care, Gerd