From patchwork Tue Jan 31 10:58:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 13122877 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 7FCD3C636CC for ; Tue, 31 Jan 2023 10:59:24 +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=AQPefYKE3ye1so+bQltgJFyUwUYuatNjCmMkBV4BEw4=; b=TvSJDqmW2dR6tP YSqt/GzNXI4QzwA3y/cjimg9RNqONYGR2YfTT8G9T8V6DlhjxROhzycAY0WB3C+z87/i9rSQhVQ8a DOSje0IsLxmUeCSHrrn9Ub5uSDqRZR1xOBIBXrep0md+raeaARe6mjDac2sYOZ1OxKDnl6gzinAgZ csHORJ2nh3s0S0xKiSMJAyJTcmnWRqGNy7rzZLji2hXzlQAkES1j4T+nG/lphqGpxd3xaj1N4UNF2 UZnvNKgiS0MzFPEG0Dp8YqS7sXdzXdlkEHQukaVgAu1Nbe2saEx5R7VnGw2xPjSf2rbUCiQumKVpR zu+NPn2hop1b375ZyMEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMoLK-007biR-Kg; Tue, 31 Jan 2023 10:58:26 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMoLD-007beA-AC for linux-arm-kernel@lists.infradead.org; Tue, 31 Jan 2023 10:58:21 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6CF032F4; Tue, 31 Jan 2023 02:58:56 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 584453F71E; Tue, 31 Jan 2023 02:58:13 -0800 (PST) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: amit.kachhap@arm.com, ardb@kernel.org, broonie@kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com, will@kernel.org Subject: [PATCH v2 0/2] arm64: pointer auth cleanup Date: Tue, 31 Jan 2023 10:58:07 +0000 Message-Id: <20230131105809.991288-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230131_025819_453313_7564CE2E X-CRM114-Status: UNSURE ( 7.45 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With the recent dynamic SCS patches conditionally disabling pointer authentication for leaf functions, I thought I'd try to clean things up and consistently do so. Patch 1 is (hopefully not controversial) Makefile cleanup. Patch 2 disables pointer authentication for leaf functions, for the reasons laid out in the commit message (which laregly boils down to "it's not necessary" and "our prior rationale for doing so doesn't hold water"). Since v1 [1]: * Fix typos in patch 2's commit message * Add tags from Ard and Mark [1] https://lore.kernel.org/linux-arm-kernel/20230125182201.800076-1-mark.rutland@arm.com/ Thanks, Mark. Mark Rutland (2): arm64: unify asm-arch manipulation arm64: pauth: don't sign leaf functions arch/arm64/Kconfig | 4 +-- arch/arm64/Makefile | 65 ++++++++++++++++++--------------------------- 2 files changed, 28 insertions(+), 41 deletions(-)