Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp685692ybt; Wed, 24 Jun 2020 08:47:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3gj5OjvtARrhjFqTF9sOQk9KZULFUXIUvaYwxuwZODkeG/DgT0VQwVH92rlAhEgwO0PNu X-Received: by 2002:aa7:db57:: with SMTP id n23mr6836943edt.235.1593013644488; Wed, 24 Jun 2020 08:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593013644; cv=none; d=google.com; s=arc-20160816; b=hHZBGsHqZ9t+b8sS7nuTPit8FG/hSwOAT31VYIYUIaq0QgF/KhXjeSig/EJQglTk7V +VPjOE5ayIPFEkXot4k1JDA9JnLGBQH4Gm/hDRotEaWjtzsfF1+Qw6bf5GKIqFv2c7GW B4I7e7bAyWUK8dlDWuwfGd5m9gwbUm7x/6KFejf1iFKfDEuhsxt+zJvJNpt5EUWBv5dV hd5z9nkyUdzttWFo4nuCmzs1rJl2D2ltmKiE5wq9sJGuY6GBnjODCgYzSPEkqim+Ob79 wZ+ep76cP1JiVENzDc8jTJBuENJCUwOqwpbQWmOWN1fCAmVsoiOjgvULDkI99OICnK5l drGw== 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=hK2U0EQ30BnaoNQF4dntRJJsTATOCoxIawSQhDYIzmg=; b=VdkCo6r5vNQDal8YEnduQJRI9/collWIBZBQbqS7g6Y/EtY2m0CAAq6KnrLxNS4MaH bjHmpvs4BRSeciOcjF07sQDZnC0I72Br04W1XuG8LnBh9AmdpbqT7YAPEI5SUODzM4pe 8uW64x+myGnz3EIiO5VnvIubNE5NvYVI63UpHXTYUuFoq45ADkQQoUYFuGjyok81PZB/ pZ4CudSEmtN0hu5IvtfdkYiU4eAx03/aOMaWMv1teB661neoBA3npe9mVxExzAgKfe6y H3yh+0NOqO156+7/meTzzstQxMcr/KcQZSEEemqIX1jLhAS8wW92D1RsEShU+uekX7K0 o10w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M4LcVYqR; 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 n16si6646796edb.399.2020.06.24.08.47.00; Wed, 24 Jun 2020 08:47:24 -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=M4LcVYqR; 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 S2404415AbgFXPpv (ORCPT + 99 others); Wed, 24 Jun 2020 11:45:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404108AbgFXPpv (ORCPT ); Wed, 24 Jun 2020 11:45:51 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11E13C0613ED for ; Wed, 24 Jun 2020 08:45:50 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id w2so800037pgg.10 for ; Wed, 24 Jun 2020 08:45:50 -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=hK2U0EQ30BnaoNQF4dntRJJsTATOCoxIawSQhDYIzmg=; b=M4LcVYqRbaeMeIINijtdkTk9Mq9ZlKIrJ+b+Wa23FTDNWKj72NHGbG+3MUPtzF/6HD fnXAyak2M9Dn2IqmZW3TBp+BiHYeQLI/IrliERUvgTRtYlT9Vi7yCIjCmWObVj1WZxoy OoxYZil7tVXXusQocI3bVFLIuNl0lf9VLeTJU= 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=hK2U0EQ30BnaoNQF4dntRJJsTATOCoxIawSQhDYIzmg=; b=kzqj3B38iH8W/XfI9O07Y0ye+3U68UAEDjyBtvXnO9fBtlf0BQyZlzYdGDAE9XEToL AHJoVoxSz108g5n6inLb7tLsvDJ2BhCoKa+J2yrKKw7elkASCKMFaRLo2FJHzfY616Tj F/ItRYMoj+BY0wRmNYycjns89ar+IKVGYr1KheKHSzqdzHbH5ilb9jLAiU56BB6bGl9p 2der6S/N+sQwxR9QF71W3l2tcI+uHCrwMLkVlcV2nY648uOh/xQvxiFiQJLPNUfa2apZ a2ulX2l2zFBrcurjHxgoMXFMFIB960MZ5k41smWNcsBUBHQrdwKy7z9ggLcSgYxUBE74 THdQ== X-Gm-Message-State: AOAM531VqRsjbY/liV1GHb1KcjYKYSGEFRveE6AqBdJbEKVgcLdFKTeO 3Gk5xkMw1XcpMDYSd7RGBYHZ3g== X-Received: by 2002:a63:a84d:: with SMTP id i13mr21644988pgp.342.1593013549628; Wed, 24 Jun 2020 08:45:49 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id s197sm20482307pfc.188.2020.06.24.08.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 08:45:48 -0700 (PDT) Date: Wed, 24 Jun 2020 08:45:47 -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: <202006240844.7BE48D2B5@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> <202006240820.A3468F4@keescook> 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 05:31:06PM +0200, Ard Biesheuvel wrote: > On Wed, 24 Jun 2020 at 17:21, Kees Cook wrote: > > > > 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? > > Given that it requires the 'guarded' attribute to be set in the page > tables, and the fact that the UEFI spec does not require it for > executables that it invokes, nor describes any means of annotating > such executables as having been built with BTI annotations, I think we > can safely assume that the EFI stub will execute with BTI disabled in > the foreseeable future. yaaaaaay. *sigh* How long until EFI catches up? That said, BTI shouldn't _hurt_, right? If EFI ever decides to enable it, we'll be ready? -- Kees Cook