From patchwork Fri Jan 19 16:05:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 13523983 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 AD47BC4725D for ; Fri, 19 Jan 2024 16:06:08 +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:Subject:Cc:To: From:Date: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=BjX6Sy4uzOAcqy/aa6tC2U524Cryp/P3JBFjqrFy74U=; b=AiP2EQer+qA2CO hozX8P2vcXLy4HroNx1KQeJ3zo9c8BqScARzcetAd4sxavLV+iktd1S1KccnNlfy8rm4lT5as9NVD a+btA13KX8Xfz9Z0hLuBzWLcVJdOJOsersNRHo2afnl72qLoeOq2OTpTGuJBKoz7Nr5XsQJt9nPIw 5jJwTemagQ8C6M7lC/TYaLipgrCoZGLVhwv9CoQNz9lr+eQe5NFK81RDwslBwkddSou5jM+vEVQnS Cq9WGsDVJiQNCLJsEmhVXp7HIbnhD5pj6aZ7UdOIXTbfDz1WvJ39TPJ4gze7ACeEM0LOvwrsIywsT Y3ZirAgMZizrKTHE8lmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQrNE-0063lE-0V; Fri, 19 Jan 2024 16:05:40 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQrNB-0063kv-20 for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 16:05:39 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 30324CE2267; Fri, 19 Jan 2024 16:05:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80513C433F1; Fri, 19 Jan 2024 16:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705680333; bh=0vsHCEB7uarmRqxKL7SMqn2/4sulPPxduy3Gu7w9gBY=; h=Date:From:To:Cc:Subject:From; b=cqAGzaJDT85GFYQboa5RY7etRf5pZD3PUJvf670EaTTN6cL+Rl/tgkEIjqB5U//Lt 5Xnf7HcZ9nowHWIfmwbnoqb/5hZ5iGCBUYUtcRtoi/1XZQFbqU5HKOytORJgvEwZZk HJmb4PNAq9QRgm6dQJ2ioPFc1qladJCzSUYr65zmeJdSTB9xKjqTZ41nPp/zpS8VBZ tFLQRv/V5ePy0r2qFLi5l/37Ub2J1CSfD32OqWM4wfJSksYy07MvN82ua2zBiPxNB/ z6+jPfpKGH2CcFb/YInEyPp07iY1YdZt1W3/vtt5m6qQ+lI5+4XBSs2B7KZVUnVXMU xYjS+RtRWU9gw== Date: Fri, 19 Jan 2024 16:05:28 +0000 From: Will Deacon To: torvalds@linux-foundation.org Cc: catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: [GIT PULL] arm64 fixes for -rc1 Message-ID: <20240119160528.GA5336@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240119_080538_021123_CC33F226 X-CRM114-Status: GOOD ( 12.79 ) 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 Hi Linus, Please pull these arm64 fixes for -rc1. I think the main one is fixing the dynamic SCS patching when full LTO is enabled (clang was silently getting this horribly wrong), but it's all good stuff. Rob just pointed out that the fix to the workaround for erratum #2966298 might not be necessary, but in the worst case it's harmless and since the official description leaves a little to be desired here, I've left it in. Cheers, Will --->8 The following changes since commit db32cf8e280b46726065c518e90761bb0229bacf: Merge branch 'for-next/fixes' into for-next/core (2024-01-04 12:32:33 +0000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git tags/arm64-fixes for you to fetch changes up to 1b20d0486a602417defb5bf33320d31b2a7a47f8: arm64: Fix silcon-errata.rst formatting (2024-01-18 11:15:43 +0000) ---------------------------------------------------------------- arm64 fixes for -rc1 - Fix shadow call stack patching with LTO=full - Fix voluntary preemption of the FPSIMD registers from assembly code - Fix workaround for A520 CPU erratum #2966298 and extend to A510 - Fix SME issues that resulted in corruption of the register state - Minor fixes (missing includes, formatting) ---------------------------------------------------------------- Ard Biesheuvel (2): arm64: scs: Work around full LTO issue with dynamic SCS arm64: fpsimd: Bring cond_yield asm macro in line with new rules Mark Brown (3): arm64/ptrace: Don't flush ZA/ZT storage when writing ZA via ptrace arm64/fpsimd: Remove spurious check for SVE support arm64/sme: Always exit sme_alloc() early with existing storage Mark Rutland (2): arm64: entry: fix ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD arm64: entry: simplify kernel_exit logic Rob Herring (2): arm64: Rename ARM64_WORKAROUND_2966298 arm64: errata: Add Cortex-A510 speculative unprivileged load workaround Robin Murphy (1): arm64: Fix silcon-errata.rst formatting Tudor Ambarus (1): arm64: irq: include Documentation/arch/arm64/silicon-errata.rst | 4 ++-- arch/arm64/Kconfig | 18 ++++++++++++++++++ arch/arm64/include/asm/assembler.h | 25 +++++++++---------------- arch/arm64/include/asm/irq.h | 2 ++ arch/arm64/kernel/Makefile | 8 +++++++- arch/arm64/kernel/asm-offsets.c | 2 -- arch/arm64/kernel/cpu_errata.c | 21 +++++++++++++++++---- arch/arm64/kernel/entry.S | 25 ++++++++++++++----------- arch/arm64/kernel/fpsimd.c | 12 ++++++------ arch/arm64/kernel/ptrace.c | 13 +++++++------ arch/arm64/tools/cpucaps | 2 +- 11 files changed, 83 insertions(+), 49 deletions(-)