From patchwork Mon Feb 14 14:37:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 1592617 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: bilbo.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=LMf0+0if; 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=TC877UK1; dkim-atps=neutral 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=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jy6Jy6rWvz9s0r for ; Tue, 15 Feb 2022 01:38:06 +1100 (AEDT) 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=Nwab3LIkzH/mP6sEmmeUwKM4iyUWbPDkgsjtMeRaK1o=; b=LMf0+0ifGZZxyL QFQX33NUBb8cNGDzGgJFsP6RrWStvJGAQsKPaAdHLp9wifLKHFIofQHFkTm+Reol1cbl1bRajksIE MTqxL1mY6fhiIi/N63Bffyru472uKf49pf9+MrqIIyz6GrjSLVk3huFnZXPqfRjCdi0ayNCcEtYeT QYQTYysi7Yh7ND5MWlHIqpl/J7jL/uMfymxny87bve7/mkLOxPnKgz6DJEsoFHvdawd4jj/DEAgUi 4mP8mRd1LgiX9k9pr+dRzUzhm5Ac+ZNXJdGyG6t2rVdJL6IVbpUOuiHiX5I3RoRqURz3sMq652j4S 40DZI62oMQGWCzOeeGEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJcU5-00Fgg4-FP; Mon, 14 Feb 2022 14:37:45 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJcU1-00Fgf6-LQ for linux-arm-kernel@lists.infradead.org; Mon, 14 Feb 2022 14:37:43 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 337DA610F4; Mon, 14 Feb 2022 14:37:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C397BC340E9; Mon, 14 Feb 2022 14:37:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644849460; bh=Zzt86441klphMCVdTwcxNxDOq+1gLoT/w6By0lZUK5o=; h=From:To:Cc:Subject:Date:From; b=TC877UK1aMNQFiCr1G4RPb/mdSatJPN2IhDwkjUcs8gX86axa/9V/asAzHKJzkX3B ogSPScgByqUt+mHzgoVTUQfkO6m3T43Pcc0SCjekTAii61GxME1AEr/tSK7OkZAcwV MJ5TiodcUHsKAFZi3jmIaXNnC+OEAkCJ4id5IG00nyOhUOf59k/1vC9CaKaGjRufHV P7TFDn7mvSm/XampVQ+w2ZOV3meVWH5Zd0IhXGo1XaBJBaujGlMQ0Iu19rLKzhoC8N DgmStxhIqp8EluRS9VuXt7sU1eG0wvOenUXVbRTiuvwJGux8kgy6zb1JR8FcQUYhOH 9X1/Logx1cFtg== From: Ard Biesheuvel To: linux+pull@armlinux.org.uk Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel Subject: [GIT PULL v2] ARM ftrace fixes for Thumb2, Clang and the EABI unwinder Date: Mon, 14 Feb 2022 15:37:35 +0100 Message-Id: <20220214143735.112800-1-ardb@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2833; h=from:subject; bh=Zzt86441klphMCVdTwcxNxDOq+1gLoT/w6By0lZUK5o=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBiCmkuF1sqMuoHU+jAZBgAb3Q7fzPWl7WWNONA64Zy qMnvF3OJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCYgppLgAKCRDDTyI5ktmPJEZzC/ 9nDSdfLpdShvotsZ2pYsVO4BZbOB4C+JcK7yslGXNMzsII0vstGmZwAg3IPUpmqZasIMNsqtkDSLx2 +Hg7ORJTM36iT580V8HL7sLEAhu3s7NsSEAw9kuApubPRo6UeddvVikxaBRMkMXvcBcNmsAOkBv7E0 CQxIzS17JZnNxN3alrEUQTDyi+dE6VIp0+cvCuNj+7kCUqGJO4CINky3Sqf6MrgKzh9S+JrATxiNg/ rYCBktwFSGUVFfFI5fypk8dUqcIf89TFp2RC/jfOsK2KYOffEWylpNfNvloxKKLRqGl4s8+WsoyN0t Pr2l1F7iS5o/gChcRZQVPqeipbiVzWHabY2phy9O0KDl/7SPLyf/83XRZUalFeqs5Z8PHFzSUoPx7Z jtmXeW0C/CSEelSdaL/SVi+LGO+wVyEBGeMbkx6Q+DXbDf4RMu684SQv6RW/6WRUX1lnv1ifHp9ADD svKq7827aCUfTrwqM3nTMillUlV4ODcN01k0IoiMjDBHc= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220214_063741_807680_A06090FF X-CRM114-Status: GOOD ( 11.81 ) 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: The following changes since commit 2fa3948244939471bfc93fa2f7cf3a1aadf79822: Merge tag 'arm-vmap-stacks-v6' of git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux into devel-stable (2022-01-31 15:26:45 +0000) 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 [2604:1380:4641:c500:0:0:0:1 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 The following changes since commit 2fa3948244939471bfc93fa2f7cf3a1aadf79822: Merge tag 'arm-vmap-stacks-v6' of git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux into devel-stable (2022-01-31 15:26:45 +0000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git tags/arm-ftrace-for-rmk for you to fetch changes up to d6800ca73a7d325627c045c16d7cfdc7465f4333: Revert "ARM: 9144/1: forbid ftrace with clang and thumb2_kernel" (2022-02-10 09:55:05 +0100) PRv2: use rmk's current devel-stable as the start commit ---------------------------------------------------------------- ARM: ftrace fixes and cleanups Make all flavors of ftrace available on all builds, regardless of ISA choice, unwinder choice or compiler: - use ADD not POP where possible - fix a couple of Thumb2 related issues - enable HAVE_FUNCTION_GRAPH_FP_TEST for robustness - enable the graph tracer with the EABI unwinder - avoid clobbering frame pointer registers to make Clang happy Link: https://lore.kernel.org/linux-arm-kernel/20220203082204.1176734-1-ardb@kernel.org/ ---------------------------------------------------------------- Ard Biesheuvel (12): ARM: ftrace: ensure that ADR takes the Thumb bit into account ARM: ftrace: use ADD not POP to counter PUSH at entry ARM: ftrace: use trampolines to keep .init.text in branching range ARM: ftrace: avoid redundant loads or clobbering IP ARM: ftrace: avoid unnecessary literal loads ARM: ftrace: enable HAVE_FUNCTION_GRAPH_FP_TEST ARM: unwind: track location of LR value in stack frame ARM: ftrace: enable the graph tracer with the EABI unwinder ARM: kprobes: treat R7 as the frame pointer register in Thumb2 builds ARM: cacheflush: avoid clobbering the frame pointer ARM: mach-bcm: disable ftrace in SMC invocation routines Revert "ARM: 9144/1: forbid ftrace with clang and thumb2_kernel" arch/arm/Kconfig | 4 +- arch/arm/Kconfig.debug | 2 +- arch/arm/include/asm/cacheflush.h | 12 +-- arch/arm/include/asm/ftrace.h | 20 +---- arch/arm/include/asm/stacktrace.h | 3 + arch/arm/kernel/Makefile | 6 +- arch/arm/kernel/entry-ftrace.S | 128 +++++++++++++++++-------------- arch/arm/kernel/ftrace.c | 62 +++++++++++++-- arch/arm/kernel/unwind.c | 7 +- arch/arm/mach-bcm/Makefile | 1 + arch/arm/mach-exynos/mcpm-exynos.c | 6 +- arch/arm/mm/cache-v7.S | 40 +++++----- arch/arm/probes/kprobes/actions-common.c | 8 +- arch/arm/probes/kprobes/actions-thumb.c | 16 +++- 14 files changed, 182 insertions(+), 133 deletions(-)