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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB911C61DA3 for ; Tue, 21 Feb 2023 12:15:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234418AbjBUMP1 (ORCPT ); Tue, 21 Feb 2023 07:15:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234468AbjBUMPQ (ORCPT ); Tue, 21 Feb 2023 07:15:16 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 375D325B90 for ; Tue, 21 Feb 2023 04:14:48 -0800 (PST) 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 22CBC60FE9 for ; Tue, 21 Feb 2023 12:14:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D3C2C433D2; Tue, 21 Feb 2023 12:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676981651; bh=2qsJdfbDVAPOImoyJDFbsExM45F/EPoTWXpuNj4khiQ=; h=Date:From:To:Cc:Subject:From; b=fx5k+nRLXOL3D67pNCjCKXjhhSg3WapgX4YiFKvVqWIiNHTKWDd2E3o95GTcg4F9R sj6+Fa9A6jLxdXiGkwbf6KVSequuTCXDSwISdECZZc7nRU8P9ImZlqYVZQjoqCq5r5 S0/DPLTYPFqINJhyWvhZcQZQwDlR+5Fw6zm/LaY0LHkhQ+11mVLZ9EHp0XO6YdhAsF 4ch24h4PHPM66/xIU/iop00J6KageDYCpc7KyIebawXs3GINL5Hp9y/1U6ezpTAK4C amMNQgORqot5AWhOTAkbtKsf03e0EJUSwstTy+3CdjmwHwKyqDTqK0miCfXzl7cbho KJDwA0RrLhQ3Q== Date: Tue, 21 Feb 2023 21:14:08 +0900 From: Masami Hiramatsu (Google) To: Linus Torvalds Cc: LKML , Donglin Peng , Masami Hiramatsu (Google) , Quanfa Fu , Yang Jihong , Steven Rostedt Subject: [GIT PULL] probes: Updates for 6.3 Message-Id: <20230221211408.6fa4bb5868cda7d506a00c61@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, probes updates for 6.3: - Skip negative return code check for snprintf in eprobe. - Add recursive call test cases for kprobe unit test - Add 'char' type to probe events to show it as the character instead of value. - Update kselftest kprobe-event testcase to ignore '__pfx_' symbols. - Fix kselftest to check filter on eprobe event correctly. - Add filter on eprobe to the README file in tracefs. - Fix optprobes to check whether there is 'under unoptimizing' optprobe when optimizing another kprobe correctly. - Fix optprobe to check whether there is 'under unoptimizing' optprobe when fetching the original instruction correctly. - Fix optprobe to free 'forcibly unoptimized' optprobe correctly. Please pull the latest probes-v6.3 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git probes-v6.3 Tag SHA1: 7aa067de8b9767c68e828eabb15b830175dc0325 Head SHA1: c96abaec78f34366b3ddf1c6be52ca5c1241e15b Donglin Peng (1): tracing/probe: add a char type to show the character value of traced arguments Masami Hiramatsu (Google) (5): kprobes: Fix to handle forcibly unoptimized kprobes on freeing_list tracing/eprobe: Fix to add filter on eprobe description in README file selftests/ftrace: Fix eprobe syntax test case to check filter support selftests/ftrace: Fix probepoint testcase to ignore __pfx_* symbols test_kprobes: Add recursed kprobe test case Quanfa Fu (1): tracing/eprobe: no need to check for negative ret value for snprintf Yang Jihong (2): x86/kprobes: Fix __recover_optprobed_insn check optimizing logic x86/kprobes: Fix arch_check_optimized_kprobe check within optimized_kprobe range ---- Documentation/trace/kprobetrace.rst | 3 +- arch/x86/kernel/kprobes/opt.c | 6 +-- include/linux/kprobes.h | 2 + kernel/kprobes.c | 27 ++++++------- kernel/trace/trace.c | 4 +- kernel/trace/trace_eprobe.c | 12 ++---- kernel/trace/trace_probe.c | 2 + kernel/trace/trace_probe.h | 1 + lib/test_kprobes.c | 39 +++++++++++++++++- .../test.d/dynevent/eprobes_syntax_errors.tc | 4 +- .../ftrace/test.d/kprobe/kprobe_args_char.tc | 47 ++++++++++++++++++++++ .../selftests/ftrace/test.d/kprobe/probepoint.tc | 2 +- 12 files changed, 116 insertions(+), 33 deletions(-) create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc --------------------------- -- Masami Hiramatsu (Google)