From patchwork Wed Jan 25 18:21:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 13115921 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 9DD62C27C76 for ; Wed, 25 Jan 2023 18:23: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: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=bqHiYjgznnWGBr+IrgV0ogxWImDHDgsZy28K2UmgNhA=; b=Uoq1y2JHAfZg1P 1fxHTT3aK7sXYKnHHY54Oo67ojOY+QR5wwGrPg7jtOoITu7a0Oelhr+geVmMmNvAOeq7fW7+n0HZd We4x/TQRwRPO5TE53YwgzjQMWWUoZHzWp7kOGNKQPuUyW6Wz2Z9CWp2CpwNpyR4IQV23ocGvXedsO hBhNBkZKaJtDCM/DwR94c3+Lqm4WXEKovzNf3Zfv984MyKQy8UqSE71QHVi5XBP2JgTfxGlpV+Liy fOdhMOJo0PAggphIGuRLZ5INruC3C+tCWvZTIDcNTgpDmeVfay69JTAZLyzmxOC9t93aONICH2XAk GnAVsvQrgmseq5hTn47Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKkPV-008K24-G2; Wed, 25 Jan 2023 18:22:13 +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 1pKkPT-008K1l-AM for linux-arm-kernel@lists.infradead.org; Wed, 25 Jan 2023 18:22:12 +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 2CDF14B3; Wed, 25 Jan 2023 10:22:51 -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 52FCA3F5A1; Wed, 25 Jan 2023 10:22:08 -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 0/2] arm64: pointer auth cleanup Date: Wed, 25 Jan 2023 18:21:59 +0000 Message-Id: <20230125182201.800076-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-20230125_102211_438173_329ADBB2 X-CRM114-Status: UNSURE ( 7.54 ) 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"). 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(-)