From patchwork Thu Oct 21 00:54:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 12573573 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E66CC433F5 for ; Thu, 21 Oct 2021 00:55:59 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id CA7B0610A1 for ; Thu, 21 Oct 2021 00:55:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CA7B0610A1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=IeSk106/i/ZvYSx+1DWRrDuoZ0jygA4dlxDpcey1U+Y=; b=eAbDnC5alW2YYT kGGN/eSVxNSl4Rmzpyd3RypIkb9Yr2VLDSEHbz2YWVYg/2VqwYnWQ1lzH1V/RC/FOaSuvefUse2/z ORSK/6UJsvxXhhFtrO4F91SkBlFZGHcgfgX5tpWhAvJxU5q0L4iHy2v0c4y2KY1xFsJVpy1S+wwxO PO9BN8JaBLf/gGradxpS+lsdC8C0So1QviEfGe/c05Ejsls3jzk5E+Cgt985g4K3zdf6Nw6mxK3Kt K6pJkDvWEEsa+DHfX4/OOtFDt2O0SnDUwOYhhs5gD15Bsbh0cKJzpEdq+35jz9uOH5Md4VIKCia6/ iBWRQL0DxNFMdaCB8HNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdMLf-0067Zd-Gj; Thu, 21 Oct 2021 00:54:23 +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 1mdMLc-0067Yu-0z for linux-arm-kernel@lists.infradead.org; Thu, 21 Oct 2021 00:54:21 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 92C05610A1; Thu, 21 Oct 2021 00:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634777659; bh=rK7WeQOEydZ5+taz9kl7I5pTx3YbEnObXpG1n7q5aN0=; h=From:To:Cc:Subject:Date:From; b=QstN+bLoFfnnOb4B8OAUIzH+VaE6Twd63XuVcONwQje/n4zDB72e4PGluVMwq9wur u9BHXvHw7OT69Bc0jaMYhPmsZIghP4Ko+aEntFxOTA07MjHWZ8SinBtkpbhTpWq/QI +PplWqNDUdVUqd8SNWrUQi7ssJbdGmkJm6A3mXOi3n47GDVUic4FpWYxu1gc/NrSAu ZKZWrbGkP5V9ORftD44id33vLlUQC38VYZrYB9WQSKrhgYzLSBVDx342CsA4nCINXS TA148fEJR3LK6uRveelqKKGgA52e7N0Ddk/5wRido/e0Hb/0+Y54i/swkstVBSaOKr CIdiD+WmvjGPQ== From: Masami Hiramatsu To: Steven Rostedt Cc: "Naveen N . Rao" , Ananth N Mavinakayanahalli , Ingo Molnar , linux-kernel@vger.kernel.org, mhiramat@kernel.org, Sven Schnelle , Catalin Marinas , Will Deacon , Russell King , Nathan Chancellor , Nick Desaulniers , linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 0/9] kprobes: Make KUnit and add stacktrace on kretprobe tests Date: Thu, 21 Oct 2021 09:54:16 +0900 Message-Id: <163477765570.264901.3851692300287671122.stgit@devnote2> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211020_175420_113665_9D048D8A X-CRM114-Status: GOOD ( 11.97 ) 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, Here is the 3rd version of the series to change the kprobes selftest to KUnit and add testcases for stacktrace on kretprobes, which has been fixed recently on x86. The previous version is here; https://lore.kernel.org/all/163430224341.459050.2369208860773018092.stgit@devnote2/T/#u In this version, I fixed arm's trampoline code, and add the version tag. And I also dropped the RFC patch. It may be discussed in another series. Thank you, --- Masami Hiramatsu (8): kprobes: Add a test case for stacktrace from kretprobe handler x86/unwind: Compile kretprobe fixup code only if CONFIG_KRETPROBES=y arm64: kprobes: Record frame pointer with kretprobe instance arm64: kprobes: Make a frame pointer on __kretprobe_trampoline arm64: Recover kretprobe modified return address in stacktrace ARM: clang: Do not rely on lr register for stacktrace ARM: kprobes: Make a frame pointer on __kretprobe_trampoline ARM: Recover kretprobe modified return address in stacktrace Sven Schnelle (1): kprobes: convert tests to kunit arch/Kconfig | 8 + arch/arm/Kconfig | 1 arch/arm/include/asm/stacktrace.h | 9 + arch/arm/kernel/return_address.c | 4 arch/arm/kernel/stacktrace.c | 17 + arch/arm/probes/kprobes/core.c | 28 ++ arch/arm64/Kconfig | 1 arch/arm64/include/asm/stacktrace.h | 4 arch/arm64/kernel/probes/kprobes.c | 4 arch/arm64/kernel/probes/kprobes_trampoline.S | 4 arch/arm64/kernel/stacktrace.c | 7 arch/x86/Kconfig | 1 arch/x86/include/asm/unwind.h | 6 kernel/kprobes.c | 3 kernel/test_kprobes.c | 374 ++++++++++++++----------- lib/Kconfig.debug | 3 16 files changed, 302 insertions(+), 172 deletions(-) -- Masami Hiramatsu (Linaro)