Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3171448rwd; Fri, 16 Jun 2023 13:21:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ75sf06t5lrV7TMDv7yRQR8SgPuHBU0/eSI/Xmkp+fgaZdHhEN4rL+m+R6x9MlgqJnP0IHK X-Received: by 2002:a05:6a20:3d81:b0:112:cf5:d5cc with SMTP id s1-20020a056a203d8100b001120cf5d5ccmr4479076pzi.1.1686946893827; Fri, 16 Jun 2023 13:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686946893; cv=none; d=google.com; s=arc-20160816; b=l6n+MeRHyX3g1bFbjWZnH8yRXwNGMfuiKKTYg0Ge6sGlHN1mOD782JoKTS6sjlpfEG LRfLa4ySTxj4Y4ZyBvVQEzPHBFGGzRpperbLA+TNfqOkbbnwsmTLciQSre3peZ7PGbSo T6ymCQcYoTPMrFpC83EEHpLX5Tf/BAcbGcWh5IbXBcTuJWj1STSxmJlfvsjX5bT9ruI2 hSNpt8QVlt77kmLrRe8SC3maapCRuwnU1kXDS18viuZXn9N5gjnk6pGdKJK7LaAyLBNC glM0Ejo7aaQDE5WpQAfi9gMz/nhSJB/6fQoSh6erIi4sj7vsynsRHFruQ0v+iALH9E/4 aIdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qHOMwuOvfBH3goXTPmYFvxvcYPUG6lGmIDbkPVksxGs=; b=g1mTmTGsTbSwpcVgAA730kAw6UUVlZgIga2M0YbTUGHcCWF8pT1UCFcx4v3lXMO05/ 88+QT4Hy9jQfR5PyTxFpK5X/bjDeegJEnRmz09AHFc+nvddPsSy+CYLIylDLfVitW3KS kIKKlxe3ktV8Cd6aQ6e2EvXds9IGmeC9Ib4e4fHEF+fiEgotyGwaGS04QZmjHFVcAuBX 6JLcwlFHyPlkWbIa++ZJARD4ERtgq5UYXT9mYnia5ji0PiSLc04x+w4d/9oW1C857yzH Pg/g8B0weOlFXoN4mAWD3TPTtsp4EkwfD/a8JHjOR45YHUALJz6f3/FyEGXZbs2CwQQV 3cDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e23-20020a63db17000000b0053f2516faccsi3129957pgg.334.2023.06.16.13.21.17; Fri, 16 Jun 2023 13:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231865AbjFPUPS (ORCPT + 99 others); Fri, 16 Jun 2023 16:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjFPUPR (ORCPT ); Fri, 16 Jun 2023 16:15:17 -0400 Received: from cavan.codon.org.uk (cavan.codon.org.uk [176.126.240.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0D4430DD; Fri, 16 Jun 2023 13:15:14 -0700 (PDT) Received: by cavan.codon.org.uk (Postfix, from userid 1000) id 74F3540A72; Fri, 16 Jun 2023 21:15:13 +0100 (BST) Date: Fri, 16 Jun 2023 21:15:13 +0100 From: Matthew Garrett To: "Daniel P. Smith" Cc: Ross Philipson , linux-kernel@vger.kernel.org, x86@kernel.org, linux-integrity@vger.kernel.org, linux-doc@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux-foundation.org, kexec@lists.infradead.org, linux-efi@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, ardb@kernel.org, James.Bottomley@hansenpartnership.com, luto@amacapital.net, nivedita@alum.mit.edu, kanth.ghatraju@oracle.com, trenchboot-devel@googlegroups.com Subject: Re: [PATCH v6 04/14] x86: Secure Launch Resource Table header file Message-ID: <20230616201513.GA30963@srcf.ucam.org> References: <20230504145023.835096-1-ross.philipson@oracle.com> <20230504145023.835096-5-ross.philipson@oracle.com> <20230512105554.GB14461@srcf.ucam.org> <30d5891d-4747-8d67-2667-ff07628740bd@apertussolutions.com> <20230515212206.GA2162@srcf.ucam.org> <20230516014310.GA5403@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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-crypto@vger.kernel.org On Fri, Jun 16, 2023 at 04:01:09PM -0400, Daniel P. Smith wrote: > On 5/15/23 21:43, Matthew Garrett wrote: > > On Mon, May 15, 2023 at 08:41:00PM -0400, Daniel P. Smith wrote: > > > On 5/15/23 17:22, Matthew Garrett wrote: > > > > What if I don't use grub, but use something that behaves equivalently? > > > > Which value should be used here? > > > > > > Generally we would request that the bootloader submit a request to register > > > for a value to be reserved in the spec. That aside, the intent here is to > > > allow for the possibility for the DLE handler to be independent from the > > > bootloader, but this does not have to be this way. If a non-open entity > > > decides to produce their own implementation, they can freely use a > > > unallocated value at their own risk that it could be allocated to another > > > bootloader in the future. Though in this scenario it likely would not matter > > > as the non-open DLE handler would only be present when the non-open > > > bootloader was present. > > > > Is the expectation that the DLE will always be shipped with the > > bootloader? I think I'm not entirely clear on what's consuming this and > > why. > > > > No, in fact, an early idea proposed by a pair of us in the TrenchBoot > community was to have it live either as a Runtime Service that was loaded by > a UEFI app or in the coreboot UEFI payload. Ok, then I think I'm still confused. If I want to write a new bootloader but make use of the existing DLE, what contract am I establishing and what value should I be putting in here?