Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1417123pxb; Wed, 30 Mar 2022 03:05:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2euRNcaEGKa9i+JvqPsk/mifD7QAkl2z06uTdJS+YQJWfEW7foWSMXkOvMGL6GWsY6qeM X-Received: by 2002:a17:90a:d3d3:b0:1bf:2e8d:3175 with SMTP id d19-20020a17090ad3d300b001bf2e8d3175mr4169253pjw.2.1648634713276; Wed, 30 Mar 2022 03:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648634713; cv=none; d=google.com; s=arc-20160816; b=AydRPkJ9yB6nJL+ud3zpSpFbCwjlPmpiGdV2uCNZkbpEROsqyrNa1xVxROPJHaRb5X 1rZejqxAKk+YPKI0BAQcopu5ZhwOqtfRnsj3vJzZCBpE6vPpJYNWnmQ6bI8t2BQfEr1T x33KwKu6j/nT1fWWb4wPsWAYjOyyRgKTVac2xPqsgD0O81zijEnGLq0gs/vxDh2bK4PX YppsQeE95Y27xZbz1VTR+8GZ1dPjIw6/VpNUBTJrCkiKTUpFocSB7oXdn9h9GZ6pc4Ci siLN+GQ3Hb2cn1Ml6OwTUPzLzx6QRL8f8bATLUAV71VjumBQYbsrpFH3HWLO16Ko6RtP ddEA== 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=IFCnJ4Ak7/1NlOp3x86RlohiTLrj/zV0easiZZw0m1c=; b=ItNv0WOfoGS/HQ6eGKRTgPr/k1ZmSvN0uUDAOcsXbaJacwXNmpY+gegxPzEHyKsavQ ZYYV9EO5+MLtN2b+2QJJet46FFPQ01Bpx6YVvI1Sjw1aeaYcD15shNKmKtRk80Cc9zzS nDhD77KgJZ9dn9VrG6bCxq/3Jo2vSOxT3bGysSJF09c2BeesO6fl0gDNvApZns4eC11d ubbMfvV3IGY8CxrhmGPZiWXd6KyKBjEzJwPdcJcBysck64f9k1oscczsy1ViyD1Xt2eD CQS222akgTj3JtS+mny4pcUzO979onhEk4nb0GlGNG3Z5YuvQbuOv59ysKrwanjLd6i7 3R4A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr16-20020a17090b4b9000b001c6ad6e9221si2081150pjb.35.2022.03.30.03.04.59; Wed, 30 Mar 2022 03:05:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243744AbiC3HUx (ORCPT + 99 others); Wed, 30 Mar 2022 03:20:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242175AbiC3HUv (ORCPT ); Wed, 30 Mar 2022 03:20:51 -0400 Received: from cavan.codon.org.uk (irc.codon.org.uk [IPv6:2a00:1098:84:22e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58D8F1903E4; Wed, 30 Mar 2022 00:19:01 -0700 (PDT) Received: by cavan.codon.org.uk (Postfix, from userid 1000) id DC2BB40A71; Wed, 30 Mar 2022 08:18:59 +0100 (BST) Date: Wed, 30 Mar 2022 08:18:59 +0100 From: Matthew Garrett To: Ard Biesheuvel Cc: Daniel Kiper , Alec Brown , Kanth Ghatraju , Ross Philipson , "dpsmith@apertussolutions.com" , "piotr.krol@3mdeb.com" , "krystian.hebel@3mdeb.com" , "persaur@gmail.com" , "Yoder, Stuart" , Andrew Cooper , "michal.zygowski@3mdeb.com" , James Bottomley , "lukasz@hawrylko.pl" , linux-efi , Linux Kernel Mailing List , The development of GNU GRUB , Kees Cook Subject: Re: Linux DRTM on UEFI platforms Message-ID: <20220330071859.GA992@srcf.ucam.org> References: <20220329174057.GA17778@srcf.ucam.org> <20220330071103.GA809@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=-0.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,KHOP_HELO_FCRDNS,SPF_HELO_NEUTRAL, SPF_NEUTRAL,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-kernel@vger.kernel.org On Wed, Mar 30, 2022 at 09:12:19AM +0200, Ard Biesheuvel wrote: > On Wed, 30 Mar 2022 at 09:11, Matthew Garrett wrote: > > The EFI stub carries out a bunch of actions that have meaningful > > security impact, and that's material that should be measured. Having the > > secure launch kernel execute the stub without awareness of what it does > > means it would need to measure the code without measuring the state, > > while the goal of DRTM solutions is to measure state rather than the > > code. > > But how is that any different from the early kernel code? From a conceptual perspective we've thought of the EFI stub as being logically part of the bootloader rather than the early kernel, and the bootloader is a point where the line is drawn. My guy feeling is that jumping into the secure kernel environment before EBS has been called is likely to end badly.