Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp669443ybt; Wed, 24 Jun 2020 08:24:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHmLx78rtVBWK2ZlcW1jBqrj97rOonfKxdSM4aZZ/inbBSpwrCXA7ZPl5/6JSFmXxz5I0z X-Received: by 2002:a50:cd53:: with SMTP id d19mr8473766edj.300.1593012285154; Wed, 24 Jun 2020 08:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593012285; cv=none; d=google.com; s=arc-20160816; b=oYhdhgcEoM7VVvNsRdn/uC0W54lcz8jDHLWbooo0R8RsAuEqQn4DJ43Dq2MOBfIgHg OmAgjsA2DydAmyXxB+yYB+vBLMp3FhBxfi7fCuOtH6mojCOOAQeEP/SNuFRCg7OZ7eLx 18N9LhaJ6EihNxMWFcVd6ng6rOo2A8KaddkAQxbUV0Vk27Ew8uxyfMYYmfBYISaEQazf gvC2BdnJMYWrf9gKLkqKJmcZhcwuuxphHKrGIp0Wle6a/nWVxX1sDMXRg022Cea/W8P3 uVj37/MRzFc2CvzDynNW1+K3VK31f4+eIiW1yEPGHtM2XEkeHdsaM+GGQqjdh/jklFKA qeNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hipZu7svv8YCOGWfV429rAgefIwLANWXqxhaAHNlUDs=; b=o8OFF36d+qUVSWloZwBC6gTmP220C/FJ7HtPHsWf+5mS0j0muOsY1pYjPB8hmLf/dj rUj47ogcCymgj/cHC0HwwSgRJmmaleIwfZFiRdljqopbaBzNQIC37GG+GJoQXlLmF2Dt tsaRfL6zN/Z5+9GzsYN1WKjWPZz84snYPH6H44EAsc4px9sxr999OoyD28beZzg1D5/X jS0LH7W8pzqD0yb2dWqh5aep48Gy9zIiGheN6g3u/4wh/o6oSaw8BvKJJ1yI71ANmcfV 1JeNQ6zVBGcCJQQ/K1tHILI7JqtCsULa1yoqQalweG6malXiMXhUTbAXJT45ad5otnRu 3Dpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PFUTEJVQ; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si13927689edq.265.2020.06.24.08.24.21; Wed, 24 Jun 2020 08:24:45 -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=@chromium.org header.s=google header.b=PFUTEJVQ; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404128AbgFXPVa (ORCPT + 99 others); Wed, 24 Jun 2020 11:21:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404333AbgFXPVa (ORCPT ); Wed, 24 Jun 2020 11:21:30 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04968C061795 for ; Wed, 24 Jun 2020 08:21:28 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id k1so1189025pls.2 for ; Wed, 24 Jun 2020 08:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hipZu7svv8YCOGWfV429rAgefIwLANWXqxhaAHNlUDs=; b=PFUTEJVQwh2+4QRR1nFSJ1vpBf1P1htrZ93UyqcsZYbdOmeZSMIhkYQd42QutBKyJs TJmRw7i1dvHgb8fEVkq9MnKeDv9Rz3iq8rIhQJBq5dr5O8JseercMwc1JUo8HpJOhm/L hgo66dKugSbGc/w9UC2Psf+VHkXtb5H5cZmBA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hipZu7svv8YCOGWfV429rAgefIwLANWXqxhaAHNlUDs=; b=c7ZwM7xWSaM8j/K75ANdZOCoftSsaaOyq+Cir2sguotkquYsiIE8pq3x09thHCIG9H ixFn2PrMB4UPWeD3hkDDqhGfo4O9D3nxW6qLPoz2SnimsXUZRsAZ/nSp/oFuovCHDdxj LDGk68+ECtZawFNDnKCf90PpujsHx1JNNPv3dqhWoatbwhwAVg2m2MNV7bHeVRgvr8D/ m47s5cb14i6ruil2SZjbWEeHn1ckQOCb6yRD+PXMeFCSC1zpM+ehgy4LMJqXnTBarZUT 5AbF3tc3R8pmdvEqcKhGNVOn+zuN7uTBvDe26SMnlMuI49RPMTzqssO+esknOETxDXVf VMYw== X-Gm-Message-State: AOAM531ZrzlRqSkpo0+8ykpvk7/A7P0is+su7C1lSWqA4HV80RVGOOLk 9S776wgj9HrwAGOjLt3gpnG2AQ== X-Received: by 2002:a17:90a:cc09:: with SMTP id b9mr25741536pju.223.1593012088520; Wed, 24 Jun 2020 08:21:28 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id m8sm5504017pjk.20.2020.06.24.08.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 08:21:27 -0700 (PDT) Date: Wed, 24 Jun 2020 08:21:26 -0700 From: Kees Cook To: Ard Biesheuvel Cc: Will Deacon , Fangrui Song , Catalin Marinas , Mark Rutland , Peter Collingbourne , James Morse , Borislav Petkov , Thomas Gleixner , Ingo Molnar , Russell King , Masahiro Yamada , Arvind Sankar , Nick Desaulniers , Nathan Chancellor , Arnd Bergmann , X86 ML , clang-built-linux , linux-arch , linux-efi , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH v3 3/9] efi/libstub: Remove .note.gnu.property Message-ID: <202006240820.A3468F4@keescook> References: <20200624014940.1204448-1-keescook@chromium.org> <20200624014940.1204448-4-keescook@chromium.org> <20200624033142.cinvg6rbg252j46d@google.com> <202006232143.66828CD3@keescook> <20200624104356.GA6134@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 12:46:32PM +0200, Ard Biesheuvel wrote: > I'm not sure if there is a point to having PAC and/or BTI in the EFI > stub, given that it runs under the control of the firmware, with its > memory mappings and PAC configuration etc. Is BTI being ignored when the firmware runs? -- Kees Cook