Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp117298pxb; Wed, 20 Oct 2021 17:56:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiOXAMi9WRWefDi1rGuUDlGOJwCReDBf9XlWgBxLqj3t/Y4/+3urVCafJKUt6KtJLPfvCf X-Received: by 2002:a17:90a:c595:: with SMTP id l21mr2666565pjt.188.1634777780986; Wed, 20 Oct 2021 17:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634777780; cv=none; d=google.com; s=arc-20160816; b=xPRMH74nay9NSyEPnMxHw5PyFoDAOX3wIUh6JTqIWiRHbP2UDTSXpn8DUWEA2j903S Z0xvsYpkznvsaww1sD2PddyPvlFJ8p+cv3mvOe98QvPGPQLp0lzFZjJgWE+pZPwkp3Ym fZdWCq2IrLSf2Kk1wuxeh/Zys/6qNkGCuFUG1mG42Qw3Ya/uUBh8OFeMmOFh1zBVt5/5 pa68QYxiVQ+6dE0MlR1/EogQynLissVz69PBJugzDvMcOJhczfv97jXN7e4o31B7msis 1NNZ0B9jIiQCoDDEcb7A5MSfJjIFOHNEah23Gr2gLZNmileqto0rVutvUcug6ZtHkezU 0nwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:subject:cc:to:from:dkim-signature; bh=j9jPHN0YHMhyyh2IW6Uc0WYas5xyr+0YJCM76o87etE=; b=APRMpqSq66jFW0TjbqMdrm+n5sXa0rBcpwZdo5vPjdTTnlkGqkxweotuWxc+1AOV4c 6gKy1rCzhWeGhXMHFT7/0cNWfvAFSDjwpTbEHd5GwMMR16abr4IIvt1Sr9yVYGTo00LK njuuK2rTO+q6WfVz62YZLPnnQnVN4BBVgR7L/EFTGnvK8OicrS4w+n/th/lUMRrsr2qh hIeCUIumm7T2XWCCXUCFyxhQm4cmc9LKuqcc8XcSKOZwQ/qDVIzDnfnY0Irzj1o7M3/x gOeAxAZIygRjzOOtfr6EkNTmb5Pty/K+1kg0JEs8q7SPDpr3B3ibt8XBa5ON12CYA2J+ Llqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QstN+bLo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si6295777plx.68.2021.10.20.17.56.06; Wed, 20 Oct 2021 17:56:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QstN+bLo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230268AbhJUA4e (ORCPT + 99 others); Wed, 20 Oct 2021 20:56:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:51102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhJUA4e (ORCPT ); Wed, 20 Oct 2021 20:56:34 -0400 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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)