From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9870BC63797 for ; Thu, 2 Feb 2023 17:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XD0aJ/w2QgJw1TKzdr5gPDHWBgwd1HzNozfxjom84wg=; b=2l0S7uaJdytrjP GZ71+wthn0MeAXPLn0FnE/dk4pDJ0TUAYeZQOEYkf8qs7vug9a9nA+j3Yp9OXZM2fxy4BOaq1k1ul a5nurQHiZA20YkP/MaZ89Qehxui7gpASTfzrUuDtBuahAGM/uhsnirLKciqoAdhEe/NK7WSfrYo1W J89JCZ4DBxesICmj8Gu7+TC3R/HcuGNQ1crJTsMMfTFQAOVmstxMAZpFqtHpSO4DTH95frHCPSWur Ds5JJuqoDAkaHumNY1t8XYT74Lc30ZolUnk9hkV79GzmkCtbMY4/PTBHUIndhif6bmH8N+AHcRMtp ikPKdK8MDE2O341Zzjew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNdWW-00Gpwn-AU; Thu, 02 Feb 2023 17:37:24 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNdWS-00GpvA-ER for linux-arm-kernel@lists.infradead.org; Thu, 02 Feb 2023 17:37:21 +0000 Received: by mail-pf1-x42b.google.com with SMTP id o68so452448pfg.9 for ; Thu, 02 Feb 2023 09:37:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=wRdReY3bvVpG1aI5mOcLOqs5a0t3Nfp+QAhfdvBukN8=; b=gzROW/sJ+bb/ZDHkosldNPoJDpp8OEmk1czueSp/b2lopZZ7q9NwGV59TSjDHXZW7c 8FCTBni0RcyosNs+8s2TBsAWpL8JyL6lZi0eOJ4GHFwikyeRGdP6KH3bGL0pIekW4znj fY7pGj8ntPz88bWA9n71OBQ3og0RoAazs2Hos= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wRdReY3bvVpG1aI5mOcLOqs5a0t3Nfp+QAhfdvBukN8=; b=LY5GL00Bctc3HfySBlFxM1QwP3DzwDmxLSJnxFa+gIAq070FNQqgkGfHo6OBJSn/FF nb1ltIAUHmobt8Fe3TUDV5VfhjXp9bECrpyTXRgSr7ZXsZ1uRonRDxopFvia4IK/Nsn0 rifTHxeWsF/S0kUMDN0eVQqS5UcjxqBkYbx9E7Jatht3pcwIYPYXxJUgKBcq0prqyiwL IoEwwHab3jOlxvYWMixQw7+OdEJo3rKtCEyFfNkYxMimfqsEJRciw+go4LIYmdYV/SVb 2NuI1uCoF2bzV5nVmOQbYuAA2WpyXIRcs9+AfpdemrO+vN6AZ7/FQiNgoqzjAfUlTTOG ba1g== X-Gm-Message-State: AO0yUKVLL6yxaLheWQfdBmoShuA2+R0vNKjLQko7f2i8VeyFfOcCChk4 Dzyd3tq21D/YRZhLJDWrOoHNRA== X-Google-Smtp-Source: AK7set+SdhJ8/aN0w5Hv8gSawo8N3WfH1NnxiFWBLzHbdO9qZ1Nc4jRQMvZbSR/HSVfKDWBN2DJdHA== X-Received: by 2002:a05:6a00:410d:b0:593:ea06:7fd with SMTP id bu13-20020a056a00410d00b00593ea0607fdmr7287008pfb.13.1675359438289; Thu, 02 Feb 2023 09:37:18 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id 22-20020aa79256000000b0058baf8694e1sm13784785pfp.71.2023.02.02.09.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 09:37:17 -0800 (PST) Message-ID: <63dbf4cd.a70a0220.d9b66.920b@mx.google.com> X-Google-Original-Message-ID: <202302021737.@keescook> Date: Thu, 2 Feb 2023 17:37:16 +0000 From: Kees Cook To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Mark Rutland Subject: Re: [PATCH 0/2] efi: Enable BTI for EFI runtimes services References: <20230201132540.2196065-1-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230201132540.2196065-1-ardb@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230202_093720_519403_49B323BA X-CRM114-Status: GOOD ( 14.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Feb 01, 2023 at 02:25:38PM +0100, Ard Biesheuvel wrote: > The EFI spec v2.10 introduces a global flag in the memory attributes > table that indicates whether the EFI runtime code regions were emitted > with BTI landing pads, and can therefore tolerate being mapped with BTI > enforcement enabled. > > Add the generic plumbing for this, and wire it up for arm64. Looks nice! :) Reviewed-by: Kees Cook > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Kees Cook > Cc: Mark Rutland > > Ard Biesheuvel (2): > efi: Discover BTI support in runtime services regions > efi: arm64: Wire up BTI annotation in memory attributes table > > arch/arm/include/asm/efi.h | 2 +- > arch/arm/kernel/efi.c | 5 +++-- > arch/arm64/include/asm/efi.h | 3 ++- > arch/arm64/kernel/efi.c | 18 +++++++++++++++--- > arch/riscv/include/asm/efi.h | 2 +- > arch/riscv/kernel/efi.c | 3 ++- > arch/x86/platform/efi/efi_64.c | 3 ++- > drivers/firmware/efi/memattr.c | 9 +++++++-- > include/linux/efi.h | 8 ++++++-- > 9 files changed, 39 insertions(+), 14 deletions(-) > > -- > 2.39.0 > -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel