From patchwork Fri Jul 17 15:20:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 1331261 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=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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=merlin.20170209 header.b=Nzt11MLB; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=default header.b=P4RuzDCv; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 4B7ZZg354cz9sQt for ; Sat, 18 Jul 2020 01:20:59 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject: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=2c/UpHJNNjT7QMsf4m+bDVqxGU9ULwwBu1i+dS24WtA=; b=Nzt11MLBW0BV3tM4mQs8ekzpwH vEfdvORalDSZS25lQKRIATx57+YYF7WQtHlUHeP2O9wGbe+rEurvP0WXWQOew/QF5bxA1he6kxgoR nOAEOi10WWF52F+801npyGQeuf20E8QhmN5B0SzL2CxmjhyKSgEsDDFNg1f1CY4uG5nHOqwuccFZK 2MC/oaX4OjnlR21EEt7rQGYdQ3BUGlHZfDaTVsp8Cw3yt+8ce1TMWL+ipARsoURwYALQyzUfHqPbF r+198zQKUS9tyuUDzHsrbjw4KaN4mgBMie+2ivy3AlbbUc/458F3GmBvXkycF9Bb4BeSp5K/+aJ2i fF+j5dBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwSA0-00017y-M9; Fri, 17 Jul 2020 15:20:28 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwS9y-00017d-JP for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 15:20:27 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AC07D2065D; Fri, 17 Jul 2020 15:20:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594999225; bh=g0mnlni9XXk+nL9o5iJbyfC4t1kxF8cB5gGowQN1hjk=; h=Date:From:To:Cc:Subject:From; b=P4RuzDCvTjCZBGuOszevkAmDZi7N+WfVVzG7RbRYFTBSDmM9WdKmVGKYY0DiXXSz6 kcXul6gjvXV3Go3ZUUMU9WISbeoJewasQbMuJ35J8c9Mrnkf6bs4AlKMvGw/bXhzmC 24e5QXGPfRJ28Ik5SrSqfUps+TN6IxfTPL6KQdoQ= Date: Fri, 17 Jul 2020 16:20:21 +0100 From: Will Deacon To: torvalds@linux-foundation.org Subject: [GIT PULL] arm64 fixes for -rc6 Message-ID: <20200717152020.GA9056@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-20200717_112026_798318_A0A2C095 X-CRM114-Status: GOOD ( 12.57 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) 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_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: catalin.marinas@arm.com, kernel-team@android.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi Linus, Please pull this batch of arm64 fixes for -rc6. Although the diffstat is a bit larger than we'd usually have at this stage, a decent amount of it is the addition of comments describing our syscall tracing behaviour, and also a sweep across all the modular arm64 PMU drivers to make them rebust against unloading and unbinding. Summary is in the tag. Although there are a couple of minor things kicking around at the moment (CPU errata and module PLTs for very large modules), I'm not expecting any significant changes now for us in 5.8 Cheers, Will --->8 The following changes since commit 5679b28142193a62f6af93249c0477be9f0c669b: arm64/alternatives: don't patch up internal branches (2020-07-09 14:57:59 +0100) 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 f32ed8eb0e3f0d0ef4ddb854554d60ca5863a9f9: drivers/perf: Prevent forced unbinding of PMU drivers (2020-07-17 10:51:44 +0100) ---------------------------------------------------------------- arm64 fixes for -rc6 - Fix kernel text addresses for relocatable images booting using EFI and with KASLR disabled so that they match the vmlinux ELF binary. - Fix unloading and unbinding of PMU driver modules. - Fix generic mmiowb() when writeX() is called from preemptible context (reported by the riscv folks). - Fix ptrace hardware single-step interactions with signal handlers, system calls and reverse debugging. - Fix reporting of 64-bit x0 register for 32-bit tasks via 'perf_regs'. - Add comments describing syscall entry/exit tracing ABI. ---------------------------------------------------------------- Qi Liu (2): drivers/perf: Fix kernel panic when rmmod PMU modules during perf sampling drivers/perf: Prevent forced unbinding of PMU drivers Will Deacon (9): efi/libstub/arm64: Retain 2MB kernel Image alignment if !KASLR arm64: ptrace: Consistently use pseudo-singlestep exceptions arm64: ptrace: Override SPSR.SS when single-stepping is enabled arm64: compat: Ensure upper 32 bits of x0 are zero on syscall return arm64: ptrace: Add a comment describing our syscall entry/exit trap ABI arm64: syscall: Expand the comment about ptrace and syscall(-1) arm64: ptrace: Use NO_SYSCALL instead of -1 in syscall_trace_enter() arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP asm-generic/mmiowb: Allow mmiowb_set_pending() when preemptible() arch/arm64/include/asm/debug-monitors.h | 2 ++ arch/arm64/include/asm/syscall.h | 12 ++++++- arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/debug-monitors.c | 24 +++++++++---- arch/arm64/kernel/ptrace.c | 49 +++++++++++++++++++------- arch/arm64/kernel/signal.c | 11 ++---- arch/arm64/kernel/syscall.c | 21 +++++++++-- drivers/firmware/efi/libstub/arm64-stub.c | 25 +++++++------ drivers/firmware/efi/libstub/efi-stub-helper.c | 2 +- drivers/perf/arm-cci.c | 1 + drivers/perf/arm-ccn.c | 1 + drivers/perf/arm_dsu_pmu.c | 1 + drivers/perf/arm_smmuv3_pmu.c | 2 ++ drivers/perf/arm_spe_pmu.c | 1 + drivers/perf/fsl_imx8_ddr_perf.c | 2 ++ drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 2 ++ drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 2 ++ drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c | 2 ++ drivers/perf/qcom_l2_pmu.c | 1 + drivers/perf/qcom_l3_pmu.c | 1 + drivers/perf/thunderx2_pmu.c | 1 + drivers/perf/xgene_pmu.c | 1 + include/asm-generic/mmiowb.h | 6 ++-- 23 files changed, 127 insertions(+), 44 deletions(-)