From patchwork Fri Jul 16 14:53:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 1506195 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=wjqYFal7; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=oybHhD2o; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GRDll5yhGz9sXJ for ; Sat, 17 Jul 2021 00:54:11 +1000 (AEST) 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=UCOrRcv6RABPu1PYG8E0pnvrdIJ6FX6XrX1olUFJyZc=; b=wjqYFal7MV/qNn +i6/jA/pYtUalKjJ/S9WJPPAbNyyPG33qV/UwCC2J6unRObTk5WtZ/LN7RKtjMTdP050HLqt1CpIc e1I1iWAsPZFM7guTxkw4FL8zroZ0ZRt0aHaJzbHNrYwNq2OhqZJTBYNhxbO+l6RDM3v09tT/nX+jp YDZJ2RGhQAzHqnyoXneZRqlwDEaZ9gIfOdpeM2hHiBG5m9SiRWl1Df7oPG8o1jP/dZwCNU9ZF5qbI A6/c/1z0TxmWJ4nRxpsXUuo1fWya2iFbUkS+JZppR962f+LxNhJSpTxNm0ZDsiVoVFdiwU6rMSRNO OqasD/k8nPvEODny+jug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4PDX-004eiU-Bc; Fri, 16 Jul 2021 14:53:31 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4PDS-004ehK-Gl for linux-arm-kernel@lists.infradead.org; Fri, 16 Jul 2021 14:53:27 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id D5B27613F5; Fri, 16 Jul 2021 14:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626447206; bh=fAr0rmGViYqlwVkfpLAmvCG23vFxE1LwgWrueNzxFNs=; h=Date:From:To:Cc:Subject:From; b=oybHhD2owJBr+DDJQLwAwtMaXo8xUHDu7BRMlVo2RwggCG9+DVo9OTD3GzU0iqYfq GH20Yi0G2Acbkj3YJkneWWdTTdbJ3n5Or/xtpnbqd1aHj+HtIvoW9grZVV9TT0Orvv MCYSCYoTmq7plz1xraJqSAcSUi6VsbkN7IiDspFKkynHAaj7lIYQJ1lucXjaocNT/1 0hQxs8GpkQW9QsO7ee+Nrx3niVYwjeHaUloS8N9ls7tBqrfuF7r+FaorWP7JHeqXGv Gyuc10aSeWrLMY+Y4WbtbDLHyWbM4HQEX4htI7vHCenO75JsBP4MaKBrz+RwQOCOxM m5ZTJJ4mtKz8w== Date: Fri, 16 Jul 2021 15:53:21 +0100 From: Will Deacon To: torvalds@linux-foundation.org Cc: catalin.marinas@arm.com, maz@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: [GIT PULL] arm64 fixes for -rc2 Message-ID: <20210716145320.GB3161@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-20210716_075326_597812_3489A053 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.4 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Linus, Please pull these arm64 fixes for -rc2. The bulk of the diffstat consists of changes to our uaccess routines so that they fall back to bytewise copying prior to reporting complete failure when the ini [...] Content analysis details: (-5.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender 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+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi Linus, Please pull these arm64 fixes for -rc2. The bulk of the diffstat consists of changes to our uaccess routines so that they fall back to bytewise copying prior to reporting complete failure when the initial (multi-byte) access faults. However, the most disappointing change here is that we've had to bump ARCH_DMA_MINALIGN back to 128 bytes thanks to Qualcomm's "Kryo" CPU, which ended up in the MSM8996 mobile SoC. Still, at least we're now aware of this design and one of the hardware designers confirmed the L2 cacheline size for us. Cheers, Will --->8 The following changes since commit e73f0f0ee7541171d89f2e2491130c7771ba58d3: Linux 5.14-rc1 (2021-07-11 15:07:40 -0700) 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 e6f85cbeb23bd74b8966cf1f15bf7d01399ff625: arm64: entry: fix KCOV suppression (2021-07-15 17:37:55 +0100) ---------------------------------------------------------------- arm64 fixes for -rc2 - Fix instrumentation annotations for entry code - Ensure kernel MTE state is restored correctly on resume from suspend - Fix MTE fault from new strlen() routine - Fallback to byte-wise accesses on initial uaccess fault - Bump Clang requirement for BTI - Revert ARCH_DMA_MINALIGN back to 128 bytes (shakes fist at Qualcomm) ---------------------------------------------------------------- Carlos Bilbao (1): arm64: Add missing header in two files Mark Rutland (4): arm64: fix strlen() with CONFIG_KASAN_HW_TAGS arm64: mte: fix restoration of GCR_EL1 from suspend arm64: entry: add missing noinstr arm64: entry: fix KCOV suppression Nathan Chancellor (1): arm64: Restrict ARM64_BTI_KERNEL to clang 12.0.0 and newer Robin Murphy (1): arm64: Avoid premature usercopy failure Will Deacon (1): Revert "arm64: cache: Lower ARCH_DMA_MINALIGN to 64 (L1_CACHE_BYTES)" arch/arm64/Kconfig | 3 ++- arch/arm64/include/asm/cache.h | 2 +- arch/arm64/include/asm/smp_plat.h | 1 + arch/arm64/kernel/Makefile | 2 +- arch/arm64/kernel/cpufeature.c | 1 + arch/arm64/kernel/entry-common.c | 2 +- arch/arm64/kernel/mte.c | 15 ++------------- arch/arm64/lib/copy_from_user.S | 13 ++++++++++--- arch/arm64/lib/copy_in_user.S | 21 ++++++++++++++------- arch/arm64/lib/copy_to_user.S | 14 +++++++++++--- arch/arm64/lib/strlen.S | 10 ++++++++++ 11 files changed, 54 insertions(+), 30 deletions(-)