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 18F9DC05027 for ; Wed, 1 Feb 2023 13:26:45 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/sQPH5zqR8qZ8Ce6AjwFe6A/89o8Ceo49iimT3cO1fQ=; b=UUdqjdnIjTViNv CTZ7AG8TfPCHw7qm/Os+MgVQfppl5KYYTUEsA3HEmrTilBrSmw3y9EMZUyZOno08Ej1LSHO7k4F1E R7bIcgPLtzLvwFj9HJRtOhQKx1yenPZhMC/AXAgR/bVXERuQCXX7bG+kG1Q3jbTJpY1swesYc1SVo tKM9rLYZGo68BFvINLbJLBq5DqjCERle5x60jW5cwIWWxURWG/As26Iqb6iN5ajTfAr9rguS0r5nR TJ+D8728FKQ3ns7EzRLjBDbVa89G8HyO0i/m6b50Sm1320Nt/7DmHLFvJ2dXrwGEcYJ2mDJRNPr98 fL90PTiv6ijevOz+zAzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pND7X-00C2sM-LG; Wed, 01 Feb 2023 13:25:51 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pND7U-00C2qj-6t for linux-arm-kernel@lists.infradead.org; Wed, 01 Feb 2023 13:25:49 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5815F617A4; Wed, 1 Feb 2023 13:25:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B0E6C433EF; Wed, 1 Feb 2023 13:25:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675257945; bh=XK/Ho6oGJr4EHcGcxAtvUb7RihbSYDJ1yJ5DhPWt7Ag=; h=From:To:Cc:Subject:Date:From; b=QHTLx9gmC1p/+lG24tVd5iKFBtXyO+FsMB3tKugxAS3gt02oWlxBbhOO5DD/RRNwr W4cjr+cyp540yp54nHqlJ00qs+bdBzVCrNcjSBRMquBVpRppdOIq2ahYLQjca/ncbX uUocfkA28ziJ+G0w5gU1XmzIA0huXkZZhPqG7h4IK5+AjpnhRTGf0G4ronWuav8TyX wQKjfvLAKUb39+z52jyGdFkCY82305wVjaDslAzzc8xPRsJd87yeVlzWii9HdXjkqq MDT7CIzBEY5Pu/lQG6lLmcdGzt4Uo+aSMHQ7EiQdhlcdU9kweYApBzslhITC0FaIYL bWmC95AZV61UA== From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Catalin Marinas , Will Deacon , Kees Cook , Mark Rutland Subject: [PATCH 0/2] efi: Enable BTI for EFI runtimes services Date: Wed, 1 Feb 2023 14:25:38 +0100 Message-Id: <20230201132540.2196065-1-ardb@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1084; i=ardb@kernel.org; h=from:subject; bh=XK/Ho6oGJr4EHcGcxAtvUb7RihbSYDJ1yJ5DhPWt7Ag=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBj2mhRvEODZjV/MzatlpuC5NrH0e51XiZUZSMpJ 3wDQGUkXmOJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCY9poUQAKCRDDTyI5ktmP JPD4C/40u7PCLh2/WrRd3JAvh4bxZ5FKYP+/8fn4thfPMu+zMJ0fL+VU1v6cKQ4ppXH5lkvkwQU YgRDG9TT8T3eRCcBofEyDEr4YT5U2m7b5iTOVY59B59AYilpFpeMQ5rFDLuk/pQgFq5Ij18WFdi l+QajW5eQo3KYjs74u73Tu7W1fw+A4F3xZE2C1N8Ho7v9aDyTTFAIS1crJS6cb0FAOC5fLVCRDa MRkqmB1w74JEp5QTtwub4POfjh9c/78UWuJvonnUklwfg8bo/wGfW442tcC3iw05MtrWZcovBXP UzX3Z8KFq0NfJWAhvtSEi/YwI0YayUcI49uko8UmwZX5gOUvLIzfaHXTo2oUAhdZRhFHcaHQk06 7JYusR75TO6iQUq/mHr9ks8doPUmqfoMCOtLJDC1KQjk+0tyCQa6vMyCSnXjYHAjhDsI7ChbDFN 7JWuRL5c0E6XuPcTwAdwG+ps9jP02JLc7eO/dn8nKZYqEcCDKJFzNdL0kQif7JddiVd+Y= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230201_052548_325775_AAC8CA5E X-CRM114-Status: GOOD ( 10.15 ) 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 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. 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel