From mboxrd@z Thu Jan 1 00:00:00 1970 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 E779FC433EF for ; Mon, 14 Feb 2022 14:39:04 +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=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-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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.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(-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel